Sun Cluster 3.0 5/02 Supplement

How to Remove a Node From a Disk Device Group (Solstice DiskSuite) (5/02)

Use this procedure to remove a cluster node from the list of potential primaries of a Solstice DiskSuite disk device group. A node can belong to more than one disk device group at a time, so repeat the metaset command for each disk device group from which you want to remove the node.

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

    Device group type SDS indicates a Solstice DiskSuite disk device group.


    # scconf -p | grep Device
    

  2. Become superuser on the node that currently owns the disk device group you want to modify.

  3. Delete the node's hostname from the disk device group.


    # metaset -s setname -d -h nodelist
    

    -s setname

    Specifies the disk device group name

    -d

    Deletes from the disk device group the nodes identified with -h

    -h nodelist

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


    only -

    The update can take several minutes to complete.


    If the command fails, add the -f (Force) option to the command.


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

  4. Repeat Step 3 for each disk device group from which the node is being removed as a potential primary.

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

Example-Removing a Node From a Disk Device Group (Solstice DiskSuite)

The following example shows the removal of the host name phys-schost-2 from a disk device group configuration. This eliminates phys-schost-2 as a potential primary for the designated disk device group. Verify removal of the node by running the scstat -D command and by checking that the removed node is no longer displayed in the screen text.


[Determine the Solstice DiskSuite disk device group(2) for the node:]
# scconf -p | grep Device
  Device group name:                 dg-schost-1
    Device group type:               SDS
    Device group failback enabled:   no
    Device group node list:          phys-schost-1, phys-schost-2
    Device group ordered node list:  yes
    Device group diskset name:    	dg-schost-1
[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 -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  -