Apun’s Weblog

  • Categories

  • Calender

    April 2008
    M T W T F S S
         
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
  • Tags

  • del.icio.us

How To Change the location of Voting Disk in 10gR2 Oracle RAC

Posted by apunhiran on April 15, 2008

How To Change the location of Voting Disk in 10gR2 Oracle RAC

Voting Disk:
1.) Login as root
2.) Shutdown CRS on all nodes:

root@oracle-server:/home/crs/bin[bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
root@oracle-server:/home/crs/bin[bin]# ./crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM


3.) Check the the location of the voting disk:
root@oracle-server:/home/crs/bin[bin]# ./crsctl query css votedisk
0. 0 /mnt/prdaudit_crs/vd1
1. 0 /mnt/prdaudit_crs/vd2
2. 0 /mnt/prdaudit_crs/vd3

4.) Copy the voting disk to the new location:
root@oracle-server:/home/crs/bin[bin]# cp /mnt/prdaudit_crs/vd2 /mnt/prdaudit_crs_mirror1/
root@oracle-server:/home/crs/bin[bin]# cp /mnt/prdaudit_crs/vd3 /mnt/prdaudit_crs_mirror2/

5.) Change the location in CRS:
root@oracle-server:/home/crs/bin[bin]# ./crsctl add css votedisk /mnt/prdaudit_crs_mirror1/vd2
Now formatting voting disk: /mnt/prdaudit_crs_mirror1/vd2
successful addition of votedisk /mnt/prdaudit_crs_mirror1/vd2.
root@oracle-server:/home/crs/bin[bin]# ./crsctl add css votedisk /mnt/prdaudit_crs_mirror2/vd3
Now formatting voting disk: /mnt/prdaudit_crs_mirror2/vd3
successful addition of votedisk /mnt/prdaudit_crs_mirror2/vd3.

6.) Delete the old Voting Disks:
root@oracle-server:/home/crs/bin[bin]# crsctl delete css votedisk /mnt/prdaudit_crs/vd2 -force
successful deletion of votedisk /mnt/prdaudit_crs/vd2.
root@oracle-server:/home/crs/bin[bin]# crsctl delete css votedisk /mnt/prdaudit_crs/vd3 -force
successful deletion of votedisk /mnt/prdaudit_crs/vd3.

7.) Query CRS to see if the changes where proper:
root@oracle-server:/home/crs/bin[bin]# ./crsctl query css votedisk
0. 0 /mnt/prdaudit_crs/vd1
1. 0 /mnt/prdaudit_crs_mirror2/vd3
2. 0 /mnt/prdaudit_crs_mirror1/vd2

PS: The permission to the voting disk should be root:dba, while copying and creating voting disk as we are using the root user, the permission will change to root:root, which will give error when starting crs.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>