Description
To disable fencing and clear all keys on private diskgroups and registered keys on coordinator diskgroup do the following:
1. If UseFence=SCSI3 is configured in main.cf offline the service groups with the diskgroup resource or simply offline the diskgroup resource.
# hagrp -offline -sys
and/or ...
# hares -offline -sys
2. Verify all private diskgroups once deported are cleared of keys. The deport should clear the keys; thus there should be no keys at this point. This can be verified using the "vxfenadm" utility.
a. Build file with list of disks to verify keys are cleared (change "" to the name of the diskgroup to operate on).
# vxdisk -eo alldgs list| grep | awk '{print "/dev/"$6}' > /tmp/disk.out
This file should contain a list of the OS devices in the diskgroup; validate using:
# cat /tmp/disk.out
b. Run the vxfenadm utility to verify keys are cleared.
# vxfenadm -s all -f disk.out
Device Name: /dev/sdk
Total Number Of Keys: 0
No keys...
3. Stop the cluster software completely (services will be left running except offlined service groups and resources). VxFEN can only be
disabled when the cluster is stopped.
# hastop -all -force
4. On each node do the following to stop the fencing module and clear the registrations on the coordinator disk.
a. Verify current fencing status.
# /etc/init.d/vxfen status
VxFEN is loaded and configured
b. Run vxfen stop on each node that is part of the cluster. This will unregister keys on coordinator diskgroup.
# /etc/init.d/vxfen stop
c. Verify the module is unloaded.
# /etc/init.d/vxfen status
VxFEN module is not loaded
d. Make sure the keys are cleared. They should be if the module unloaded.
# /sbin/vxfenadm -s all -f /etc/vxfentab
Device Name: /dev/sdk
Total Number Of Keys: 0
No keys...
5. To disable private diskgroups from using fencing and to start vxfen module with fencing disabled.
a. Edit main.cf UseFence Attribute to equal NONE.
# vi /etc/VRTSvcs/conf/config/main.cf
UseFence=NONE
b. Create the vxfenmode file variable "vxfen_mode=disabled"
# vi /etc/vxfenmode
vxfen_mode=disabled
c. Delete the fencing disks definition files
# rm /etc/vxfendg
# rm /etc/vxfentab
6. Now start vxfen driver on each node with fencing disabled.
# /etc/init.d/vxfen start
Starting VxFEN:
VxFEN:Alert: loading a compatible module binary
VCS FEN vxfenconfig NOTICE Driver will be disabled.
7. Now you can run "hastart" on each node to restart the cluster.