RAC reuse bare Devices

Source: Internet
Author: User

Environment:

VBOX

Oracle enterprise linux 5.8 _ X86_64

Oracle database 10.2.0.1.0

Oracle clusterware 10.2.0.1.0

When you re-build a RAC environment, because you do not want to create a new OCR/voting disk shared DISK, you plan to use the shared DISK used in the previous RAC environment. I have also considered that reusing these shared disks may lead to some situations. I plan to try again to see which steps will cause problems.

Recommended reading:

Create an ASM disk for a bare Device

Oracle uses a soft connection to create a library with bare Devices

Add Oracle temp tablespace In the AIX System (bare device Mode)
 
To reduce the chance of errors, bind a bare device with UDEV (five bare devices are available for OCR and voting disk, OCR:/dev/raw/raw1-/dev/sdb1; /dev/raw/raw2-/dev/sdc1; voting disk:/dev/raw/raw3-/dev/sdd1;/dev/raw/raw4-/dev/sde1; before/dev/raw/raw5-/dev/sdf1), delete the original sdb1, sdc1, sdd1, sde1, and sdf1 partitions with fdisk and recreate the partitions.
 
Start to install CLUSTERWARE. The installation process is correct. The bare device is allocated to OCR/voting disk according to the distribution method above.

However, when $ ORA_CRS_HOME/root. sh is executed on the first node, an error is returned:

[Root @ rac5 rules. d] #/s01/app/oracle/product/10.2.0/crs_1/root. sh
WARNING: directory '/s01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/s01/app/oracle/product' is not owned by root
WARNING: directory '/s01/app/oracle' is not owned by root
WARNING: directory '/s01/app' is not owned by root
WARNING: directory '/s01' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration

At the same time, we found that:

[Root @ rac5 rules. d] # ll/dev/raw/
Total 0
Crw-r ----- 1 root oinstall 162, 1 Apr 7 raw1
Crw-r ----- 1 root oinstall 162, 2 Apr 7 raw2
Crw-r -- 1 oracle oinstall 162, 3 Apr 7 raw3
Crw-r -- 1 oracle oinstall 162, 4 Apr 7 raw4
Crw-r -- 1 oracle oinstall 162, 5 Apr 7 raw5

View logs:

/S01/app/oracle/product/10.2.0/crs_1/log/rac5/client/ocrconfig_6661.log

Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996,200 5 Oracle. All rights reserved.
08:12:14. 376: [OCRCONF] [1305384672] ocrconfig starts...
08:12:14. 376: [OCRCONF] [1305384672] Upgrading OCR data
08:12:14. 390: [OCRCONF] [1305384672] OCR already in current version.
08:12:14. 406: [OCRCONF] [1305384672] Failed to call clsssinit (21)
08:12:14. 406: [OCRCONF] [1305384672] Failed to make a backup copy of OCR
08:12:14. 406: [OCRCONF] [1305384672] Exiting [status = failed]...

 

Sure enough, the problem still persists. It seems that using fdisk will not solve the problem!

I checked my post and used the following method:

[Root @ rac5 rules. d] # dd if =/dev/zero of =/dev/sdb1
Dd: writing to '/dev/sdb1': No space left on device
1044163 + 0 records in
1044162 + 0 records out
534610944 bytes (535 MB) copied, 76.6793 seconds, 7.0 MB/s
[Root @ rac5 rules. d] # dd if =/dev/zero of =/dev/sdc1
Dd: writing to '/dev/sdc1': No space left on device
1044163 + 0 records in
1044162 + 0 records out
534610944 bytes (535 MB) copied, 74.1222 seconds, 7.2 MB/s
[Root @ rac5 rules. d] # dd if =/dev/zero of =/dev/sdd1
Dd: writing to '/dev/sdd1': No space left on device
1044163 + 0 records in
1044162 + 0 records out
534610944 bytes (535 MB) copied, 76.5027 seconds, 7.0 MB/s
[Root @ rac5 rules. d] # dd if =/dev/zero of =/dev/sde1
Dd: writing to '/dev/sde1': No space left on device
1044163 + 0 records in
1044162 + 0 records out
534610944 bytes (535 MB) copied, 75.4561 seconds, 7.1 MB/s
[Root @ rac5 rules. d] # dd if =/dev/zero of =/dev/sdf1
Dd: writing to '/dev/sdf1': No space left on device
1044163 + 0 records in
1044162 + 0 records out
534610944 bytes (535 MB) copied, 74.4116 seconds, 7.2 MB/s

Then run root. sh again! In fact, I am not familiar with dd. I checked it out: The/dev/zero file represents a device file that always outputs 0. using it for input, I can get all files that are empty.
 
Well, it turns several previously used bare devices into a complete blank space. You can use it again.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.