- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- bdf or du ? which is wrong?
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
тАО05-18-2005 08:19 PM
тАО05-18-2005 08:19 PM
In my HP-UX 11.23 bdf command gives me the following
# pwd
/usr/sap/NW1
# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vgNW1/lvusrsapNW1
1245184 1223161 20930 98% /usr/sap/NW1
but du gives other result:
# du -sk *
231329 DVEBMGS72
0 SYS
0 lost+found
#
Where is the rest 1Gb?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 08:27 PM
тАО05-18-2005 08:27 PM
Solutionbdf command "looks" on the filesystem and don't care much about inodes and du command goes over inodes in the filesystem and sums the sizes. When process hold file descriptor to space on disk and you remove the inode with "rm" command, the space is not released untill the process that holds the space is dead. The fact that bdf "looks" on the fs itself and du goes over the inodes, explains the difference.
You should check wich programs use this filesystem (lsof and fuser will give you the info) and try to figure out wich program "holds" the space and stop it and then you'll see the same values.
Anyway, it's not adviced to remove large files with rm, because rm removes only the inode so the space if it's in use, will remain. Before using rm on the inode, consider "cat /dev/null > /some/file" and only then use rm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 08:35 PM
тАО05-18-2005 08:35 PM
Re: bdf or du ? which is wrong?
This is caused because of processes which are still using the "deleted" files.
fuser -u /usr/sap/NW1
should give you some info.
or else use lsof to see open files.
Best wishes,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 08:42 PM
тАО05-18-2005 08:42 PM
Re: bdf or du ? which is wrong?
but how to use lsof?
I get
# lsof /usr/sap/NW1
sh: lsof: not found.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2005 08:46 PM
тАО05-18-2005 08:46 PM
Re: bdf or du ? which is wrong?
lsof might not be installed, get it from here.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/
Regards,
Naveej