Offlining/Onlining the NFS quorum disk to move the NFS Server to a different location or to do maintenance on the NFS Server

In this guide we will offline/online the NFS quorum disk in ASM diskgroup CRS on the NFS server in order to move the NFS Server to a different location. Offlining the NFS voting disk before shutting down the NFS server helps prevent the NFS quorum disk from hanging CRS.


Note:

Outputs/usernames/node names in the examples are from my system. Make sure you use the values from your system.

$GRID_HOME is the software location of the Grid Infrastructure (GI).

grid user is the GI software owner.

rac1/rac2 are the node names of Oracle RAC.

nfssrv1 is the NFS Server where the quorum disk is located.


Step 1 – Offlining the NFS quorum disk.


As user grid, find the path of the NFS voting disk:


$GRID_HOME/bin/crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   c25c668c48c04ff5bf6205586bbd8cf7 (ORCL:CRS1) [CRS]
 2. ONLINE   b6e73f8207c24f60bf59ebbcf0c00145 (ORCL:CRS2) [CRS]
 3. ONLINE   a3b727e82c154f1ebfa440d68bc9816b (/voting_disk/vote_stnsp0506) [CRS]
Located 3 voting disk(s).

Connect to ASM on rac1, get the name of the NFS quorum disk by querying for the path we found above (ie. /voting_disk/vote_stnsp0506).


$ sqlplus / as sysasm
SQL> select name, path from v$asm_disk where path like '%voting_disk%';

NAME            PATH
--------------- ------------------------------
CRS_0002        /voting_disk/vote_stnsp0506

Offline the quorum disk.


SQL> alter diskgroup CRS offline quorum disk CRS_0002;

Diskgroup altered.

Step 2 – Unmount the NFS mount for the quorum disk on both RAC nodes (rac1 and rac2).


# df -h /voting_disk
Filesystem        Size  Used Avail Use% Mounted on
nsrsvr1:/votedisk   50G   12G   39G  24% /voting_disk

# umount /voting_disk

Step 3 – Verify the NFS quorum disk is no longer being used.


# $GRID_HOME/bin/crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   c25c668c48c04ff5bf6205586bbd8cf7 (ORCL:CRS1) [CRS]
 2. ONLINE   b6e73f8207c24f60bf59ebbcf0c00145 (ORCL:CRS2) [CRS]
Located 2 voting disk(s).

Shutdown the NFS Server.


# shutdown -h now


(Do your move or maintenance here.)


The remaining steps will bring the quorum disk in the CRS diskgroup back online.


Step 4 – Boot up the NFS Server.


Step 5 – Mount /voting_disk on both RAC nodes.


# mount /voting_disk

Step 6 – On rac1, connect to ASM and online the quorum disk.


SQL> alter diskgroup CRS online quorum disk CRS_0002;

Diskgroup altered.

Verify all the voting disks are online.


$GRID_HOME/bin/crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   c25c668c48c04ff5bf6205586bbd8cf7 (ORCL:CRS1) [CRS]
 2. ONLINE   b6e73f8207c24f60bf59ebbcf0c00145 (ORCL:CRS2) [CRS]
 3. ONLINE   a3b727e82c154f1ebfa440d68bc9816b (/voting_disk/vote_stnsp0506) [CRS]
Located 3 voting disk(s).

Leave a Reply