HomeSolarisSolaris system administrationSolaris: Mount filesystem with UFS Logging Enabled

Solaris: Mount filesystem with UFS Logging Enabled

When UFS logging is enabled, UFS write operations are broken into transactions which are stored to a log before being committed to the filesystem. The use of UFS logging maintains filesystem consistency and prevents the need to run fsck against the filesystem. This can significantly reduce the time required to reboot a system.


UFS logging requires minimal system resources, using about 1 MB per GB of filesystem (although it can grow to no more than 64 MB/GB). UFS logging is disabled by default.

To enable UFS logging, alter the filesystem’s entry in /etc/vfstab to include the ‘logging’ option, such as the following:

/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0s1 / ufs 1 yes logging

This will enable UFS logging on the root filesystem after the next system boot. To mount a filesystem from the command line with logging on, use the following mount command:

mount -F ufs -o logging /dev/dsk/c0t0d0s3 /mnt

To remount a currently mounted filesystem and enable logging, use the remount option as follows:

mount -F ufs -o remount,logging /var

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Recent Comments

Cleveland Furia on How to Clear Google Activity
Sid Wohlfarth on How to Clear Google Activity
Riley Magsayo on How to Clear Google Activity
สมัครรับเครดิตฟรี ทันที on How to improve Remote Desktop Protocol Performance
Neal Wangstad on How to Clear Google Activity
Slavcho Andov on How to install Ubuntu
Slavcho Andov on How to fix bad sectors
Sheraz Ali on How to Backup Android