Sun Cluster System Administration Guide for Solaris OS

SPARC: 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 VERITAS Volume Manager (VxVM) disk device group (disk group).

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

  1. Become superuser on a node in the cluster other than the node to remove.

  2. Identify the disk device groups that are connected to the node being removed.

    Look for the node name in the Device group node list entry.


    # scconf -pvv | grep nodename | grep "Device group node list"
    

  3. Determine which disk device groups identified in Step 2 are raw disk device groups.

    Raw disk device groups are of the Disk or Local_Disk device group type.


    # scconf -pvv | grep group-type
    

  4. Disable the localonly property of each Local_Disk raw disk device group.


    # scconf -c -D name=rawdisk-device-group,localonly=false
    

    See the scconf_dg_rawdisk(1M) man page for more information about the localonly property.

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


    # scconf -pvv | grep group-type 
    

  6. Remove the node from all raw disk device groups identified in Step 3.

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


    # scconf -r -D name=rawdisk-device-group,nodelist=nodename
    

SPARC: Example—Removing a Node From a Raw Disk 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 disk device groups connected to the node being removed:]
phys-schost-1# scconf -pvv | grep phys-schost-2 | grep "Device group node list"
	(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
[Identify the raw disk device groups:]
phys-schost-1# scconf -pvv | grep Disk
	(dsk/d4) Device group type:          Local_Disk
	(dsk/d8) Device group type:          Local_Disk
[Disable the localonly flag for each local disk on the node:]
phys-schost-1# scconf -c -D name=dsk/d4,localonly=false
[Verify that the localonly flag is disabled:]
phys-schost-1# scconf -pvv | grep Disk 
    (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# scconf -r -D name=dsk/d4,nodelist=phys-schost-2
phys-schost-1# scconf -r -D name=dsk/d2,nodelist=phys-schost-2
phys-schost-1# scconf -r -D name=dsk/d1,nodelist=phys-schost-2