- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bdf and du -ks
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
тАО10-16-2001 01:46 AM
тАО10-16-2001 01:46 AM
bdf and du -ks
i'm running on a class L 1000 server with HPUX-11.00.
i have /home1 associed with /dev/vg01/lvol1 (the only lvol on this vg)( on a 18 Go disk)
when i do a bdf | grep home1 (or df -k | grep home1), i find
"/dev/vg01/lvol1 17776640 15912532 1864108 90% /home1"
if i understand, it's means that there is 16 Go occuped.
But when i do a du -ks /home1, the answer is :
"7272736 /home1" ie /1024 = 7 Go occuped.
why this difference ?
what the probleme ?
thanks for all for your help.
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 01:53 AM
тАО10-16-2001 01:53 AM
Re: bdf and du -ks
du result is not in bytes but in 512-byte blocks.
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 01:56 AM
тАО10-16-2001 01:56 AM
Re: bdf and du -ks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 02:01 AM
тАО10-16-2001 02:01 AM
Re: bdf and du -ks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 02:05 AM
тАО10-16-2001 02:05 AM
Re: bdf and du -ks
Its possible that someone has deleted file(s) that is still open by a process. Even though the file appears to be gone, until the process does a close() on the file(s), it is not released from the filesystem. Hence bdf will report the filesystem with the file(s) still there whereas du will report the the filesystem without the file (since du adds up all the files in the filesystem).
Hope this helps.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 02:26 AM
тАО10-16-2001 02:26 AM
Re: bdf and du -ks
Well, du -k gives the block count (total, occupied, free) in 1024-byte blocks. On the other hand, bdf gives you the number of free blocks. So, it depends on the size of the blocks on that partition, imho.
Try df -g
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 03:02 AM
тАО10-16-2001 03:02 AM
Re: bdf and du -ks
bdf has a more negative perspective and it shows the free disk space available.
The difference is here: if a still active process allocated blocks eg for a logfile that you've just deleted "bdf" counts these as still occupied. This wont change until the process closes the file ("deallocates the blocks") as it usually happens when the process terminates.
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 03:23 AM
тАО10-16-2001 03:23 AM
Re: bdf and du -ks
with a fuser -cu /home1, i see that there is 17 process which are "working". but with ps -ef i see there is 7
#df -g /home1
/home1 (/dev/vg01/lvol1 ) :
8192 file system block size 4096 fragment size
4444160 total blocks 466025 total free blocks
466025 allocated free blocks 951552 total i-nodes
519798 total free i-nodes 519798 allocated free i-nodes
1073807361 file system id vxfs file system type
0x10 flags 255 file system name length
/home1 file system specific string
I think i reboot the system and see if the defunct process are again here or not, and if there is a difference.
thanks for all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2001 03:42 AM
тАО10-16-2001 03:42 AM
Re: bdf and du -ks
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2001 03:34 AM
тАО10-17-2001 03:34 AM