# umount /home1 # metainit d63 -t c0t2d0s2 c2t2d0s1 d63: Trans is setup (Edit the /etc/vfstab file so that the file system references the transactional volume) # mount /home1 |
The slice /dev/dsk/c0t2d0s2 contains a file system mounted on /home1. The slice that will contain the log device is /dev/dsk/c2t2d0s1. First, the file system is unmounted. The metainit command with the -t option creates the transactional volume, d63.
Next, the /etc/vfstab file must be edited to change the entry for the file system to reference the transactional volume. 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, the fsck command displays a log message for the transactional volume:
# reboot ... /dev/md/rdsk/d63: is logging |