Solstice DiskSuite 4.2.1 User's Guide

Removing RAID5 Metadevices

This section describes how to remove RAID5 metadevices from the system.


Caution - Caution -

Any data that is on the RAID5 metadevice is lost when it is removed from the system for good, and its underlying slices are reused. Data should be backed up if you need to save it.


Preliminary Information for Removing RAID5 Metadevices

How to Remove a RAID5 Metadevice (DiskSuite Tool)

  1. Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing RAID5 Metadevices").

  2. Make sure you have a current backup of the metadevice.

  3. Stop access to the RAID5 metadevice.

    For example, a file system should be unmounted. For a non-UFS application, such as a database, perform the steps necessary to stop the application's use of the metadevice.

  4. Double-click the RAID5 object to be deleted in the Objects list.

    The RAID5 object appears on the canvas.

  5. Display the RAID5 object's pop-up menu and select Delete.

  6. Click Really Delete on the dialog box that is displayed.

  7. [Optional] If there is an entry in the /etc/vfstab file for this metadevice, delete that entry.

    You do not want to confuse the system by asking it to mount a file system on a non-existent device.

  8. To verify that the object was deleted, display the Configuration Log.


    Note -

    Hot spare pools assigned to the metadevice are not deleted.


How to Remove a RAID5 Metadevice (Command Line)

After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects"), and the preliminary information ("Preliminary Information for Removing RAID5 Metadevices"), use the metaclear(1M) command to delete the metadevice. Refer to the metaclear(1M) man page for more information.

Example -- Removing a RAID5 Metadevice


# umount /nfs
# metaclear d80
d80: RAID is cleared
(Edit the /etc/vfstab file)

This example clears the RAID5 metadevice d80 that also contains a mounted file system, /nfs. Access to d80 is stopped by unmounting its file system. The system displays a confirmation message that the RAID5 metadevice is cleared. If there is an entry in the /etc/vfstab file for this metadevice, it should be deleted. You do not want to confuse the system by attempting to mount a file system on a non-existent metadevice.