This section describes how to remove state database replicas from the system.
It is possible to remove all state database replicas, but practically speaking, you should never do so while metadevices are still configured. Removing all state database replicas renders metadevices inoperable.
Removing the entry for a state database replica from the md.tab file does not delete the replica from the system. You must use DiskSuite Tool, or run the metadb -d command.
Before deleting the state database replica, make sure that it is no longer needed.
Make sure you have met the prerequisites ("Prerequisites for Removing DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Removing State Database Replicas").
Drag the MetaDB object from the Objects list to the Metadevice Editor window's canvas.
Drag the state database replica to be deleted from the MetaDB object.
Drag the selected slice to the Metadevice Editor's canvas.
Click inside the top rectangle of the MetaDB object and click Commit.
The status of the slice that contained the state database replica changes to Unassigned in the Slice Browser.
Put the slice away.
Select the slice that was dragged out of the MetaDB object and click Put Away. The slice is returned to the Slice Browser.
To verify that the MetaDB object was committed, display the Configuration Log.
A Warning message is displayed if you attempt to delete all state database replicas.
After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects"), and the preliminary information ("Preliminary Information for Removing State Database Replicas"), use the metadb(1M) command with the -d option to delete state database replicas. Make sure that the state database replica is no longer needed. Refer to the metadb(1M) man page for more information.
# metadb -d c0t2d0s0 c0t1d0s0 |
This example deletes two state database replicas, located on slices /dev/dsk/c0t2d0s0 and /dev/dsk/c0t1d0s0.
# metadb -f -d c0t1d0s3 c4t1d0s3 |
This example deletes a system's remaining two state database replicas. The -f option is needed.