- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: bdf shows more space utilization
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
тАО07-13-2010 12:44 AM
тАО07-13-2010 12:44 AM
bdf shows more space utilization
Below is the output from bdf . Approx 1.7gb used.
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvora2 2457600 1802980 613793 75% /home/oracle
====================
Below is the actual space used with du command. approx 226mb.
/home/oracle#du -sk
226197 .
What may be reason for same & how to correct this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 12:57 AM
тАО07-13-2010 12:57 AM
Re: bdf shows more space utilization
Until the process owning the fd to that file close the file, it will still be there, and can still grow.
for instance do a
# yes > /tmp/test &
# rm /tmp/test
bdf will show you the space in the fs growing
when du will give always the same value.
kill yes process and you will recover the space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 12:58 AM
тАО07-13-2010 12:58 AM
Re: bdf shows more space utilization
https://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1318877
The easiest way to recover this disk space is to stop the process(es) that have these files open.
rgs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 05:08 PM
тАО07-13-2010 05:08 PM
Re: bdf shows more space utilization
See man fuser
fuser -cu /home/oracle
That should give you a starting point as to what processes could be involved and help you decide which may need to be stopped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 07:25 PM
тАО07-13-2010 07:25 PM
Re: bdf shows more space utilization
bdf provides the output of the mount points in %, On the other hand, du -sk shows the size of any directory in kilobytes.
There is a difference in how du and bdf behave.This may occur if we touch open files.
"du": It shows the number of currently allocated blocks and counts the blocks you've just deleted as free.
"bdf": It shows the free disk space available.
The difference is here: if a still-active process has allocated blocks (such as
a logfile that you've just deleted), "bdf" counts these as still occupied.
This won't change until the process using the open file are closed ("deallocates the blocks")
The free space will not be returned until the process holding the open file terminates (or atleast close the file).
Solution
1> First Check the Processes by
# fuser -cu /home/oracle
kill the unwanted process.
Or
2> To kill the process running on the /home/oracle
# fuser -cku /home/oracle
Or
3> restart the application using the /home/oracle
To see files and processes in this state use lsof as follows:
lsof +L1 | grep REG
if you don't have lsof, you can download it from:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.83/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2010 10:36 PM
тАО07-13-2010 10:36 PM
Re: bdf shows more space utilization
As our mates suggested, This happens becuase of unlinked files.
DU goes by directory structure and bdf goes by block level.
If you are not able to find unlinked files, other chance is
there are some data exist in directories which is used for mounting filesystems.
Is there any filesystem mounted over /home/oracle/xxxx??????
Regards,
Sooraj