- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deleting files is not recovering disk space
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
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
тАО08-22-2001 02:08 AM
тАО08-22-2001 02:08 AM
I have a worrying problem that I havent' seen before. I am removing and moving very large amounts of disk space from a filesystem which is running very low on space. I have just moved over 4GB of files from this filesystem to another, but on doing a bdf or dfspace command, it is showing NO extra space being available in the filesystem that I just moved the 4GB of files from. Has anyone seen this before, and any advice on what to do?
Thanks
Dermot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 02:32 AM
тАО08-22-2001 02:32 AM
Re: Deleting files is not recovering disk space
Are you sure the files you removed were not hard-linked, and they were *definitely* on the filesystem in question?
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 02:35 AM
тАО08-22-2001 02:35 AM
Re: Deleting files is not recovering disk space
Try to umount and mount the FS again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 02:38 AM
тАО08-22-2001 02:38 AM
SolutionWe had a similar situation where filesystem was being shown 100% full even after we deleted files over 2 GB.
It turned out that some processes which were writing into those files were still alive, so even though the space was freed by rm , it was still not available. Once we killed those processes, the space was freed.
Also it could be that the files you moved were just softlinks to the actual files so even after moving them you have created no extra space. Check if the space on filesystem where you moved the files has increased.
Hope this helps....
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 03:00 AM
тАО08-22-2001 03:00 AM
Re: Deleting files is not recovering disk space
"lsof" can be found here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.55/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 04:29 AM
тАО08-22-2001 04:29 AM
Re: Deleting files is not recovering disk space
Confirming what had been posted till know, try also the command :
#du -k /dir ? more
This will scan all directories expressed in kilobytes. And you can really verify the problem where it comes from.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 05:43 AM
тАО08-22-2001 05:43 AM
Re: Deleting files is not recovering disk space
Probably the files u moved might be opened by some process. Even if u move that file Since it is opened it won't release the space.
So when ever u delete or move a file fine out the file is been used by any process by fuser command. fuser then full path name of the file will give u the process id holding the file.
eg: $fuser /application/qapro/abcd.dat
ucan kill the process using fuser -k and proc id before moving the file.
Hope this may help U.
Regards
Joe.
For more details man fuser.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 05:48 AM
тАО08-22-2001 05:48 AM
Re: Deleting files is not recovering disk space
du on the other hand will not show that space (because the file is already gone as far as the du command is concerned) so it probably won't help identify the culprit.
If du and bdf report nearly the same amount of space used then "deleted while open" files is not the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 06:00 AM
тАО08-22-2001 06:00 AM
Re: Deleting files is not recovering disk space
The problem was to do with the files being accessed at time of move/delete. When I traced and killed the processes that were attached to the files the 4GB "appeared".
Regards,
Dermot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 06:09 AM
тАО08-22-2001 06:09 AM
Re: Deleting files is not recovering disk space
Run lsof and redirect the output > /tmp/lsof.out
Look for entries that have /dev/dsk/vg## in the last column these are processes that can still be writing even though space has been cleared up. In my case it was a glance process. An example of the lsof is
emsagent 1502 root 0w VREG 64,0x2 47387 1884 / (/dev/vg00/l
vol3)
where=emsagent is the process name
1502= is the process number
/ = the filesystem that is being written to
/dev/vg00/lvol3=gives an inidication that the problem could be there.
By killing the process giving me problems I went from 97% full to 65%.
Hope this helps.
nancy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 06:34 AM
тАО08-22-2001 06:34 AM
Re: Deleting files is not recovering disk space
It is good to know the solution to your problem, there is a hint in one of the answers, pls give due points.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2001 09:22 PM
тАО08-22-2001 09:22 PM