Solstice DiskSuite 4.2.1 User's Guide

Removing Disksets

This section describes how to remove disksets from the system.

Preliminary Information for Removing Hosts and Disks From Disksets

How to Remove a Host From a Diskset (Command Line)

  1. Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing Hosts and Disks From Disksets").

  2. Remove a host from a diskset by using the metaset(1M) command.


    # metaset -s diskset -d -h host
    

    In this command,

    -s diskset

    Specifies the name of a diskset on which metaset will work.

    -d

    Deletes the specified host. 

    -h host

    Specifies one or more hostnames to be deleted from the diskset. The hostname is the same name found in /etc/nodename.

  3. To verify that a host has been removed from the diskset, use the metaset(1M) command without any options.


    # metaset
    

Example -- Removing a Host from a Diskset


red# metaset -s relo-red -d -h blue
red# metaset
 
Set name = relo-red, Set number = 1
Host                Owner
  red                Yes
...

This example removes the host blue from the diskset relo-red.

How to Remove a Drive From a Diskset (Command Line)

  1. Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing Hosts and Disks From Disksets").

  2. Remove the drive from the diskset by using the metaset(1M) command.


    # metaset -s diskset -d [-f] drive...
    

    In this command,

    -s diskset

    Specifies the name of a diskset on which metaset will work.

    -d

    Deletes the specified drivename(s). 

    -f

    Forces the deletion of the last drive in the diskset, because this drive would implicitly contain the last state database replica. 

    drive

    Specifies the drive(s) to be deleted from the diskset. They must be in the form cxtxdx with no slice specified.


    Note -

    Use the -f option to delete the last drive in the diskset.


  3. To verify that a drive has been removed from the diskset, use the metaset(1M) command.

Example -- Removing a Drive from a Diskset


red# metaset -s relo-red -d c2t5d0
red# metaset
...
Host                Owner
  red                Yes
  blue
 
Drive               Dbase
  c1t2d0             Yes
  c1t3d0             Yes
  c2t2d0             Yes
  c2t3d0             Yes
  c2t4d0             Yes

This example removes drive c2t5d0 from diskset relo-red. The metaset command confirms that the deleted drive is no longer part of the diskset.

How to Remove a Diskset (Command Line)

Removing a diskset completely means:

Example -- Removing a Diskset

After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects"), and the preliminary information ("Preliminary Information for Removing Hosts and Disks From Disksets"), use the metaclear(1M) and metaset(1M) commands to completely remove a diskset. Refer to the metaclear(1M) and metaset(1M) man pages for more information.


red# metaclear -s relo-red -a
red# metaset -s relo-red -d -h blue
red# metaset -s relo-red -f -d c1t2d0 c1t3d0 c2t2d0 c2t3d0 c2t4d0 c2t5d0
red# metaset -s relo-red -d -h red

The metaclear -a command clears (removes) all metadevices and hot spare pools from the relo-red diskset. Next, host blue is deleted from the diskset, followed by the shared disk drives. Finally, the last host in the set, in this case, red, is deleted from the diskset. This last command removes the diskset from the system.