Before you remove a node from the cluster you need to identify the service groups that run on the node.
To remove or switch service groups from the departing node
Switch failover service groups from the departing node. You can switch grp3 from node saturn to node nebula.
# hagrp -switch grp3 -to nebula
Check for any dependencies involving any service groups that run on the departing node; for example, grp4 runs only on the departing node.
# hagrp -dep
If the service group on the departing node requires other service groups - if it is a parent to service groups on other nodes - 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.
Stop VCS on the departing node:
# hastop -sys saturn
Check the status again. The state of the departing node should be EXITED. Make sure that any service group that you want to fail over is online on other nodes.
# hastatus -summary -- SYSTEM STATE -- System State Frozen A galaxy RUNNING 0 A nebula RUNNING 0 A saturn EXITED 0 -- GROUP STATE -- Group System Probed AutoDisabled State B grp1 galaxy Y N ONLINE B grp1 nebula Y N OFFLINE B grp2 galaxy Y N ONLINE B grp3 nebula Y N ONLINE B grp3 saturn Y Y OFFLINE B grp4 saturn Y N OFFLINE
Delete the departing node from the SystemList of service groups grp3 and grp4.
# hagrp -modify grp3 SystemList -delete saturn # hagrp -modify grp4 SystemList -delete saturn
For the service groups that run only on the departing node, delete the resources from the group before you delete the group.
# hagrp -resources grp4 processx_grp4 processy_grp4 # hares -delete processx_grp4 # hares -delete processy_grp4
Delete the service group that is configured to run on the departing node.
# hagrp -delete grp4
# hastatus -summary -- SYSTEM STATE -- System State Frozen A galaxy RUNNING 0 A nebula RUNNING 0 A saturn EXITED 0 -- GROUP STATE -- Group System Probed AutoDisabled State B grp1 galaxy Y N ONLINE B grp1 nebula Y N OFFLINE B grp2 galaxy Y N ONLINE B grp3 nebula Y N ONLINE
Delete the node from the cluster.
# hasys -delete saturn
Save the configuration, making it read only.
# haconf -dump -makero