Go to main content

Oracle® Solaris Cluster 4.3 System Administration Guide

Exit Print View

Updated: June 2017
 
 

How to Remove a Node From a Raw-Disk Device Group

Use this procedure to remove a cluster node from the list of potential primaries of a raw-disk device group.

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

This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.

  1. Assume a role that provides solaris.cluster.read and solaris.cluster.modify authorization on a node in the cluster other than the node to remove.
  2. Identify the device groups that are connected to the node being removed, and determine which are raw-disk device groups.
    # cldevicegroup show -n nodename -t rawdisk +
  3. Disable the localonly property of each Local_Disk raw-disk device group.
    # cldevicegroup set -p localonly=false devicegroup

    See the cldevicegroup(1CL) man page for more information about the localonly property.

  4. Verify that you have disabled the localonly property of all raw-disk device groups that are connected to the node being removed.

    The Disk device group type indicates that the localonly property is disabled for that raw-disk device group.

    # cldevicegroup show -n nodename -t rawdisk -v + 
  5. Remove the node from all raw-disk device groups that are identified in Step 2.

    You must complete this step for each raw-disk device group that is connected to the node being removed.

    # cldevicegroup remove-node -n nodename devicegroup
Example 39  Removing a Node From a Raw Device Group

This example shows how to remove a node (phys-schost-2) from a raw-disk device group. All commands are run from another node of the cluster (phys-schost-1).

Identify the device groups connected to the node being removed,
and determine which are raw-disk device groups
phys-schost-1# cldevicegroup show -n phys-schost-2 -t rawdisk -v +
Device Group Name:                              dsk/d4
  Type:                                           Disk
  failback:                                       false
  Node List:                                      phys-schost-2
  preferenced:                                    false
  localonly:                                      false
  autogen                                         true
  numsecondaries:                                 1
  device names:                                   phys-schost-2
Device Group Name:                              dsk/d1
  Type:                                           SVM
  failback:                                       false
  Node List:                                      pbrave1, pbrave2
  preferenced:                                    true
  localonly:                                      false
  autogen                                         true
  numsecondaries:                                 1
  diskset name:                                   ms1
(dsk/d4) Device group node list:  phys-schost-2
(dsk/d2) Device group node list:  phys-schost-1, phys-schost-2
(dsk/d1) Device group node list:  phys-schost-1, phys-schost-2

Disable the localonly flag for each local disk on the node
phys-schost-1# cldevicegroup set -p localonly=false dsk/d4

Verify that the localonly flag is disabled
phys-schost-1# cldevicegroup show -n phys-schost-2 -t rawdisk +
(dsk/d4) Device group type:          Disk
(dsk/d8) Device group type:          Local_Disk

Remove the node from all raw-disk device groups
phys-schost-1# cldevicegroup remove-node -n phys-schost-2 dsk/d4
phys-schost-1# cldevicegroup remove-node -n phys-schost-2 dsk/d2
phys-schost-1# cldevicegroup remove-node -n phys-schost-2 dsk/d1