This section describes how to remove stripes and concatenations from the system.
Any data that is on a 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.
Before deleting a stripe or concatenation, make sure you no longer need it.
If you delete a stripe or concatenation and reuse the slices that were part of the deleted metadevice, all data on the metadevice is gone from the system. Thus, make sure you back up the data on the metadevice before deleting it.
Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects"), and have read the preliminary information ("Preliminary Information for Removing Stripes and Concatenations").
Make sure you have a current backup of the metadevice.
Stop access to the metadevice.
For example, a file system on the metadevice 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.
Double-click the stripe or concatenation to be deleted in the Objects list.
The metadevice object appears on the canvas.
Display the object's pop-up menu and choose Delete.
Click Really Delete on the dialog box that is displayed.
[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 metadevice.
To verify that the object was deleted, display the Configuration Log.
Hot spare pools assigned to the metadevice are not deleted.
After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects"), and the preliminary information ("Preliminary Information for Removing Stripes and Concatenations"), use the metaclear(1M) command to delete the metadevice. Refer to the metaclear(1M) man page for more information.
# umount d8 # metaclear d8 d8: Concat/Stripe is cleared (Edit the /etc/vfstab file) |
This example clears the concatenation d8 that also contains a mounted file system. The file system must be unmounted before the metadevice 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 metadevice, delete that entry. You do not want to confuse the system by asking it to mount a file system on a non-existent metadevice.