- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File system usage
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
10-22-2007 04:52 AM
10-22-2007 04:52 AM
In one of the hpux server, filesystem is increasing frequently
In bdf output it showing 178768kb used
If I use du â sk , its showing 8637, can any one tell me why the difference & how to fix the issue , in vgdisplay output I am to see 1PE=16mb
Here I attach the bdf output
root /usr/local/mqm > du -sk * | sort -rn
7235 log
845 bin
419 c
89 dat
44 bkup
3 stage
1 diff
0 lost+found
root /usr/local/mqm > bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol9 262144 178768 78289 70% /usr/local/mqm
root /usr/local/mqm > du -sk
8637 .
Please help me how to fix this
Thanks in advance
Regards
Thomas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:00 AM
10-22-2007 05:00 AM
SolutionThis is probably a case of a process that has created a temporary file; immediately unlinked (removed) it; and it continuing to write to it.
This is a common technique. The disk space allocated to the file will not be released back to the system until the link count of the file is decremented to zero and the last process associated with the file terminates.
You can use 'lsof' [available from the HP-UX Porting Center] to find the process(es) in question.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:03 AM
10-22-2007 05:03 AM
Re: File system usage
The most common difference is temporary files. Consider a process that open()'s a file, e.g. mytempfile and then immediately unlink()'s it without doing a close(). The directory entry for mytempfile has been removed but the space used is not returned to the filesystem until the file is close()'ed or until all processes which had the file open terminate. This is a very standard idiom for temporary files in UNIX and because the file is not visible to du but the space used is visible to bdf, the two utilities report very different values. Another difference is sparse files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:04 AM
10-22-2007 05:04 AM
Re: File system usage
~cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 06:13 AM
10-22-2007 06:13 AM
Re: File system usage
Thanks for your quick response,please tell me how find open files using lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 06:36 AM
10-22-2007 06:36 AM
Re: File system usage
Manpages accompany 'lsof' and/or are available on the web (use Google to search).
# lsof +D /path +L1
...will list open, unlinked files in /path.
Regards!
...JRF...