- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- du -k and bdf show different utilization on mount ...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 07:51 AM
07-06-2004 07:51 AM
du -k and bdf show different utilization on mount point???
What would be causing this difference and which one is correct?
Thanks,
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 08:03 AM
07-06-2004 08:03 AM
Re: du -k and bdf show different utilization on mount point???
The cause is probably because someone removed a file, or several files, that were still in use. The space from those files will not be freed (unlinked) until the process(es) that are using those files either finish what they are doing (either normally or abnormally via 'kill'). This is the number that 'bdf' is reporting.
'du' is just basically adding up the sizes of all visible files in the directory. Since the files has been removed you can't see the filename and file stats., so du can't see it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 08:05 AM
07-06-2004 08:05 AM
Re: du -k and bdf show different utilization on mount point???
bdf|df would be the command to see the utilization on the mount point.
The information given by 'du' cannot be used to determine the utilization as it includes sizes of the mount points inside that mount point also. I am surprized to see why du -sk is reporting lesser than your bdf command in your case.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 09:53 AM
07-06-2004 09:53 AM
Re: du -k and bdf show different utilization on mount point???
So it may report a larger than actual usage until the processes that were using the files end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:47 AM
07-06-2004 11:47 AM
Re: du -k and bdf show different utilization on mount point???
As Patrick has explained this is the most likely cause of the difference between 'du' and 'bdf' output.
To identify which file(s) are causing this descrepancy, you can use 'lsof' command as follows:
# lsof /
This will show open files in the filesystem (sorted by file size) and which processes have them open (1st column).
You'll have to kill the process to free up the file(s) and hence space in the filesystem.
Its liklely that with a 10G difference, you'll be looking at a couple of very large files causing your problem. They should be fairly obvious straight away from lsof output.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 01:51 PM
07-06-2004 01:51 PM
Re: du -k and bdf show different utilization on mount point???
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 01:11 AM
07-07-2004 01:11 AM
Re: du -k and bdf show different utilization on mount point???
Rt.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 01:21 AM
07-07-2004 01:21 AM
Re: du -k and bdf show different utilization on mount point???
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=629399
I believe it matches your problem.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 12:59 AM
07-08-2004 12:59 AM
Re: du -k and bdf show different utilization on mount point???
To detect deleted files held open by a process HP used a tool for me called "uli . A tool to list unlinked (removed) files that are still in use."
And I've been told that lsof might be used as well like
# lsof +aL1 /usr
However, did not have to try that ever since...
BTW we had an oracle process consuming several 100MB in a deleted file "/" - killed the process HP found with "uli" and we were fine again - without reboot that would have had the same result ;-)