- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bdf and df -k give different results for total ava...
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
Forums
Discussions
Discussions
Discussions
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
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
06-26-2002 11:36 AM
06-26-2002 11:36 AM
Here is an example:
bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 147456 49873 91722 35% /
df -k /
/ (/dev/vg00/lvol3 ) : 141595 total allocated Kb
91722 free allocated Kb
49873 used allocated Kb
35 % allocation used
91722+49873=141595 How come bdf reports 147456?
Thanks
Marty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 11:46 AM
06-26-2002 11:46 AM
Re: bdf and df -k give different results for total available
du shows the number of currently allocated blocks and counts the blocks you've just deleted as free.
bdf shows the free disk space available.
The difference is that if a active process has 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.
du adds up all the files and then shows the results. Hence the size shown bu du will be less.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 11:49 AM
06-26-2002 11:49 AM
Re: bdf and df -k give different results for total available
I am using the "df" command, not "du".
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 11:57 AM
06-26-2002 11:57 AM
Re: bdf and df -k give different results for total available
Sorry !!!
df reports the total size minus the 'minfree %'
bdf reports the total size
bdf_total * (100 - minfree %) = df_total
df -t - gives the % minfree
HTH
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 12:02 PM
06-26-2002 12:02 PM
Re: bdf and df -k give different results for total available
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 12:09 PM
06-26-2002 12:09 PM
Solutionyes you are right.....
There have been lot of questions regarding this in the forums.
Pls go thro this link...it may explain you in much details....
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x81ac72234586d5118ff00090279cd0f9,00.html
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 12:14 PM
06-26-2002 12:14 PM
Re: bdf and df -k give different results for total available
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 12:21 PM
06-26-2002 12:21 PM
Re: bdf and df -k give different results for total available
True !!!
Lots of hidden fundas in HPUX.
Piyush