Go to main content
Oracle® Solaris Cluster 4.3 System Administration Guide

Exit Print View

Updated: June 2017
 
 

How to Remove a Storage Device From a Zone Cluster

You can remove storage devices, such as Solaris Volume Manager disk sets and DID devices, from a zone cluster. Perform this procedure to remove a storage device from a zone cluster.


Note -  You can also use the Oracle Solaris Cluster Manager browser interface to remove a storage device from a zone cluster. Click Zone Clusters, click the name of the zone cluster to go to its page, then click the Solaris Resources tab to administer zone-cluster components. For Oracle Solaris Cluster Manager log-in instructions, see How to Access Oracle Solaris Cluster Manager.
  1. Assume the root role on a node of the global cluster that hosts the zone cluster.

    Some steps in this procedure are performed from a node of the global cluster. Other steps can be performed from a node of the zone cluster.

  2. Delete the resources related to the devices being removed.

    Identify and remove the Oracle Solaris Cluster resource types, such as SUNW.HAStoragePlus and SUNW.ScalDeviceGroup, that are configured for the zone cluster's devices that you are removing.

    phys-schost# clresource delete -F -Z zone-cluster dev_zone_resources
  3. Determine the match entry for the devices to be removed.
    phys-schost# clzonecluster show -v zone-cluster
    …
    Resource Name:       device
    match:               <device_match>
    …
  4. Remove the devices from the zone-cluster configuration.
    phys-schost# clzonecluster configure zone-cluster
    clzc:zone-cluster-name> remove device match=devices-match
    clzc:zone-cluster-name> commit
    clzc:zone-cluster-name> end
  5. Reboot the zone cluster.
    phys-schost# clzonecluster reboot zone-cluster
  6. Verify the removal of the devices.
    phys-schost# clzonecluster show -v zone-cluster
Example 87  Removing a Solaris Volume Manager Disk Set From a Zone Cluster

This example shows how to remove a Solaris Volume Manager disk set called apachedg configured in a zone cluster called sczone. The set number of the apachedg disk set is 3. The devices are used by the zc_rs resource that is configured in the cluster.

phys-schost# clzonecluster show -v sczone
...
Resource Name:      device
match:              /dev/md/apachedg/*dsk/*
Resource Name:      device
match:              /dev/md/shared/3/*dsk/*
...
phys-schost# clresource delete -F -Z sczone zc_rs

phys-schost# ls -l /dev/md/apachedg
lrwxrwxrwx 1 root root 8 Jul 22 23:11 /dev/md/apachedg -> shared/3
phys-schost# clzonecluster configure sczone
clzc:sczone> remove device match=/dev/md/apachedg/*dsk/*
clzc:sczone> remove device match=/dev/md/shared/3/*dsk/*
clzc:sczone> commit
clzc:sczone> end
phys-schost# clzonecluster reboot sczone
phys-schost# clzonecluster show -v sczone
Example 88  Removing a DID Device From a Zone Cluster

This example shows how to remove DID devices d10 and d11, which are configured in a zone cluster called sczone. The devices are used by the zc_rs resource that is configured in the cluster.

phys-schost# clzonecluster show -v sczone
...
Resource Name:       device
match:               /dev/did/*dsk/d10*
Resource Name:       device
match:               /dev/did/*dsk/d11*
...
phys-schost# clresource delete -F -Z sczone zc_rs
phys-schost# clzonecluster configure sczone
clzc:sczone> remove device match=/dev/did/*dsk/d10*
clzc:sczone> remove device match=/dev/did/*dsk/d11*
clzc:sczone> commit
clzc:sczone> end
phys-schost# 
phys-schost# clzonecluster show -v sczone