- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- why bdf & du display two different results
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-12-2003 06:32 PM
06-12-2003 06:32 PM
why bdf & du display two different results
i found my /opt is 100% full by bdf command, and i could not copy any file to this filesystem, but when i use df -sk, i found the filesystem only 67% full, how can i do
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:38 PM
06-12-2003 06:38 PM
Re: why bdf & du display two different results
best it to unmount and mount /opt again that will help or reboot the system if its not critical and if it so take an outage and then do it.
/opt being full wont anyway bother your normal execution of machine.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:39 PM
06-12-2003 06:39 PM
Re: why bdf & du display two different results
These files could still have some processes open and that is why the report is incorrect.
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:41 PM
06-12-2003 06:41 PM
Re: why bdf & du display two different results
du will show the space as clear.
Since /opt is not such a critical filesystem, you can clear this without a boot.
fuser -cu /opt
to identify the processes.
fuser -cuk /opt to just go ahead and kill all open processes on /opt
After running the second command, bdf and du -sk should show similar results.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:43 PM
06-12-2003 06:43 PM
Re: why bdf & du display two different results
When a process writes to a file if you have removed that file forcefully before that file closed by that process, you see the difference between bdf and du -sk.
The information is updated immediately to the du -sk but not to bdf.
If you restart your server the bdf output will be updated properly.
Check by using lsof whether any process writes to the /opt FS and you can kill that process. By doing this also ur bdf may get updated.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 06:45 PM
06-12-2003 06:45 PM
Re: why bdf & du display two different results
Have a look at this thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x408f44f56197d711abdc0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 08:05 PM
06-12-2003 08:05 PM
Re: why bdf & du display two different results
bdf shows the free disk space available.
The difference is because bdf cannot see the blocks "occupied" by a still active process.
bdf will see the change until the process terminates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 08:23 PM
06-12-2003 08:23 PM
Re: why bdf & du display two different results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 11:12 PM
06-12-2003 11:12 PM
Re: why bdf & du display two different results
The bdf and du work on diffrent system calls
So if one proccess write to that file system
with du you would see the size that it take
and with bdf you will see.
Also see in man about the block size that
the command show the size.
Caesar