file system size not matching used size df.

book

Article ID: 100021211

calendar_today

Updated On:

Resolution

File system size not matching used size df.

Solaris ufs uses reserve space which defaults at 10 percent for file system overhead such as inodes. The Solaris df doesn't recognize vxfs extents properly. Veritas vxfs doesn't use reserve space but puts the extents in the file system itself. In this example testvol is empty but
the extents occupy 7 percent.

# vxassist -g testdg make testvol 2g

# mkfs -F vxfs /dev/vx/rdsk/testdg/testvol
version 7 layout
4194304 sectors, 2097152 blocks of size 1024, log size 16384 blocks
largefiles supported

# which fstyp
/opt/VRTS/bin/fstyp

# fstyp -v /dev/vx/dsk/testdg/testvol
vxfs
magic a501fcf5 version 7 ctime Wed 27 May 2009 02:16:17 PM PDT
logstart 0 logend 0
bsize 1024 size 2097152 dsize 0 ninode 2097152 nau 0
defiextsize 0 ilbsize 0 immedlen 96 ndaddr 10
aufirst 0 emap 0 imap 0 iextop 0 istart 0
bstart 0 femap 0 fimap 0 fiextop 0 fistart 0 fbstart 0
nindir 2048 aulen 32768 auimlen 0 auemlen 8
auilen 0 aupad 0 aublocks 32768 maxtier 15
inopb 4 inopau 0 ndiripau 0 iaddrlen 8 bshift 10
inoshift 2 bmask fffffc00 boffmask 3ff checksum ef293598
oltext1 32 oltext2 18178 oltsize 1 checksum2 0
free 2079146 ifree 0
efree 0 1 2 2 1 2 1 2 2 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0

# mount -F vxfs /dev/vx/dsk/testdg/testvol /testvol

# /usr/sbin/df -k | grep testvol
/dev/vx/dsk/testdg/testvol 2097152 18006 1949207 1% /testvol

# which df
/opt/VRTS/bin/df

# /opt/VRTS/bin/df -k | grep testvol
/dev/vx/dsk/testdg/testvol 2097152 147945 1949207 7% /testvol

If the Solaris df doesn't add it properly it's not be a true bug because it wasn't designed to measure vxfs in the first place.

 

 

Issue/Introduction

file system size not matching used size df.