# umount /home1 # metainit d63 -t c0t2d0s2 c2t2d0s1 d63: Trans is setup (Edit the /etc/vfstab file so that the file system references the trans metadevice # umount /home1 |
Slice /dev/dsk/c0t2d0s2 contains a file system mounted on /home1. The slice to contain the logging device is /dev/dsk/c2t2d0s1. First, the file system is unmounted. The metainit command with the -t option creates the trans metadevice, d63.
Next, the /etc/vfstab file must be edited to change the entry for the file system to reference the trans metadevice. For example, the following line:
/dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0s2 /home1 ufs 2 yes - |
should be changed to:
/dev/md/dsk/d63 /dev/md/rdsk/d63 /home1 ufs 2 yes - |
Logging becomes effective for the file system when it is remounted.
On subsequent reboots, instead of checking the file system, fsck(1M) displays a logging message for the trans metadevice:
# reboot ... /dev/md/rdsk/d63: is logging |