Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Remove a Node From a Device Group (Solaris Volume Manager)

Use this procedure to remove a cluster node from the list of potential primaries of a Solaris Volume Manager device group. Repeat the metaset command for each device group from which you want to remove the node.


Caution – Caution –

Do not run metaset —s setname —f -t on a cluster node that is booted outside the cluster if other nodes are active cluster members and at least one of them owns the disk set.


The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.

This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix B, Sun Cluster Object-Oriented Commands.

  1. Verify that the node is still a member of the device group and that the device group is a Solaris Volume Manager device group.

    Device group type SDS/SVM indicates a Solaris Volume Manager device group.


    phys-schost-1% cldevicegroup show devicegroup
    
  2. Determine which node is the current primary for the device group.


    # cluster status -t devicegroup
    
  3. Become superuser on the node that currently owns the device group that you want to modify.

  4. Delete the node's hostname from the device group.


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

    Specifies the device group name.

    -d

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

    -h nodelist

    Specifies the node name of the node or nodes that will be removed.


    Note –

    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
    
  5. Repeat Step 4 for each device group from which the node is being removed as a potential primary.

  6. Verify that the node has been removed from the device group.

    The device group name matches the disk set name that is specified with metaset.


    phys-schost-1% cldevicegroup list -v devicegroup
    

Example 5–23 Removing a Node From a Device Group (Solaris Volume Manager)

The following example shows the removal of the hostname phys-schost-2 from a device group configuration. This example eliminates phys-schost-2 as a potential primary for the designated device group. Verify removal of the node by running the cldevicegroup show command. Check that the removed node is no longer displayed in the screen text.


[Determine the Solaris Volume Manager
 device group for the node:]
# cldevicegroup show dg-schost-1
=== Device Groups ===                          

Device Group Name:                    dg-schost-1
  Type:                                 SVM
  failback:                             no
  Node List:                            phys-schost-1, phys-schost-2
  preferenced:                          yes
  numsecondaries:                       1
  diskset name:                         dg-schost-1
[Determine which node is the current primary for the device group:]
# cldevicegroup status dg-schost-1
=== Cluster Device Groups ===

--- Device Group Status ---

Device Group Name    Primary         Secondary      Status
-----------------    -------         ---------      ------
dg-schost-1          phys-schost-1   phys-schost-2  Online
[Become superuser on the node that currently owns the device group.]
[Remove the host name from the device group:]
# metaset -s dg-schost-1 -d -h phys-schost-2
[Verify removal of the node:]]
phys-schost-1% cldevicegroup list -v dg-schost-1
=== Cluster Device Groups ===

--- Device Group Status ---

Device Group Name    Primary         Secondary      Status
-----------------    -------         ---------      ------
dg-schost-1          phys-schost-1   -              Online