Sun Cluster 3.0 System Administration Guide

3.4.4 How to Remove a Node From a Disk Device Group (Solstice DiskSuite)

Use this procedure to remove a cluster node from disk device groups (diskset) running Solstice DiskSuite.

  1. Determine the disk device group(s) of which the node to be removed is a member.


    # scstat -D
    
  2. Become superuser on the node that currently owns the disk device group from which you want to remove the node.

  3. Delete from the disk device group the hostname of the node being removed.

    Repeat this step for each disk device group from which the node is being removed.


    # metaset -s setname -d -f -h node
    
    -s setname

    Specifies the disk device group (diskset) name

    -f

    Force

    -d

    Deletes from the disk device group

    -h nodelist

    Removes the node from the list of nodes that can master the disk device group


    Note -

    The update can take several minutes to complete.


  4. Verify that the node has been removed from the disk device group.

    The disk device group name will match the diskset name specified with metaset.


    # scstat -D
    

3.4.4.1 Example--Removing a Node From a Disk Device Group (SDS)

The following example shows the removal of the host name from a disk device group (metaset) and verifies that the node has been removed from the disk device group. Although the example shows the removal of a node from a single disk device group, a node can belong to more than one disk device group at a time. Repeat the metaset command for each disk device group from which you want to remove the node.


[Determine the disk device group(s) for the node:]
# scstat -D
  -- Device Group Servers --
                      Device Group  Primary       Secondary
                      ------------  -------       ---------
  Device group servers: dg-schost-1  phys-schost-1  phys-schost-2
[Become superuser.]
[Remove the hostname from all disk device groups:]
# metaset -s dg-schost-1 -d -f -h phys-schost-2
[Verify removal of the node:]
# scstat -D
  -- Device Group Servers --
                       Device Group  Primary       Secondary
                       ------------  -------       ---------
  Device group servers: dg-schost-1  phys-schost-1  -