This section describes how to configure SFCFS and CVM agents on the new node.
To configure SFCFS and CVM agents on the new node
Verify if the /etc/VRTSvcs/conf/config/.stale
file is present, before starting VCS.
If the /etc/VRTSvcs/conf/config/.stale
file is not present, enter:
# touch /etc/VRTSvcs/conf/config/.stale
On the new node, verify that the GAB port memberships are a and b. Run the following command:
# /sbin/gabconfig -a
Determine the CVM master node:
# vxdctl -c mode
Make a backup copy of the main.cf file. Enter the following commands:
# cd /etc/VRTSvcs/conf/config # cp main.cf main.cf.2node
Open the VCS configuration for writing and add the new node. For example:
# haconf -makerw # hasys -add system03
Add the new node to the CVM system list and specify a failover priority of 2:
# hagrp -modify cvm SystemList -add system03 X
where X is one more than the index of the last system in System list of CVM service group in /etc/VRTSvcs/conf/config/main.cf.
Add the new node to the CVM AutoStartList:
# hagrp -modify cvm AutoStartList -add system03
Node ID can be obtained from CVMNodeId of /etc/VRTSvcs/conf/config/main.cf
. Add the new node, system03, and its node ID, #, to the cvm_clust resource:
# hares -modify cvm_clust CVMNodeId -add system03 2
Write the new VCS configuration to disk:
# haconf -dump -makero
Verify the syntax of main.cf file:
# hacf -verify .
To enable the existing cluster to recognize the new node, execute on all the nodes in the cluster:
# /etc/vx/bin/vxclustadm -m vcs -t gab reinit # /etc/vx/bin/vxclustadm nidmap
Check the system status to see whether the new node is online:
# hastatus -sum -- SYSTEM STATE -- System State Frozen A system01 RUNNING 0 A system02 RUNNING 0 A system03 RUNNING 0 -- GROUP STATE -- Group System Probed AutoDisabled State B cvm system01 Y N ONLINE B cvm system02 Y N ONLINE B cvm system03 Y N ONLINE
Add shared disk groups to the cluster configuration:
# cfsdgadm add cfsdg system03=sw
Create a /mnt on system03 and run the following commands for the shared mount points:
# cfsmntadm modify /mnt add system03=rw
Use thecfsmount command to cluster mount /mnt
on the new node:
# cfsmount /mnt