You can either use the installer or manually migrate from server-based fencing to disk-based fencing without incurring application downtime in the VCS clusters.
See About migrating between disk-based and server-based fencing configurations.
You can also use response files to migrate between fencing configurations.
See Migrating between fencing configurations using response files.
Warning: |
The cluster might panic if any node leaves the cluster membership before the coordination points migration operation completes. |
This section covers the following procedures:
Migrating using the script-based installer |
See “To migrate from server-based fecing to disk-based fencing using the installer”. |
Migrating manually |
See “To manually migrate from server-based fencing to disk-based fencing”. |
To migrate from server-based fecing to disk-based fencing using the installer
# vxfenadm -d
For example, if the VCS cluster uses server-based fencing, the output appears similar to the following:
I/O Fencing Cluster Information: ================================ Fencing Protocol Version: 201 Fencing Mode: Customized Fencing Mechanism: cps Cluster Members: * 0 (galaxy) 1 (nebula) RFSM State Information: node 0 in state 8 (running) node 1 in state 8 (running)
# /opt/VRTS/install/installvcs -fencing
The installvcs program starts with a copyright message and verifies the cluster information.
Note the location of log files which you can access in the event of any problem with the configuration process.
The installer verifies whether I/O fencing is configured in enabled mode.
Select the fencing mechanism to be configured in this Application Cluster [1-4,q] 4
For example:
Select the coordination points you would like to remove from the currently configured coordination points: 1) emc_clariion0_62 2) [10.209.80.197]:14250,[10.209.80.199]:14300 3) [10.209.80.198]:14250 4) All 5) None b) Back to previous menu Enter the options separated by spaces: [1-5,b,q,?] (5)? 2 3
For example:
List of available disks: 1) emc_clariion0_61 2) emc_clariion0_65 3) emc_clariion0_66 b) Back to previous menu Select 2 disk(s) as coordination points. Enter the disk options separated by spaces: [1-3,b,q]2 3
Select the vxfen mode: [1-2,b,q,?] (1) 1
The installer initializes the coordinator disks and the coordinator disk group, and deports the disk group. Press Enter to continue.
vxfenmode.test
file on all nodes and runs the vxfenswap script.Note the location of the vxfenswap.log
file which you can access in the event of any problem with the configuration process.
The installer cleans up the application cluster information from the CP servers.
Would you like to send the information about this installation to Symantec to help improve installation in the future? [y,n,q,?] (y) y
# vxfenadm -d
For example, after the migration from server-based fencing to disk-based fencing in the VCS cluster:
I/O Fencing Cluster Information: ================================ Fencing Protocol Version: 201 Fencing Mode: SCSI3 Fencing SCSI3 Disk Policy: dmp Cluster Members: * 0 (galaxy) 1 (nebula) RFSM State Information: node 0 in state 8 (running) node 1 in state 8 (running)
# vxfenconfig -l
To manually migrate from server-based fencing to disk-based fencing
# vxfenadm -d
For example, if VCS cluster uses server-based fencing:
I/O Fencing Cluster Information: ================================ Fencing Protocol Version: 201 Fencing Mode: Customized Fencing Mechanism: cps Cluster Members: * 0 (galaxy) 1 (nebula) RFSM State Information: node 0 in state 8 (running) node 1 in state 8 (running)
/etc/vxfenmode.test
file with the fencing configuration changes such as the scsi3 disk policy information.Refer to the sample vxfenmode
files in the /etc/vxfen.d
folder.
# vxfenswap -g diskgroup [-n]
Review the message that the utility displays and confirm whether you want to commit the change.
If you do not want to commit the new fencing configuration changes, press Enter or answer n at the prompt.
Do you wish to commit this change? [y/n] (default: n) n
The vxfenswap utility rolls back the migration operation.
If you want to commit the new fencing configuration changes, answer y at the prompt.
Do you wish to commit this change? [y/n] (default: n) y
If the utility successfully commits, the utility moves the /etc/vxfenmode.test
file to the /etc/vxfenmode
file.
# vxfenadm -d
For example, after the migration from server-based fencing to disk-based fencing in the VCS cluster:
I/O Fencing Cluster Information: ================================ Fencing Protocol Version: 201 Fencing Mode: SCSI3 Fencing SCSI3 Disk Policy: dmp Cluster Members: * 0 (galaxy) 1 (nebula) RFSM State Information: node 0 in state 8 (running) node 1 in state 8 (running)
# vxfenconfig -l