1838195 Members
3721 Online
110125 Solutions
New Discussion

Space usage

 
BJ Hu
Occasional Advisor

Space usage

All,

I have a HP-UX 10.20. The /home is getting full. Here is the result of bdf:

/dev/vg00/lvol4 99669 82766 6936 92% /home

It shows that I have 100 MB on lvol4. But when I am in /home and type du -sk, here is what I have:
# cd /home
# du -sk
4550 .

My question is: is there anyway for me the check what else is attached lvol4? I have tried to use sam, but did not find anything. Or could be some directories that I did not see?

Any help is appreciated.
3 REPLIES 3
Geoff Wild
Honored Contributor

Re: Space usage

You could have a process that was writing to a log file that was in /home somewhere - and someone rm'ed that file.

The space won't be reclaimed until after that process dies and/or you umount /home and mount it up again.


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sandman!
Honored Contributor

Re: Space usage

Hi,

The discrepancy between the output of bdf and df is usually caused by a process that is writing to a file which has been deleted. But since the process has it open it doesn't unlink it causing the reported anomaly. If you have lsof then you can check this fact by issuing the following command:

# lsof +aL1 /home

cheers!
BJ Hu
Occasional Advisor

Re: Space usage

Thanks for your help. lsof +aL1 /home
helped me to locate the process.