The following example shows the process of converting a transactional volume to UFS logging.
# metastat
d50: Trans
State: Okay
Size: 204687 blocks
Master Device: c1t14d0s0
Logging Device: c1t12d0s0
Master Device Start Block Dbase Reloc
c1t14d0s0 0 No Yes
c1t12d0s0: Logging device for d50
State: Okay
Size: 30269 blocks
Logging Device Start Block Dbase Reloc
c1t12d0s0 5641 No Yes
Make note of the 'master' and 'log' devices as you will need this
information in subsequent steps.
Determine if the transactional volume contains a mounted file system.
# df | grep d50
/home1 (/dev/md/dsk/d50 ): 161710 blocks 53701 files
Verify sufficient free space (more than 1 MByte)
# df -k /home1
filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d50 95510 14655 71304 18% /home1
Go to single-user mode.
# /usr/sbin/lockfs -f /home1
# /usr/sbin/umount /home1
# /usr/sbin/metaclear d50
d50: Trans is cleared
Update /etc/vfstab file to mount underlying volume and add logging option.
# cat /etc/vfstab
#device device mount FS fsck mount
mount
#to mount to fsck point type pass at boot
options
/dev/dsk/c1t14d0s0 /dev/rdsk/c1t14d0s0 /home1 ufs 2 yes
logging
# mount /home1
# /usr/bin/grep /home1 /etc/mnttab
/dev/dsk/c1t14d0s0 /home1 ufs
rw,intr,largefiles,logging,xattr,onerror=panic,suid,dev=740380
1008019906
Return to multi-user mode.
|