Solaris: Mount filesystem with UFS logging enabled

Home -> UNIX -> Solaris -> System administration

28446 views

From the computer of: qmchenry (338 recipes)
Created: Dec 21, 2004


0 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

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:

/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 mount command:

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


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

mount -F ufs -o remount,logging /var

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  Boot Solaris from CD-ROM to solve problems
  Solaris: Create a mount point
  ZFS: Set or change the mount point of a filesystem
  Solaris: unmounting a filesystem with umount
  Mount an ISO image on a Solaris filesystem with lofiadm
  How to make Solaris reject remote logging
  Create a local Solaris flash archive
  ZFS: Create a basic filesystem or pool using zpool
  Mount an NFS share
  Solaris 10: Create multi-terabyte UFS filesystem

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.