How to setup fencing after CFS has been configured with fencing running in disable mode. Use this method to manually enable fencing as well. This requires down time.

book

Article ID: 100022160

calendar_today

Updated On:

Resolution

1. Test the disks for scsi3 operation:

#/opt/VRTSvcs/vxfen/bin/vxfentsthdw -r
2. Initialize the disks for VXVM use, and create the fencing DG:

#vxdisksetup -i emcpower0
#vxdisksetup -i emcpower6
#vxdisksetup -i emcpower7
#vxdg init vxfendg fendg01=emcpower0s2 fendg02=emcpower6s2 fendg04=emcpower7s2
#vxdg deport fendg
#vxdg -tfC import -o coordinator=on sgfendg
#vxdg deport fendg
3. On all nodes create the following files:

#echo "fendg">/etc/vxfendg
#cp /etc/vxfen.d/vxfenmode_scsi3_raw/etc/vxfenmode
#vi /etc/vxfentab and add the three fencing disks to this file using the pseudo devices "/dev/rdsk/emcpower0c"

4. Test fendg for fencing functionality:

#/opt/VRTSvcs/vxfen/bin/vxfentsthdw-g fendg

5. Stop VCS and Fencing.

#hastop-all
#/sbin/vxfenconfig -U

6. Edit the /etc/VRTSvcs/conf/config/main.cf file and add the following line: UseFence=SCSI3

Administrators = { admin }
Operators = { operator}
HacliUserLevel = COMMANDROOT
CounterInterval = 5
UseFence =SCSI3                        <=Added line

7. Start fencing with /sbin/vxfenconfig -c on both nodes and verify that the keys are registered.
#/sbin/vxfenconfig -c
#/sbin/vxfenadm -g all -f /etc/vxfentab

8. Start vcs on both nodes:

#hastart
9. Check if the shared DGs now have PGR keys registered.

#vxdisk list |grep shared|awk '{ print"/dev/vx/rdmp/" $1 }' >/var/tmp/share-disks
#/sbin/vxfenadm -g all -f /var/tmp/share-disks
 

 

Issue/Introduction

How to setup fencing after CFS has been configured with fencing running in disable mode. Use this method to manually enable fencing as well. This requires down time.