- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disk space not recovered with the rm -i command
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
02-20-2002 04:04 PM
02-20-2002 04:04 PM
Disk space not recovered with the rm -i command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 04:17 PM
02-20-2002 04:17 PM
Re: Disk space not recovered with the rm -i command
hmmm ..normally it should do the same. rm -i will just give you a prompt for confirmation.
Did you check the disk usage through du -k ?
Check for any alias set for rm and rm -i ?
Sometimes 'bdf' will take time to report the correct file system usage. Use du -k and check.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 04:32 PM
02-20-2002 04:32 PM
Re: Disk space not recovered with the rm -i command
I assume that you answered 'y'. I suspect that your real problem is that a process still had these files open and that is why the space is not returned. A file is only deleted when all the processes that have a file open have closed it or terminated. The directory entry is removed but the data remains intact and in use until then. You can check this using fuser (or better yet, lsof - available from any of the HP-UX Porting Centre's). Man fuser for details.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 06:17 PM
02-20-2002 06:17 PM
Re: Disk space not recovered with the rm -i command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 08:52 PM
02-20-2002 08:52 PM
Re: Disk space not recovered with the rm -i command
You could have removed the file, tried to sync the info, and then checked the bdf,
rm -i file_name
sync
bdf
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 09:30 PM
02-20-2002 09:30 PM
Re: Disk space not recovered with the rm -i command
Before deleting files, use "lsof" to determine if they are in use. If they are open, you can "delete" the file, but the space WILL NOT be returned to the filesystem until the user closes the file.
http://hpux.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.55/
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2002 01:21 AM
02-21-2002 01:21 AM
Re: Disk space not recovered with the rm -i command
After executing of "rm" it's very difficult to find the processes they hold the deleted files open.
Ruediger