Raw Disk Migration Steps (OCR,VOTING,ASM) – Oracle RAC 10g
1)
Disk Migration of the OCR Disks
#########################
a).
Backup all OCR-related files.
b). Current Status of OCR disks.
b). Current Status of OCR disks.
{CRS_HOME}/bin/ocrcheck
c). Backup the /var/opt/oracle/ocr.loc file:
cp ocr.loc ocr.loc.old
d). Manually backup OCR:
$ocrconfig -export /exports/OCRFile_exp.dmp
Important : -
As root, run the following commands to replace
OCR files. This change can be performed on-line, and will be reflected across
the entire cluster.
e). Replace new rawdisk
{CRS_HOME}/bin/ocrconfig -replace ocr /dev/raw/raw9
{CRS_HOME}/bin/ocrconfig -replace ocr /dev/raw/raw9
{CRS_HOME}/bin/ocrconfig -replace ocrmirror /dev/raw/raw10
cat /var/opt/oracle/ocr.loc
ocrconfig_loc=/dev/raw/raw9
ocrmirrorconfig_loc=/dev/raw/raw10
g). Check Status of Newly added OCR:
2) Disk Migration of the Voting Disks
###########################
Important : - Shutdown the Oracle Clusterware (crsctl stop crs as
root) on all nodes before making any modification to the voting disk
a). Status check of current Voting disks.
b). Backup voting disks using dd:
dd if={voting_disk_name}
of={backup_file_name}
Example,
dd if=/dev/raw/raw3 of=/tmp/voting1
c). Stop CRS.
d). Add/remove voting disks.
/opt/oracrs/bin/crsctl delete css votedisk /dev/raw/raw3 -force
/opt/oracrs/bin/crsctl delete css votedisk /dev/raw/raw4 –force
/opt/oracrs/bin/crsctl add css votedisk /dev/raw/raw12 –force

/opt/oracrs/bin/crsctl delete css votedisk /dev/raw/raw5 –force
/opt/oracrs/bin/crsctl add css
votedisk /dev/raw/raw13 –force
e). Status check of current Voting disks.
/opt/oracrs/bin/crsctl
query css votedisk
f). Start Cluster
crsctl start crs
3) Disk Migration of ASM
#####################
a). Take full database backup.
b) Check Current status of asm disks
select name,header_status,path from v$asm_disk;
c). Both old and new SAN LUNs must be presented to all the RAC nodes.
d). Once the LUNs are visible we need to stamp them to use them as ASM
disks.
e). Login to ASM instance and verify the newly added ASM disks.
select name,header_status,path from v$asm_disk;
f). Add new asm disk to ASM groups
alter diskgroup TESDB_DG1 add disk '/dev/raw/raw15' rebalance power 5;
alter diskgroup TESDB_DG1 add disk '/dev/raw/raw16' rebalance power 5;
alter diskgroup TESDB_ARCDG1 add disk '/dev/raw/raw14' rebalance power 5;
Monitor Rebalancing operation
select * from v$asm_operation;
g). Check status after added asm disks in asm groups.
Select path,name from v$asm_disk where group_number=2;
Select path,name from v$asm_disk where group_number=1;
h). Drop old asm disks from ASM groups
alter diskgroup TESDB_DG1 drop disk 'TESDB_DG1_0000';
alter diskgroup TESDB_DG1 drop disk 'TESDB_DG1_0001';
alter diskgroup TESDB_ARCDG1 drop
disk ' TESDB_ARCDG1_0000';
i). Check status after dropped asm disks from asm groups.
Select path,name from v$asm_disk where group_number=2;
Select path,name from v$asm_disk where group_number=1;
j). Check current asm disks status.
select name,header_status,path from v$asm_disk;
Thanks & Regards
Gaurav Sharma
Comments
Post a Comment