Symantec logo

Deleting the leaving node from VCS configuration

Before removing a node from the cluster, you must remove or switch from the leaving node the service groups on which other service groups depend.

 To remove or switch service groups from the leaving node

  1. Switch failover service groups from the leaving node. You can switch grp3 from node C to node B.

    # hagrp -switch grp3 -to B

  2. 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

  3. 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. Stop VCS on the leaving node:

    # hastop -sys C

  5. 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

    -- SYSTEM STATE

    -- System State Frozen

    A A RUNNING 0

    A B RUNNING 0

    A C EXITED 0

    -- GROUP STATE

    -- Group System Probed AutoDisabled State

    B grp1 A Y N ONLINE

    B grp1 B Y N OFFLINE

    B grp2 A Y N ONLINE

    B grp3 B Y N ONLINE

    B grp3 C Y Y OFFLINE

    B grp4 C Y N OFFLINE

  6. 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

  7. 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. Delete the service group configured to run on the leaving node.

    # hagrp -delete grp4

  9. Check the status.

    # hastatus -summary

    -- SYSTEM STATE

    -- System State Frozen

    A A RUNNING 0

    A B RUNNING 0

    A C EXITED 0

    -- GROUP STATE

    -- Group System Probed AutoDisabled State

    B grp1 A Y N ONLINE

    B grp1 B Y N OFFLINE

    B grp2 A Y N ONLINE

    B grp3 B Y N ONLINE

  10. Delete the node from the cluster.

    # hasys -delete C

  11. Save the configuration, making it read only.

    # haconf -dump -makero