Adding & Removing Nodes in VCS 283982 PDF
Adding & Removing Nodes in VCS 283982 PDF
Adding & Removing Nodes in VCS 283982 PDF
About adding and removing nodes Adding a node to a cluster Removing a node from a cluster
Add a license key. Configure LLT and GAB. Add the node to the existing cluster.
Adding a license key on page 7 Configuring LLT and GAB on page 7 Adding the node to the existing cluster on page 9 Starting VCS and verifying the cluster on page 9
Public Network
Private Network
If you are expanding from a two-node cluster, you need to use independent hubs for the private network connections, replacing crossover cables if they are used.
If you already use independent hubs, connect the two Ethernet controllers on the new node to the independent hubs. Figure 7-1 illustrates a new node being added to an existing three-node cluster using two independent hubs.
Depending on the OS distribution, replace the dist in the command with rhel4 or sles9. Depending on the architecture, replace the arch in the command with i686, i586, or x86_64. Type the command:
# cd /mnt/cdrom/dist_arch/cluster_server/rpms
Symantec recommends that you install the RPMs for VCS manual pages (VRTSvcsmn) and VCS documentation (VRTSvcsdc). Install the documentation RPM on nodes where you want access to the documentation. The I/O fencing RPM (VCSvxfen) can be used only with shared disks that support SCSI-3 Persistent Reservations (PR). See the Veritas Cluster Server Users Guide for a conceptual description of I/O fencing. You need to test shared storage for SCSI-3 PR and to implement I/O fencing. See Setting up I/O fencing on page 139. The VCS configuration wizard (VRTScscw) RPM includes wizards for the installation and configuration of Veritas products that require VCS configuration. To use the Java Console with VCS Simulator, you must install the VRTScssim and VRTScscm RPMs.
Perform the steps to install VCS RPMs on each node in the cluster. To install VCS RPMs on a node 1 Install the required VCS RPMs in the order shown. Do not install any RPMs already installed on the system. Pay special attention to operating system distribution and architecture.
# # # # # # # # # # # # # # # # # # # # # #
rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm
-i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i -i
SYMClma-4.1.3.5-5.i386.rpm VRTSatClient-4.3.23.0-0.i386.rpm VRTSatServer-4.3.23.0-0.i386.rpm VRTSicsco-1.3.18.4-4.i386.rpm VRTSpbx-1.3.17.4-4.i386.rpm VRTSperl-5.0.2.1-linux.i386.rpm VRTSsmf-1.3.13.4-4.i386.rpm VRTSspt-5.0.00.0-GA.noarch.rpm VRTSvlic-3.02.16.8-0.i586.rpm VRTSllt-5.0.00.0-GA_SLES9.i586.rpm VRTSgab-5.0.00.0-GA_SLES9.i586.rpm VRTSvxfen-5.0.00.0-GA_SLES9.i586.rpm VRTSvcs-5.0.00.0-GA_SLES9.i686.rpm VRTSvcsmg-5.0.00.0-GA_GENERIC.noarch.rpm VRTSacclib-5.0.00.0-0.i386.rpm VRTSvcsag-5.0.00.0-GA_SLES9.i686.rpm VRTSvcsdr-5.0.00.0-GA_SLES9.i586.rpm VRTSjre-1.4-GA1.i386.rpm VRTSjre15-1.5-GA3.i386.rpm VRTScscw-5.0.00.0-GA_GENERIC.noarch.rpm VRTSweb-5.0.1-GA4_GENERIC.noarch.rpm VRTScutil-5.0-GA_GENERIC.noarch.rpm
Install the optional RPMs, in the order shown. Omit those that you do not want to install.
From the output, you can determine the license key, the type of license, the product for which it applies, and its expiration date, if any. Demo keys have expiration dates, while permanent keys and site keys do not.
Update the file for all nodes, including the new one, resembling:
0 north 1 south 2 east
Create the file /etc/llttab on the new node, making sure that line beginning set-node specifies the new node. The file /etc/llttab on an existing node can serve as a guide. See /etc/llttab on page 186. The following example describes a system where node east is the new node on cluster number 2:
set-node east set-cluster 2 link eth1 eth1 - ether - link eth2 eth2 - ether - -
then the file on the new node should be the same, although it is recommended to use the -c -nN option, where N is the number of cluster nodes.
then, the file on all nodes, including the new node, should change to reflect the change in the number of cluster nodes. For example, the new file on each node should resemble:
/sbin/gabconfig -c -n3
See /etc/gabtab on page 186. The -n flag indicates to VCS the number of nodes required to be ready to form a cluster before VCS starts. 2 On the new node, run the command, to configure GAB:
# /sbin/gabconfig -c
The output should indicate that Port a membership shows all nodes including the new node. The output should resemble:
GAB Port Memberships ==================================== Port a gen a3640003 membership 012
See Verifying GAB on page 195. 2 Run the same command on the other nodes (north and south) to verify that the Port a membership includes the new node:
# /sbin/gabconfig -a GAB Port Memberships ==================================== Port a gen a3640003 membership 012 Port h gen fd570002 membership 01 Port h gen fd570002 visible ; 2
Copy the main.cf file from an existing node to your new node:
# rcp /etc/VRTSvcs/conf/config/main.cf east:/etc/VRTSvcs/conf/ config/
5 6 7
Run the GAB configuration command on each node to verify that Port a and Port h include the new node in the membership:
# /sbin/gabconfig -a GAB Port Memberships =================================== Port a gen a3640003 membership 012 Port h gen fd570002 membership 012
Back up the configuration file. Check the status of the nodes and the service groups.
Switch or remove any VCS service groups Deleting the leaving node from VCS configuration on page 11 on the node leaving the cluster. Delete the node from VCS configuration. Modifying configuration files on each remaining node on page 13 Unloading LLT and GAB and removing VCS on the leaving node on page 13
Modify the llthosts and gabtab files to reflect the change. On the node leaving the cluster:
Modify startup scripts for LLT, GAB, and VCS to allow reboot of the node without affecting the cluster. Unconfigure and unload the LLT and GAB utilities. Remove the VCS RPMs.
Frozen 0 0 0
11
Probed AutoDisabled State Y N ONLINE Y N OFFLINE Y N ONLINE Y N OFFLINE Y N ONLINE Y N ONLINE The example output from the hastatus command shows that nodes A, B,
--B B B B B B
GROUP STATE Group System grp1 A grp1 B grp2 A grp3 B grp3 C grp4 C
and C are the nodes in the cluster. Also, service group grp3 is configured to run on node B and node C, the leaving node. Service group grp4 runs only on node C. Service groups grp1 and grp2 do not run on node C.
Check for any dependencies involving any service groups that run on the leaving node; for example, grp4 runs only on the leaving node.
# hagrp -dep
If the service group on the leaving node requires other service groups, that is, if it is a parent to service groups on other nodes, then unlink the service groups.
# haconf -makerw # hagrp -unlink grp4 grp1
These commands enable you to edit the configuration and to remove the requirement grp4 has for grp1. 4 5 Stop VCS on the leaving node:
# hastop -sys C
Check the status again. The state of the leaving node should be EXITED. Also, any service groups set up for failover should be online on other nodes:
# hastatus -summary --A A A SYSTEM STATE System State A RUNNING B RUNNING C EXITED
Frozen 0 0 0
--B B B B B B
GROUP STATE Group System grp1 A grp1 B grp2 A grp3 B grp3 C grp4 C
Probed Y Y Y Y Y Y
AutoDisabled N N N N Y N
Delete the leaving node from the SystemList of service groups grp3 and grp4.
# hagrp -modify grp3 SystemList -delete C # hagrp -modify grp4 SystemList -delete C
For service groups that run only on the leaving node, delete the resources from the group before deleting the group.
# hagrp -resources grp4 processx_grp4 processy_grp4 # hares -delete processx_grp4 # hares -delete processy_grp4
8 9
Frozen 0 0 0
Probed Y Y Y Y
AutoDisabled N N N N
13
to:
0 A 1 B
Unloading LLT and GAB and removing VCS on the leaving node
Perform the tasks on the node leaving the cluster. To stop LLT and GAB and remove VCS 1 Stop GAB and LLT:
# /etc/init.d/gab stop # /etc/init.d/llt stop
2 3
To permanently remove the VCS RPMs from the system, use the rpm -e command.
# # # # # rpm rpm rpm rpm rpm -e -e -e -e -e VRTScmccc VRTScmcs VRTScssim VRTScscm VRTSvcsdc
# # # # # # # # # # # # # # # # # # # # # # #
rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm rpm
-e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e -e
VRTSvcsmn VRTScutil VRTSweb VRTScscw VRTSjre15 VRTSjre VRTSvcsdr VRTSvcsag VRTSacclib VRTSvcsmg VRTSvcs VRTSvxfen VRTSgab VRTSllt VRTSvlic VRTSspt VRTSsmf VRTSperl VRTSpbx VRTSicsco VRTSatServer VRTSatClient SYMClma