Cluster Server Installation Guide for Solaris x64 5.0 - Storage ...

Cluster Server Installation Guide for Solaris x64 5.0 - Storage ... Cluster Server Installation Guide for Solaris x64 5.0 - Storage ...

sfdoccentral.symantec.com
from sfdoccentral.symantec.com More from this publisher
13.07.2015 Views

108 Setting up I/O fencingSetting up I/O fencing for VCSTo start I/O fencing on a node◆Start the I/O fencing driver.# /etc/init.d/vxfen startModifying VCS configuration to use I/O fencingAfter adding coordinator disks and configuring I/O fencing, add the UseFence = SCSI3 cluster attribute to the VCS configuration file, /etc/VRTSvcs/conf/config/main.cf. If you reset this attribute to UseFence = None, VCS doesnot make use of I/O fencing abilities while failing over service groups. However, I/O fencing needs to be disabled separately.To modify VCS configuration to enable I/O fencing1 Save the existing configuration:# haconf -dump -makero2 Stop VCS on all nodes:# hastop -all3 Make a backup copy of the main.cf file:# cd /etc/VRTSvcs/conf/config# cp main.cf main.orig4 On one node, use vi or another text editor to edit the main.cf file. Modify thelist of cluster attributes by adding the UseFence attribute and assigning itsvalue of SCSI3.cluster rac_cluster101 UserNames = { admin = "cDRpdxPmHpzS." }Administrators = { admin }HacliUserLevel = COMMANDROOTCounterInterval = 5UseFence = SCSI3)5 Save and close the file.6 Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:# hacf -verify /etc/VRTSvcs/conf/config7 Using rcp or another utility, copy the VCS configuration file from a node (forexample, north) to the remaining cluster nodes.For example, on each remaining node, enter:# rcp north:/etc/VRTSvcs/conf/config/main.cf \/etc/VRTSvcs/conf/config8 On each node enter the following sequence of commands. These commandsbrings up VCS processes:# /opt/VRTS/bin/hastart

Setting up I/O fencingAdditional I/O fencing information109Verifying I/O fencing configurationVerify from the vxfenadm output that the SCSI-3 disk policy reflects theconfiguration in the /etc/vxfenmode file.To verify I/O fencing configuration◆On one of the nodes, type:# vxfenadm -dI/O Fencing Cluster Information:================================Fencing Protocol Version: 201Fencing Mode: SCSI3Fencing SCSI3 Disk Policy: rawCluster Members:* 0 (north)1 (south)RFSM State Information:node 0 in state 8 (running)node 1 in state 8 (running)Removing permissions for communicationAfter completing the installation of VCS and verification of disk support for I/Ofencing, if you used rsh, remove the temporary rsh access permissions you setfor the nodes and restore the connections to the public network.If the nodes use ssh for secure communications, and you temporarily removedthe connections to the public network, restore the connections.Additional I/O fencing informationReview additional information about I/O fencing, including an extendeddescription of the vxfentsthdw command, vxfenadm command, and adescription of I/O fencing behavior to protect data in certain scenarios.

108 Setting up I/O fencingSetting up I/O fencing <strong>for</strong> VCSTo start I/O fencing on a node◆Start the I/O fencing driver.# /etc/init.d/vxfen startModifying VCS configuration to use I/O fencingAfter adding coordinator disks and configuring I/O fencing, add the UseFence = SCSI3 cluster attribute to the VCS configuration file, /etc/VRTSvcs/conf/config/main.cf. If you reset this attribute to UseFence = None, VCS doesnot make use of I/O fencing abilities while failing over service groups. However, I/O fencing needs to be disabled separately.To modify VCS configuration to enable I/O fencing1 Save the existing configuration:# haconf -dump -makero2 Stop VCS on all nodes:# hastop -all3 Make a backup copy of the main.cf file:# cd /etc/VRTSvcs/conf/config# cp main.cf main.orig4 On one node, use vi or another text editor to edit the main.cf file. Modify thelist of cluster attributes by adding the UseFence attribute and assigning itsvalue of SCSI3.cluster rac_cluster101 UserNames = { admin = "cDRpdxPmHpzS." }Administrators = { admin }HacliUserLevel = COMMANDROOTCounterInterval = 5UseFence = SCSI3)5 Save and close the file.6 Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:# hacf -verify /etc/VRTSvcs/conf/config7 Using rcp or another utility, copy the VCS configuration file from a node (<strong>for</strong>example, north) to the remaining cluster nodes.For example, on each remaining node, enter:# rcp north:/etc/VRTSvcs/conf/config/main.cf \/etc/VRTSvcs/conf/config8 On each node enter the following sequence of commands. These commandsbrings up VCS processes:# /opt/VRTS/bin/hastart

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!