Solaris Volume Manager Administration Guide

ProcedureHow to Purge a Disk Set

  1. Attempt to take the disk set with the metaset command.

    # metaset -s setname -t -f

    This command will attempt to take (-t) the disk set named setname forcibly (-f). If the set can be taken, this command will succeed. If the set is owned by another host when this command runs, the other host will panic to avoid data corruption or loss. If this command succeeds, you can delete the disk set cleanly, without the need to purge the set.

    If it is not possible to take the set, you may purge ownership records.

  2. Use the metaset command with the -P to purge the disk set from the current host.

    # metaset -s setname -P

    This command will purge (-P) the disk set named setname from the host on which the command is run.

  3. Use the metaset command to verify that the set has been purged.

    # metaset

Example 25–5 Purging a Disk Set

host1# metaset -s red -t -f
metaset: host1: setname "red": no such set

host2# metaset

Set name = red, Set number = 1

Host                Owner

Drive    Dbase

c1t2d0   Yes  

c1t3d0   Yes  

c1t8d0   Yes  

host2# metaset -s red -P
host2# metaset

See Also