1827516 Members
2629 Online
109965 Solutions
New Discussion

disk usage problem

 
SOLVED
Go to solution
Tuan Nguyen
Regular Advisor

disk usage problem

Hi,

I am having conficting disk space information

bdf result shows:
/dev/vgfc10/lvol25 10485760 10394520 91240 99% /source

du -sk /source shows
6349616 source

Can anyone please tell me what the problem would be? Please help. I am running out of space and yet du only shows that I am using 6.4GB out of 10GB.

Thank you,
Tuan
7 REPLIES 7
Ivan Krastev
Honored Contributor
Solution

Re: disk usage problem

Victor BERRIDGE
Honored Contributor

Re: disk usage problem

Greetings,

looks like someone removed a file (or directory) while it was beeing accessed...

Try to umount and mount it again...


All the best
Victor
Shrikant Lavhate
Esteemed Contributor

Re: disk usage problem

Hi,
Since du reads the directory structure, if the account that does the du cannot read a directory, it counts as 0 bytes. Thats why it may be showing less used space in du output.
Will it remain a personal, if I broadcast it here!
Tuan Nguyen
Regular Advisor

Re: disk usage problem

Ivan, Victor, Shrikant,

Thank you very much for your prompt responses. I am trying to unmount /source but could not due to "device busy". I ran lsof +D /source +L1 as suggested in thread provided by Ivan, the lsof output has too many open files. I don't know which one I should unlink. I am trying fuser right now and see what happen.

Thanks,

TUan
Robert-Jan Goossens_1
Honored Contributor

Re: disk usage problem

Hi Tuan,

download lsof or the latest fuser command.

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=NEWFUSER11i

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.78/

run lsof/fuser against the filesystem, with a bit of luck you will find the process keeping the diskspace allocated, kill it and the space will return.

Regards,
Robert-Jan
Victor BERRIDGE
Honored Contributor

Re: disk usage problem

Give a last try by doing a fuser -cku /dev/vgfc10/lvol25

If that doesnt work follow Robert-Jan's advice!

All the best
Victor
Tuan Nguyen
Regular Advisor

Re: disk usage problem

Hello again,

The issue is solved. Just like all of you suggested, it was a temporary file that cause the problem. I kill that program. Everything looks good now.

Again, I thank you for kindness and your help. Thank you, Thank you, Thank you.

Tuan