Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: November 2019
 
 

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 the root role or 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

    Raw-disk device groups are shown with type Disk or Local_disk. Look for groups whose node list contains the node which is being removed.

  3. Disable the localonly property of each Local_Disk raw-disk device group.
    # cldevicegroup set -p localonly=false devicegroup

    See the cldevicegroup(8CL) 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 
  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 33  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
Device Group Name: dsk/d4
  Type: Local_disk
  failback: false
  Node List: phys-schost-2
  preferenced: false
  localonly: true
  autogen false
  numsecondaries: 1

...
Device Group Name: dsk/d1
  Type: Disk
  failback: false
  Node List: phys-schost-1, phys-schost-2
  preferenced: true
  localonly: false
  autogen false
  numsecondaries: 1
...

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 dsk/d4 dsk/d1
...
Device Group Name:                              dsk/d4
  Type:                                            Disk
...
Device Group Name:                              dsk/d1
  Type:                                            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/d1