Operating System - HP-UX
1830898 Members
3364 Online
110017 Solutions
New Discussion

Re: discrepency between bdf and df -x

 
Jürgen Heim
Frequent Advisor

discrepency between bdf and df -x

Hi!

How can I find the process that still blocks space in the filesystem? If I do a bdf I get following output:
/dev/vg00/lvol3 512000 497320 14680 97% /
and if I use the df -x command it reports:
root@hpus0301:(/)#du -xks
101408 .
I.e. according to bdf in the root fs 497MB is used, according to du only 101MB!

Thanks!
4 REPLIES 4
Kent Ostby
Honored Contributor

Re: discrepency between bdf and df -x

df reports the total size minus the 'minfree %'

bdf reports the total size

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ninad_1
Honored Contributor

Re: discrepency between bdf and df -x

Use lsof to list open files and understand which process is causing the / to be full and kill the process.

Regards,
Ninad
Robert-Jan Goossens
Honored Contributor

Re: discrepency between bdf and df -x

Hi Jürgen,

Try using lsof or fuser on /dev/vg00/lvol3.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/

Regards,
Robert-Jan
Sandman!
Honored Contributor

Re: discrepency between bdf and df -x

The discrepancy between bdf and du is usually caused by processes holding open files that have been deleted. Use lsof to find out which those files are:

# lsof +aL1 /