Solstice DiskSuite 4.2.1 User's Guide

How to Share a Logging Device Among File Systems (Command Line)

This procedure assumes you have already set up a trans metadevice with a log for another file system.

After checking the prerequisites ("Prerequisites for Changing DiskSuite Objects"), and the preliminary information ("Preliminary Information for Sharing a Logging Device"), use the metainit(1M) to share a log. Refer to the metainit(1M) man page for more information.

Example -- Sharing a Logging Device


# umount /xyzfs
# metainit d64 -t c0t2d0s4 d10
d64: Trans is setup
(Edit the /etc/vfstab file so that the entry for /xyzfs references the trans metadevice d64)
# mount /xyzfs
# metastat
...
d10: Logging device for d63 d64
...

This example shares a logging device (d10) defined as the log for a previous trans metadevice, with a new trans metadevice (d64). The file system to be set up as the master device is /xyzfs and is using slice /dev/dsk/c0t2d0s4. metainit -t specifies the configuration is a trans metadevice. The /etc/vfstab file must be edited to change (or enter for the first time) the entry for the file system to reference the trans metadevice. For example, the following line:


/dev/dsk/c0t2d0s4 /dev/rdsk/c0t2d0s4 /xyzfs ufs 2 yes -

should be changed to:


/dev/md/dsk/d64 /dev/md/rdsk/d64 /xyzfs ufs 2 yes -

The metastat command verifies that the log is being shared. Logging becomes effective for the file system when the system is rebooted.

Upon subsequent reboots, instead of checking the file system, fsck(1M) displays these messages for the two file systems:


/dev/md/rdsk/d63: is logging.
/dev/md/rdsk/d64: is logging.