Solaris Volume Manager Administration Guide

ProcedureHow to Remove a RAID 0 Volume

  1. Make sure you have a current backup of all data and that you have root privilege.

  2. Make sure you no longer need the volume.

    If you delete a stripe or concatenation and reuse the slices that were part of the deleted volume, all data on the volume is gone from the system.

  3. Unmount the file system, if needed.

    # umount /filesystem
  4. To remove a volume, use one of the following methods:

    • From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node. Choose Edit->Delete, then follow the instructions. For more information, see the online help.

    • Use the following format of the metaclear command to delete the volume:

      metaclear volume-name

      See the following example and the metaclear(1M) man page for more information.

Example 9–8 Removing a Concatenation

# umount d8
# metaclear d8
d8: Concat/Stripe is cleared
(Edit the /etc/vfstab file)

This example illustrated clearing the concatenation d8 that also contains a mounted file system. The file system must be unmounted before the volume can be cleared. The system displays a confirmation message that the concatenation is cleared. If there is an entry in the /etc/vfstab file for this volume, delete that entry. You do not want to confuse the system by asking it to mount a file system on a nonexistent volume.