Sun Cluster System Administration Guide for Solaris OS

ProcedureSPARC: How to Remove a Node From a Device Group (VERITAS Volume Manager)

Use this procedure to remove a cluster node from the list of potential primaries of a VERITAS Volume Manager (VxVM) device group (disk group).

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 A, Sun Cluster Object-Oriented Commands.

  1. Verify that the node is still a member of the group and that the group is an VxVM device group.

    Device group type VxVM indicates a VxVM device group.


    phys-schost-1% cldevicegroup show devicegroup
    
  2. Become superuser or assume a role that provides solaris.cluster.read and solaris.cluster.modify RBAC authorization on a current cluster member node.

  3. Start the clsetup utility.


    # clsetup
    

    The Main Menu is displayed.

  4. To reconfigure a device group, type the number that corresponds to the option for device groups and volumes.

  5. To remove the node from the VxVM device group, type the number that corresponds to the option for removing a node from a VxVM device group.

    Follow the prompts to remove the cluster node from the device group. You are asked for information about the following:

    • VxVM device group

    • Node name

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


    # cldevicegroup show devicegroup
    

Example 5–28 SPARC: Removing a Node From a Device Group (VxVM)

This example shows the removal of the node named phys-schost-1 from the dg1 VxVM device group.


[Determine the VxVM device group for the node:]
# cldevicegroup show dg1

=== Device Groups === 

Device Group Name:                        dg1
  Type:                                     VXVM
  failback:                                 no
  Node List:                                phys-schost-1, phys-schost-2
  preferenced:                              no
  numsecondaries:                           1
  diskgroup names:                             dg1
[Become superuser and start the clsetup utility:]
# clsetup
 Select Device groups and volumes>Remove a node from a VxVM device group.

Answer the questions when prompted. 
You will need the following information.
  Name:            Example:
  VxVM device group name    dg1
  node names                phys-schost-1

[Verify that the cldevicegroup command executed properly:]
 cldevicegroup remove-node -n phys-schost-1 dg1
 
    Command completed successfully.
Dismiss the clsetup  Device Groups Menu and Main Menu.
[Verify that the node was removed:]
# cldevicegroup show dg1

=== Device Groups === 

Device Group Name:                        dg1
  Type:                                     VXVM
  failback:                                 no
  Node List:                                phys-schost-2
  preferenced:                              no
  numsecondaries:                           1
  device names:                             dg1