Before you remove a node from the cluster you need to identify the service groups that run on the node.
You then need to perform the following actions:
Remove the service groups that other service groups depend on, or
Switch the service groups to another node that other service groups depend on.
To remove or switch service groups from the departing node
# hagrp -switch grp3 -to sys2
# hagrp -dep
# haconf -makerw # hagrp -unlink grp4 grp1
These commands enable you to edit the configuration and to remove the requirement grp4 has for grp1.
# hastop -sys sys5
# hastatus -summary -- SYSTEM STATE -- System State Frozen A sys1 RUNNING 0 A sys2 RUNNING 0 A sys5 EXITED 0 -- GROUP STATE -- Group System Probed AutoDisabled State B grp1 sys1 Y N ONLINE B grp1 sys2 Y N OFFLINE B grp2 sys1 Y N ONLINE B grp3 sys2 Y N ONLINE B grp3 sys5 Y Y OFFLINE B grp4 sys5 Y N OFFLINE
# haconf -makerw # hagrp -modify grp3 SystemList -delete sys5 # hagrp -modify grp4 SystemList -delete sys5
# hagrp -resources grp4 processx_grp4 processy_grp4 # hares -delete processx_grp4 # hares -delete processy_grp4
# hagrp -delete grp4
# hastatus -summary -- SYSTEM STATE -- System State Frozen A sys1 RUNNING 0 A sys2 RUNNING 0 A sys5 EXITED 0 -- GROUP STATE -- Group System Probed AutoDisabled State B grp1 sys1 Y N ONLINE B grp1 sys2 Y N OFFLINE B grp2 sys1 Y N ONLINE B grp3 sys2 Y N ONLINE
# hasys -delete sys5
# haconf -dump -makero