##########################
## Objective
##########################
Relocate a voting disk from ASM Diskgroup to a NFS shared file system and Vice Versa in 11g
======================================================================================================================
Disk Group Where Voting Disk is now : +OCR_VOTE
New Voting disk location (NFS Mount Point ) : /u07/oracle
### Points to note
Voting Disk must be placed on shared devices; either on cluster filesystems, NFS or shared raw devices.
======================================================================================================================
Step 1 : Check the Present Location of Voting disk
Step 2 : Relocate voting disk from ASM to NFS shared Mount point
Step 3 : Now Check the New Location of Voting disk
Step 4 : Backup of Voting Disk
Step 5 : Relocate the Vote disk back to ASM Disk group
Step 6 : Now Check the New Location of Voting disk
======================================================================================================================
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Relocate voting Disk @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
======================================================================================================================
Step 1 :
--------
Check the Present Location of Voting disk
======================================================================================================================
crsctl query css votedisk
+ASM1 @ hostd01:/u01/home/oracle
> crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 19ac2decfd6c4f6ebf87cd9d247d7e7a (/dev/mapper/ocr01p1) [OCR_VOTE]
2. ONLINE 086dd7a7970e4f5dbf62d8760b8ab480 (/dev/mapper/ocr02p1) [OCR_VOTE]
3. ONLINE 4a96ec03cee14f54bfa8835a98c5d31b (/dev/mapper/ocr03p1) [OCR_VOTE]
Located 3 voting disk(s).
+ASM1 @ hostd01:/u01/home/oracle
======================================================================================================================
Step 2 :
--------
Relocate voting disk from ASM to NFS shared Mount point
======================================================================================================================
crsctl replace votedisk /u07/oracle/votedisk.dt
+ASM1 @ hostd01:/u07/oracle
> crsctl replace votedisk /u07/oracle/votedisk.dt
Now formatting voting disk: /u07/oracle/votedisk.dt.
CRS-4256: Updating the profile
Successful addition of voting disk 78e3c124a6f34f93bf2141cc31a97759.
Successful deletion of voting disk 19ac2decfd6c4f6ebf87cd9d247d7e7a.
Successful deletion of voting disk 086dd7a7970e4f5dbf62d8760b8ab480.
Successful deletion of voting disk 4a96ec03cee14f54bfa8835a98c5d31b.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
+ASM1 @ hostd01:/u07/oracle
Note : If you want to check the File system type, then in Linux use below command to find it.
df -T .
+ASM1 @ hostd01:/u07/oracle
> df -T .
Filesystem Type 1K-blocks Used Available Use% Mounted on
hostp02:/vol/u07/u07
nfs 637009920 400898560 236111360 63% /u07
======================================================================================================================
Step 3 :
--------
Now Check the New Location of Voting disk
======================================================================================================================
+ASM1 @ hostd01:/u07/oracle
> crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 78e3c124a6f34f93bf2141cc31a97759 (/u07/oracle/votedisk.dt) []
Located 1 voting disk(s).
+ASM1 @ hostd01:/u07/oracle
======================================================================================================================
Step 4 :
--------
Backup of Voting Disk ( We will take a backup of voting disk for safety purpose )
======================================================================================================================
dd if=/u07/oracle/votedisk.dt of=/u07/oracle/vd.bkp
+ASM1 @ hostd01:/u07/oracle
> dd if=/u07/oracle/votedisk.dt of=/u07/oracle/vd.bkp
41025+0 records in
41025+0 records out
21004800 bytes (21 MB) copied, 3.80843 seconds, 5.5 MB/s
+ASM1 @ hostd01:/u07/oracle
+ASM1 @ hostd01:/u07/oracle
-rw-r--r-- 1 oracle oinstall 21004800 Nov 29 03:15 vd.bkp
-rw-r----- 1 oracle oinstall 21004800 Nov 29 03:15 votedisk.dt
======================================================================================================================
Step 5 :
--------
Relocate the Vote disk back to ASM Disk group
======================================================================================================================
crsctl replace votedisk +OCR_VOTE
+ASM1 @ hostd01:/u07/oracle
> crsctl replace votedisk +OCR_VOTE
CRS-4256: Updating the profile
Successful addition of voting disk 02b990acc2414f21bf4d483e72ccf1ec.
Successful addition of voting disk 889aa822e04a4f1ebf648fccef8fbe69.
Successful addition of voting disk 0c28a49e64344f64bfe2ec1792305602.
Successful deletion of voting disk 78e3c124a6f34f93bf2141cc31a97759.
Successfully replaced voting disk group with +OCR_VOTE.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
No comments:
Post a Comment