- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rm on a file that was open: FS remaining at 100% f...
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
12-16-2003 09:37 PM
12-16-2003 09:37 PM
rm on a file that was open: FS remaining at 100% full
Now, despite the file is gone, the FS remains at 100% whereas du -ks /FS displays it's barely used.
I heard about /var/PSS/tools/uli to fix this but can't find the correct syntax to do so.
Thanks in advance for your help.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 09:41 PM
12-16-2003 09:41 PM
Re: rm on a file that was open: FS remaining at 100% full
In future, it might be worth doing "> logfile" instead of just removing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 09:41 PM
12-16-2003 09:41 PM
Re: rm on a file that was open: FS remaining at 100% full
Track down the process with a tool like lsof or fuser. Kill the process ore restart the application.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 09:41 PM
12-16-2003 09:41 PM
Re: rm on a file that was open: FS remaining at 100% full
Kill the process that is holding the file.
Search for and install lsof (list open files).
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 09:49 PM
12-16-2003 09:49 PM
Re: rm on a file that was open: FS remaining at 100% full
I can't stop the Oracle instance that was filling this log file, i need to have the filesystem space to be returned to free pool online.
Once again, uli is documented to be used to do such a thing and I used to use it once in the past for the same thing (somebody erase an opened file the same way).
Unfortunatley I can't remember how.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 09:59 PM
12-16-2003 09:59 PM
Re: rm on a file that was open: FS remaining at 100% full
I've never used uli, but you'll often find that unix utilities come with a manual page. Have you tried man uli?
Have you checked whether or not the file still exists with find? As suggested already, > filename will delete the contents without deleting the file. It is safe for you to do this while the file is open - I know, because I've done it plenty of times in similar circumstances.
Sorry I can't be any help wrt uli - I hope someone else manages to help with this.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 10:04 PM
12-16-2003 10:04 PM
Re: rm on a file that was open: FS remaining at 100% full
Thanks anyway all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2003 10:17 PM
12-16-2003 10:17 PM
Re: rm on a file that was open: FS remaining at 100% full
The unlink() system call removes the directory entry named by the path name pointed to by path.
When all links to a file have been removed and no process has the file open, the space occupied by the file is freed and the file ceases to exist. If one or more processes have the file open when the last link is removed, only the directory entry is removed immediately so that processes that do not already have the file open cannot access the file. After all processes close their references to the file, if there are no more links to the file, the space occupied by the file is then freed and the file ceases to exist.
Paula