- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: bdf shows file system full but a du –k shows s...
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
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
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-21-2009 03:38 AM
05-21-2009 03:38 AM
On my HP-UX 11.31 server, the DBA's had a file system that was getting full so they removed a bunch of files. a bdf of the file system shows that it is still almost full but a du –k shows a lot of space available.
I suspect that the DBA removed at least one file that was still being written to. I know in previous versions of HP-UX, the only way to recover this space was to reboot the server. Is that still true for 11.31?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 03:42 AM
05-21-2009 03:42 AM
Re: bdf shows file system full but a du –k shows space available
Use lsof to see any open files are there
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 03:43 AM
05-21-2009 03:43 AM
SolutionCheck for the open files which are occupying the space using lsof.
Find and kill the process, you may get the free space.
eg. lsof +aL1 /Dir
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 03:45 AM
05-21-2009 03:45 AM
Re: bdf shows file system full but a du –k shows space available
Large descrepencies between 'du' and 'bdf' are symptomatic of an inuse file having been removed.
Disk space is not returned to the system until the last process using a file is closed. A common and valuable technique is to open a file; immediately unlink() (remove) it; and continue to use it for the duration of the process. When the process terminates, without further adieu, the used disk blocks are returned to the available pool.
THis is the way UNIX works and applies to any release.
I suggest you get 'lsof' from the Porting Center. This will allow you to see these "hidden" files. That is, once unlinked, you will not be able to see the file in a simple 'ls' listing. The 'lsof' utility will expose this, though as a file with a link count greater than zero.
Terminating the process(es) using the file is sufficient to return the space to the system. A reboot is a drastic way.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 03:46 AM - last edited on 06-30-2022 03:27 AM by Sunitha_Mod
05-21-2009 03:46 AM - last edited on 06-30-2022 03:27 AM by Sunitha_Mod
Re: bdf shows file system full but a du –k shows space available
This wasn't the case even for older versions of HP-UX - where did you get that idea from?
There's no need to reboot the server - all you need to do is figure out which processes had those files open and stop (terminate) those processes.
So "fuser -c /filesystem" might give you a clue, but to really see which processes have "unlinked" files open you need to use lsof:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
and then use:
lsof +aL1 /filesystem
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 03:52 AM
05-21-2009 03:52 AM
Re: bdf shows file system full but a du –k shows space available
And I got the idea that a reboot was needed to fix this problem because that is what is suggested in many other threads right here on the ITRC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2009 04:08 AM
05-21-2009 04:08 AM
Re: bdf shows file system full but a du –k shows space available
Thanks again for all the help.