Solstice DiskSuite 4.2.1 User's Guide

How to Remove a Trans Metadevice From a File System That Cannot Be Unmounted (Command Line)

After checking the prerequisites ("Prerequisites for Removing DiskSuite Objects") and the preliminary information ("Preliminary Information for Removing Trans Metadevices"), use the metadetach(1M) and metaclear(1M) commands to remove the trans metadevice. Refer to the metadetach(1M) and metaclear(1M) man pages for more information.

Use this procedure to remove a trans metadevice from a file system, such as /usr, that cannot be unmounted during normal system operation.

Example -- Removing a Trans Metadevice from /usr


# metadetach -f d20
d20: logging device c0t0d0s1 will be detached at unmount or reboot
# reboot
...
The /usr file system (/dev/rdsk/c0t3d0s3) is being checked.
...
(Edit the /etc/vfstab file)
# reboot
...
# metaclear d20
d20: Trans is cleared

In this example, d20 is a trans metadevice providing UFS logging for the /usr file system. To remove logging, the metadetach command is run with the -f option to force a detach of the logging device, and the system is rebooted. Next, the /etc/vfstab file is edited to change the entry for the file system so that it references the slice containing the file system rather than the trans metadevice. Another reboot places the /usr file system on its new mount device. The metaclear command clears the trans metadevice d20 from the system.