- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: fs size reporting
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
01-25-2010 01:10 PM
01-25-2010 01:10 PM
fs size reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 01:40 PM
01-25-2010 01:40 PM
Re: fs size reporting
You need to download and install 'lsof':
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/
# lsof +D /path +L1
...will list open, unlinked files in /path.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 01:54 PM
01-25-2010 01:54 PM
Re: fs size reporting
# fuser -u /tmp/filename
or if you have lsof:
# lsof -f -- /tmp/filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 02:00 PM
01-25-2010 02:00 PM
Re: fs size reporting
Classical problem that often happens :)
a) If you do not know the name of the
log file, simply check all open files in /tmp:
# fuser -cu /tmp
Or,
b) If you know the name of the file:
# fuser /tmp/mylogfile
Even more powerful is open-source tool lsof.
It can do excellent job in finding open or
unlinked files.
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2010 02:06 PM
01-25-2010 02:06 PM
Re: fs size reporting
If you delete the contents of a file, while there is still an open file hand on it, the space is not returned and does not show free.
As noted above fuser -cu will display you the process id's. From there you can determine the process that needs to be killed or bounced in orded to get the space back.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com