- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr file system issue
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
тАО01-13-2009 09:22 PM
тАО01-13-2009 09:22 PM
In one of our HP-UX 11.11 server, the /usr file system is at 97%. We found one file of size 550MB and we deleted that file. But even after deleting the file, the file system didn't get reduced. Still it is at 97%. Please let me know is there a way to find why the file system didn't get reduced.
Thanks in Advance.
Thiru
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 09:58 PM
тАО01-13-2009 09:58 PM
Re: /usr file system issue
could you compare the output of
# bdf
# du -sk /usr
Compare the avail section in bdf and the above output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:06 PM
тАО01-13-2009 10:06 PM
Re: /usr file system issue
/usr
/usr/local/fsa
/usr/local/fsb
/usr/local/fsc
/usr/local/fsd
/usr/fse
So the output doesn't help really.
servera / > bdf /usr
duFilesystem kbytes used avail %used Mounted on
/dev/vg00/lvol1 2138112 2040726 91331 96% /usr
servera / > du -ks /usr
9543016 /usr
Any help will be appreciated.
Thanks
Thiru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:18 PM
тАО01-13-2009 10:18 PM
Re: /usr file system issue
Under certain circumstances, files that actually exist in a file system, might not be visible. There are two reasons for that, which are also the reason why du(1) wouldn't count their sizes when calculating the disk usage:
Files that have already been deleted, but are still opened by running processes
You can find such files with
crashinfo -unlinked
It will print their inodes and sizes, and also the processes that still have this file open, e.g.
PID PPID COMMAND INODE DEVICE SIZE(bytes)
3844 1 swagentd 6725 /dev/vg00/lvol6 133
These files will still occupy space in the file system, but they will not be visible in the directory listings because their directory entries have already been deleted. The files themselves will only be deleted after all processes that have the file open either close the file, or terminate.
If that doesn't happen on its own, you might need to kill the appropriate processes, to free the disk space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:24 PM
тАО01-13-2009 10:24 PM
Re: /usr file system issue
1473748 /usr
but i am not able to find crashinfo in my server. Please let me know from where can i get crashinfo.
Thanks,
Thiru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:27 PM
тАО01-13-2009 10:27 PM
Re: /usr file system issue
They will provide you the script on request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:31 PM
тАО01-13-2009 10:31 PM
Re: /usr file system issue
Do you remember the filename?
You may need to run lsof to see who has it open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:36 PM
тАО01-13-2009 10:36 PM
Re: /usr file system issue
duFilesystem kbytes used avail %used Mounted on
/dev/vg00/lvol1 2138112 2040726 91331 96% /usr
Used: 1993 MB
du -xk /usr
1473748 /usr
Actual Used: 1439 MB
So the difference is around 500MB.
## You could find the unlinked file via
# crashinfo -unlinked
You could obtain the script from HP Solution Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2009 10:46 PM
тАО01-13-2009 10:46 PM
Re: /usr file system issue
Keeps you people posted.
Thanks again,
Thiru