Removing a RAID-0 Volume

How to Remove a RAID-0 Volume

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

  2. Make sure that 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 deleted 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 onscreen 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 illustrates removing the concatenation, d8, that also contains a mounted file system. The file system must be unmounted before the volume can be removed. The system displays a confirmation message that the concatenation is removed. If an entry in the /etc/vfstab file exists 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.