HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)

v
vxfsconvert(1M) vxfsconvert(1M)
always be greater than or equal to the required free space.
# df -k /dev/vg01/lvol5
/usr (/dev/vg01/lvol5) : 43264 total allocated Kb
30785 free allocated Kb
12479 used allocated Kb
28 % allocation used
# umount /dev/vg01/lvol5
# /sbin/fs/vxfs/vxfsconvert -e /dev/vg01/rlvol5
vxfs vxfsconvert: Total of 1219K bytes required to complete the conversion
To convert the file system, enter:
# /sbin/fs/vxfs/vxfsconvert /dev/vg01/rlvol5
vxfs vxfsconvert: Do you wish to commit to conversion? (ynq) y
vxfs vxfsconvert: CONVERSION WAS SUCCESSFUL
Upon successful conversion, check file system sanity, mount, and reorganize the file system (with
fsadm) as in the following example:
# fsck -F vxfs -y -o full /dev/vg01/rlvol5
super-block indicates that intent logging was disabled
cannot perform log replay
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
fileset 999 directory 3 block 7591 offset 952 has reclen 0 clear block? (ynq)y
pass3 - checking reference counts
pass4 - checking resource maps
fileset 1 au 0 imap incorrect - fix (ynq)y
fileset 1 au 0 iemap incorrect - fix (ynq)y
fileset 999 au 0 imap incorrect - fix (ynq)y
fileset 999 au 0 iemap incorrect - fix (ynq)y
fileset 999 au 0 imap incorrect - fix (ynq)y
fileset 999 au 0 iemap incorrect - fix (ynq)y
corrupted CUT entries, clear? (ynq)y
au 0 emap incorrect - fix? (ynq)y
au 0 summary incorrect - fix? (ynq)y
au 1 state file incorrect - fix? (ynq)y
au 1 emap incorrect - fix? (ynq)y
au 1 summary incorrect - fix? (ynq)y
au 1 state file incorrect - fix? (ynq)y
fileset 1 iau 0 summary incorrect - fix? (ynq)y
fileset 999 iau 0 summary incorrect - fix? (ynq)y
fileset 999 iau 0 summary incorrect - fix? (ynq)y
free block count incorrect 0 expected 35764 fix? (ynq)y
free extent vector incorrect fix? (ynq)y
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
# mount -F vxfs /dev/vg01/lvol5 /usr
# fsadm -ed /mntpt
fsadm: /etc/default/fs is used for determining the file system type
If the conversion fails, due to I/O failure, for example, run fsck to return to the original file system.
fsck -F hfs /dev/vg01/rlvol5
To convert a file system on a volume manager (for example, LVM) volume, using only disk space at the
end of the file system (with the -s option), you may need to increase the volume size to provide the addi-
tional space to do the conversion. If LVM is used, you can do the following:
vxfsconvert -e /dev/vg01/rlvol5
lvextend -L new_size /dev/vg01/rlvol5
vxfsconvert -s required_space /dev/vg01/rlvol5
Section 1M896 Hewlett-Packard Company 4 HP-UX 11i Version 2: August 2003