Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

BDF and DU commands not showing the same Diskspace !!!

 
Highlighted

BDF and DU commands not showing the same Diskspace !!!

Hello all HP-UX users

This is my first thread here :)

I have been running HP-UX for quite some time now.
I just got a HP-UX 11.31 rx2660(IA64) server in production.

Today the server starts to complain that /home/ is running low on disk space.

I did a quick lvextend to get the system running but !!!

When I type BDF
root@host:/home# bdf
/dev/vg00/lvol5 15360000 10313264 5007664 67% /home

And compare it with a du -sk in the folder
root@host:/home# du -sk
2049000 .

There is a missmatch by 8GB. Where did my diskspace go ?

The server was restarted 3 days ago so it should not be any service that keeping the lost space.

Any other got the same issue as me ?
Please let me know if you need any other information.


Best regards
Jan Madsen
5 REPLIES 5
Highlighted
Michal Kapalka (mikap)
Honored Contributor

Re: BDF and DU commands not showing the same Diskspace !!!

Highlighted
Hakki Aydin Ucar
Honored Contributor

Re: BDF and DU commands not showing the same Diskspace !!!

Highlighted
Pete Randall
Outstanding Contributor

Re: BDF and DU commands not showing the same Diskspace !!!

First things first! You say you did an lvextend. Did you also do an extendfs to grow the file system?


Pete

Pete
Highlighted
Michael Steele_2
Honored Contributor

Re: BDF and DU commands not showing the same Diskspace !!!

Hi

I've noticed failures in bdf that get caught by du and df. Here's a link to a vx_badmap error from syslog I ran across.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1252533
Support Fatherhood - Stop Family Law
Highlighted
Vivek Bhatia
Trusted Contributor

Re: BDF and DU commands not showing the same Diskspace !!!

Hi carsten,

1. When you run du -sk command then it will show you the total size of the files present in that directory.

2. Whereas in bdf it gives the information with respect to the filesystem.

Example:
#bdf /opt/test
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol10 573440 293501 262834 53% /opt/test
#du -sk /opt/test
291536 /opt/test

But incase if you have any other mount point under /opt/test then there will be great difference in du and bdf output.

Regards
Vivek