Oracle RAC ASM Multi-Disk Offline Method (Backup/Restore)
Using the Offline Method assumes that there is not enough free space in the diskgroup.
-
Open a terminal session on both RAC Nodes.
-
On RAC Node 1, on the ASM, type the following to remove the disk group.
DROP DISKGROUP <diskGroupName> FORCE INCLUDING CONTENTS;
Note
Make sure that the disk is removed before guarding the raw devices.
-
On the CipherTrust Manager, in the Host Group, apply GuardPoints to the three raw devices:
<rawDeviceName1> <rawDeviceName2> <rawDeviceName3>
-
On RAC Node 1, to display the status of the guarded disks, type:
secfsd -status guard
-
On both RAC Node 1 and 2, type:
chown oracle:oinstall /dev/secvm/<rawDeviceName1> chmod 660 /dev/secvm/<rawDeviceName1> chown oracle:oinstall /dev/secvm/<rawDeviceName2> chmod 660 /dev/secvm/<rawDeviceName2> chown oracle:oinstall /dev/secvm/<rawDeviceName3> chmod 660 /dev/secvm/<rawDeviceName3>
chown oracle:oinstall <rawDeviceName1> chmod 660 <rawDeviceName1> chown oracle:oinstall <rawDeviceName2> chmod 660 <rawDeviceName2> chown oracle:oinstall <rawDeviceName3> chmod 660 /dev/<rawDeviceName3>
-
From RAC Node 1, on the ASM, add the protected disk to the disk group, type:
ALTER DISKGROUP <diskGroupName> ADD DISK /dev/secvm/<rawDeviceName1> NAME <diskName1>; ALTER DISKGROUP <diskGroupName> ADD DISK /dev/secvm/<rawDeviceName2> NAME <diskName2>; ALTER DISKGROUP <diskGroupName> ADD DISK /dev/secvm/<rawDeviceName3> NAME <diskName3>;
The disks are now added to the diskgroup and ready for use.
-
On RAC Node 1, restore the database.
-
The system is now ready for a reboot and failover test. Go to the section Surviving the Reboot and Failover Testing.
Troubleshooting
Occasionally, settings do not persist when the system is rebooted. To ensure they do persist, edit the /etc/rc.local
file and add the following lines:
“Changing Permission for secvm devices”
chown oracle:oinstall /dev/secvm/dev/<rawDeviceName1>
chmod 660 /dev/secvm/dev/<rawDeviceName1>
chown oracle:oinstall /dev/secvm/dev/<rawDeviceName2>
chmod 660 /dev/secvm/dev/<rawDeviceName2>
chown oracle:oinstall /dev/secvm/dev/<rawDeviceName3>
chmod 660 /dev/secvm/dev/<rawDeviceName3>