- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Difference between du and bdf - bad process eats d...
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
05-02-2007 09:07 PM
05-02-2007 09:07 PM
bdf shows 9GB is used out of 10GB on /var
but du -sk /var shows 4GB is used.
How can I find the bad process and the way it is eating the disk space in general?
(I've found that it should be bad process because
when I shut down oracle processes the space was released. Filesystem /var is used
only for log of oracle processes (no datafiles and no database logs))
Regards
Karel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2007 09:38 PM
05-02-2007 09:38 PM
Re: Difference between du and bdf - bad process eats disk space
When a file is removed while a process still has it open, the space used by the file will not be released until the process releases it. That's why restarting the database usually helps.
In short: removing files while they are held by processes is tricky ;-)
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2007 10:09 PM
05-02-2007 10:09 PM
Re: Difference between du and bdf - bad process eats disk space
You can use lsof to identify the processes which have open files on a particular filesystem. I normally use "lsof +d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2007 10:15 PM
05-02-2007 10:15 PM
SolutionCheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2007 10:42 PM
05-02-2007 10:42 PM
Re: Difference between du and bdf - bad process eats disk space
the thing with removing open files is known to me and I didn't remember that I done something similar.
I've snapped the output of lsof.
Unfortunately I didn't snapped ps -ef.
There is following suspected line ...
oracle 29364 oracle 11u REG 64,0x8 6397549837 113293 /var (/dev/vg00/lvol8)
Column SIZE shows 6.3GB
Does that mean that there was unnamed unlinked file of size 6.3GB?
I've looked at the man page of lsof..
lsof +aL1 /var ... it is the right command
Regards
Karel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2007 12:08 AM
05-03-2007 12:08 AM
Re: Difference between du and bdf - bad process eats disk space
" Since the size of the kernel name cache is limited and the
cache is in constant flux, it does not always contain the
names of all components in an open file's path; sometimes
it contains none of them.
Lsof reports the file system directory name and whatever
components of the file's path it finds in the cache, starting
with the last component and working backwards through the
directories that contain it. If lsof finds no path
components, lsof reports the file system device name instead."
( section 3.1 from http://www.reznor.com/tools/lsof/FAQ )
..I guess that's why you're just getting the device name :-/
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2007 12:24 AM
05-03-2007 12:24 AM
Re: Difference between du and bdf - bad process eats disk space
Now I've possibility to find unlinked files on a filesystem with lsof +aL1 and to identify the process.
Thank you for all answers.
Regards
Karel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2007 12:24 AM
05-03-2007 12:24 AM
Re: Difference between du and bdf - bad process eats disk space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2007 12:48 AM
05-03-2007 12:48 AM
Re: Difference between du and bdf - bad process eats disk space
Thanks for also checking out http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward points to useful answers.
Welcome to the forums !
Cheers,
Wout