Perform the following steps to establish running service groups.
To establish running service groups
Establish the nodes on which your service groups are online.
# hagrp -state
The output resembles the following:
#Group Attribute System Value sg1 State node01 |ONLINE| sg1 State node02 |ONLINE| sg1 State node03 |ONLINE| sg1 State node04 |ONLINE| sg2 State node01 |ONLINE| sg2 State node02 |ONLINE| sg2 State node03 |ONLINE| sg2 State node04 |ONLINE| sg3 State node01 |ONLINE| sg3 State node02 |OFFLINE| sg3 State node03 |OFFLINE| sg3 State node04 |OFFLINE| sg4 State node01 |OFFLINE| sg4 State node02 |ONLINE| sg4 State node03 |OFFLINE| sg4 State node04 |OFFLINE|
Switch the failover service groups (sg3 and sg4) from the first subcluster (node01 and node02) to the nodes on the second subcluster (node03 and node04).
# hagrp -offline sg1 -sys node01 # hagrp -offline sg2 -sys node01 # hagrp -offline sg1 -sys node02 # hagrp -offline sg2 -sys node02 # hagrp -switch sg3 -to node03 # hagrp -switch sg4 -to node04
Make the VCS configuration writable on the second subcluster.
# haconf -makerw
# hagrp -freeze sg1 -persistent # hagrp -freeze sg2 -persistent # hagrp -freeze sg3 -persistent # hagrp -freeze sg4 -persistent
Dump the configuration and make it read-only.
# haconf -dump -makero
Verify that your service groups are offline on the nodes targeted for upgrade.
# hagrp -state
The output resembles the following:
#Group Attribute System Value sg1 State node01 |OFFLINE| sg1 State node02 |OFFLINE| sg1 State node03 |ONLINE| sg1 State node04 |ONLINE| sg2 State node01 |OFFLINE| sg2 State node02 |OFFLINE| sg2 State node03 |ONLINE| sg2 State node04 |ONLINE| sg3 State node01 |OFFLINE| sg3 State node02 |OFFLINE| sg3 State node03 |ONLINE| sg3 State node04 |OFFLINE| sg4 State node01 |OFFLINE| sg4 State node02 |OFFLINE| sg4 State node03 |OFFLINE| sg4 State node04 |ONLINE|
During the next procedure, do not perform any configuration tasks. Do not start any modules.
Take a backup of the llttab, llthosts, gabtab, types.cf, and main.cf files on the first subcluster.
# cp /etc/llttab /etc/llttab.bkp # cp /etc/llthosts /etc/llthosts.bkp # cp /etc/gabtab /etc/gabtab.bkp # cp /etc/VRTSvcs/conf/config/main.cf \ /etc/VRTSvcs/conf/config/main.cf.bkp # cp /etc/VRTSvcs/conf/config/types.cf \ /etc/VRTSvcs/conf/config/types.cf.bkp
Stop VCS and its components on node01 and node02.
# /sbin/init.d/vcs stop # /sbin/init.d/vxfen stop # /sbin/gabconfig -U # /sbin/lltconfig -Uo
Perform this step if you are upgrading from VCS 4.1 or VCS 5.0 on HP-UX 11i v2.
Remove LLT, GAB, and VxFEN device files on each node of the first subcluster.
# rm -f /dev/llt # rm -f /dev/gab* # rm -f /dev/vxfen
Edit the following files on the first subcluster to make the values of LLT_START, GAB_START and VXFEN_START equal to zero. (By default it is 1).
# /etc/rc.config.d/lltconf # /etc/rc.config.d/gabconf # /etc/rc.config.d/vxfenconf
Performing this step prevents LLT, GAB, and VxFEN from restarting if the nodes reboot accidentally. If the node01 and node02 reboot accidentally, it may cause node03 and node04 to panic.
Unfreeze the service groups on the second subcluster (node03 and node04).
# haconf -makerw # hagrp -unfreeze sg1 -persistent # hagrp -unfreeze sg2 -persistent # hagrp -unfreeze sg3 -persistent # hagrp -unfreeze sg4 -persistent # haconf -dump -makero