Deleting the departing node from VCS configuration

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:

To remove or switch service groups from the departing node

  1. Switch failover service groups from the departing node. You can switch grp3 from node saturn to node nebula.

    # hagrp -switch grp3 -to nebula
    
  2. 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
    
  3. 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.

  4. Stop VCS on the departing node:

    # hastop -sys saturn
    
  5. 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
  6. 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
    
  7. 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
    
  8. Delete the service group that is configured to run on the departing node.

    # hagrp -delete grp4
    
  9. Check the status.

    # 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
  10. Delete the node from the cluster.

    # hasys -delete saturn
    
  11. Save the configuration, making it read only.

    # haconf -dump -makero