12 replies
Hi,
You probably deleted a link to a file rather than the file itself. Now that the link is gone, you probably wont know where the file was... Search the disk for the file again.
Cheers,
Tim.
by ajerinsky
by cpfeiffe
by ajerinsky
by shanghai sam
by bgjkl
If the file belongs to a database, shutting down and restarting the database will usually free the space.
Sometimes also, a process will have a hold on the filespace and not release it. I saw another partial answer above, but to elaborate:
1)Shutdown any application that is using the filesystem that contains the deleted file
2) unmount (umount or unmount depending on UNIX flavor) then remount the filesystem....the space should be released. (make sure that you 'cd' out of the filesystem mount point before trying to unmount, or the unmount will not work).
3) If filesystem will not umount, issue
fuser -k -u /filesystem/name
(this will kill any process holding the fs. This is generic UNIX and should work for all flavors..).
4) Remount the filesystem and space should be back..
5) On rare occasions, the space may not come back, because a 'shadow' process is holding the file. A shadow process is not running, but is still residing in memory somewhere. In this case the best thing to do is to re-boot the box to clear.
by ajerinsky
by bgjkl
If the file belongs to a database, shutting down and restarting the database will usually free the space.
Sometimes also, a process will have a hold on the filespace and not release it. I saw another partial answer above, but to elaborate:
1)Shutdown any application that is using the filesystem that contains the deleted file
2) unmount (umount or unmount depending on UNIX flavor) then remount the filesystem....the space should be released. (make sure that you 'cd' out of the filesystem mount point before trying to unmount, or the unmount will not work).
3) If filesystem will not umount, issue
fuser -k -u /filesystem/name
(this will kill any process holding the fs. This is generic UNIX and should work for all flavors..).
4) Remount the filesystem and space should be back..
5) On rare occasions, the space may not come back, because a 'shadow' process is holding the file. A shadow process is not running, but is still residing in memory somewhere. In this case the best thing to do is to re-boot the box to clear.
by ajerinsky
by bgjkl
If the file belongs to a database, shutting down and restarting the database will usually free the space.
Sometimes also, a process will have a hold on the filespace and not release it. I saw another partial answer above, but to elaborate:
1)Shutdown any application that is using the filesystem that contains the deleted file
2) unmount (umount or unmount depending on UNIX flavor) then remount the filesystem....the space should be released. (make sure that you 'cd' out of the filesystem mount point before trying to unmount, or the unmount will not work).
3) If filesystem will not umount, issue
fuser -k -u /filesystem/name
(this will kill any process holding the fs. This is generic UNIX and should work for all flavors..).
4) Remount the filesystem and space should be back..
5) On rare occasions, the space may not come back, because a 'shadow' process is holding the file. A shadow process is not running, but is still residing in memory somewhere. In this case the best thing to do is to re-boot the box to clear.
by ajerinsky
by ajerinsky
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending