Sun Cluster 3.0 System Administration Guide

6.3.1.1 Example--Removing a Cluster Node

This example shows how to remove a node (phys-schost-2) from a cluster.


[Become superuser on any node.]
[Determine the boot disks on the node:]
# scconf -pvv | grep Local_Disk
	(dsk/d4) Device group type:          Local_Disk	(dsk/d3) Device group type:          Local_Disk
# scdidadm -L d4
  ...
  4        phys-schost-2:/dev/rdsk/c1t3d0 /dev/did/rdsk/d4
[Remove the localonly flag:]
# scconf -c -D name=dsk/d4,localonly=false
[Remove the node from all raw disk device groups:]
# scconf -pvv | grep phys-schost-2 | grep Device
	(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
# scconf -r -D name=dsk/d4,nodelist=phys-schost-2
# scconf -r -D name=dsk/d2,nodelist=phys-schost-2
# scconf -r -D name=dsk/d1,nodelist=phys-schost-2
[Remove the node from the cluster:]
# scconf -r -h node=phys-schost-2
[Verify node removal:]# scstat -n
 
-- Cluster Nodes --
 
                    Node name           Status
                    ---------           ------
  Cluster node:     phys-schost-1       Online