The following procedure describes how to unconfigure a disk being used by one or more UFS file systems.
Stop any application processes on the file systems to be unconfigured.
Back up your system.
Determine what file system(s) are on the disk:
# mount | grep cwtxdysz
For example, if the device to be removed is c2t1d0, enter the following:
# mount | grep c2t3d0 /export/home (/dev/dsk/c2t1d0s7 ): 98892 blocks 142713 files /export/home2 (/dev/dsk/c2t1d0s5 ): 153424 blocks 112107 files
Determine and save the partition table for the disk.
If the replacement disk is the same type as the faulty disk, you can use the format command to save the partition table of the disk. Use the save command in format to save a copy of the partition table to the /etc/format.dat file. This enables you to configure the replacement disk so that its layout matches the current disk.
Refer to the format(1M) man page for more information.
Unmount any file systems on the disk.
If the file system(s) is on a disk that is failing or has failed, the umount operation may not complete. A large number of error messages may be displayed in the system console and in the /var directory during the umount operation. If the umount operation does not complete, you may have to reboot the system.
For each file system from Step 3 returned, type:
# umount filesystem
where filesystem is the first field for each line returned in Step 3.
# umount /export/home # umount /export/home2
Using the df command, verify that the file system has been unmounted.