- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Confused about "bdf" command?
Operating System - HP-UX
1753618
Members
5842
Online
108797
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО08-14-2000 11:06 PM
тАО08-14-2000 11:06 PM
Dear all expertise,
I have confused about out put of "bdf" command, please see below
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3145728 2370414 726944 77% /
If calculate by manual
%used = 3145728/2370414 * 100
= 75.35
~ 76%
Why "bdf" command say 77% ??? but exactly ~76%
Thanks advance for you replies
Worapoj P.
I have confused about out put of "bdf" command, please see below
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3145728 2370414 726944 77% /
If calculate by manual
%used = 3145728/2370414 * 100
= 75.35
~ 76%
Why "bdf" command say 77% ??? but exactly ~76%
Thanks advance for you replies
Worapoj P.
For LOVE For Honor For Mankind
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 11:06 PM
тАО08-14-2000 11:06 PM
Re: Confused about "bdf" command?
sorry I missed some one. This is correct message.
Dear all expertise,
I have confused about out put of "bdf" command, please see below
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3145728 2370414 726944 77% /
If calculate by manual
%used = 2370414/3145728 * 100
= 75.35
~ 76%
Why "bdf" command say 77% ??? but exactly ~76%
Thanks advance for you replies
Worapoj P.
Dear all expertise,
I have confused about out put of "bdf" command, please see below
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 3145728 2370414 726944 77% /
If calculate by manual
%used = 2370414/3145728 * 100
= 75.35
~ 76%
Why "bdf" command say 77% ??? but exactly ~76%
Thanks advance for you replies
Worapoj P.
For LOVE For Honor For Mankind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2000 11:38 PM
тАО08-14-2000 11:38 PM
Solution
Hi,
The reason is that the 'kbytes' column display, isn't actually what it uses to calculate the percentage from.
If you add together 'avail' and 'used' you will see that it doesn't equal 'kbytes'. This is the overhead of the filesystem structures etc. So, bdf removes that from the calculation.
So, it becomes :-
used / (kbytes - ( free - avail )) * 100 + 0.5
'free' isn't displayed either.
But, it also works with :-
used / ( used + avail ) * 100 + 0.5
or if you want to be really complicated :-
used / ( kbytes + ( kbytes - used - avail ) ) * 100 + 0.5
However, 'free' can be viewed (assuming a vxfs filesystem), using the 'fstyp -v /dev/vgXX/lvolYY' command.
Andy
The reason is that the 'kbytes' column display, isn't actually what it uses to calculate the percentage from.
If you add together 'avail' and 'used' you will see that it doesn't equal 'kbytes'. This is the overhead of the filesystem structures etc. So, bdf removes that from the calculation.
So, it becomes :-
used / (kbytes - ( free - avail )) * 100 + 0.5
'free' isn't displayed either.
But, it also works with :-
used / ( used + avail ) * 100 + 0.5
or if you want to be really complicated :-
used / ( kbytes + ( kbytes - used - avail ) ) * 100 + 0.5
However, 'free' can be viewed (assuming a vxfs filesystem), using the 'fstyp -v /dev/vgXX/lvolYY' command.
Andy
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP