1827294 Members
2302 Online
109717 Solutions
New Discussion

df -h showing wrong o/p

 
SOLVED
Go to solution
sagi_1
Advisor

df -h showing wrong o/p

hi,

a mount point of 99 GB shows only 95 GB free when only 210 MB is utilized.

/dev/mapper/rootvg-opt
100G 206M 95G 1% /opt


please advice.

regards,
sagar.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: df -h showing wrong o/p

Shalom,

This is either a calculation error or:

You deleted a file and there is still an open file handle on it. fuser -u /file_system

This will let you identify the process. If you kill the process, your calculation may become more accurate.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
J. Maestre
Honored Contributor
Solution

Re: df -h showing wrong o/p

An idea, just in case: ext2/3 file systems reserve (by default) a 5% of the file system space to keep the system running if it fills up, and to prevent fragmentation.

On large or non root file systems you might want to modify that % with tune2fs. This would tell ext2/3 to not reserve anything:

tune2fs -m 0 /dev/mapper/rootvg-opt
sagi_1
Advisor

Re: df -h showing wrong o/p

Hi Steve,

Thanks for the reply. I have tried it and it shows nothing.
please advice.

regards,
sagar.
sagi_1
Advisor

Re: df -h showing wrong o/p

thanks, tune2fs -m 0 has worked. Thanks for the help.