* Deleted 14 Gb file space not returned to df -k
@ 2002-09-10 0:42 Jeremy Thomson
2002-09-10 3:09 ` David E. Konerding
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Jeremy Thomson @ 2002-09-10 0:42 UTC (permalink / raw)
Hi all,
This is my first posting to comp.unix.tru64 so please excuse me if the
answer to this question is on a FAQ somwhere.
We ran out of disk space & finally identified a runaway zip file that
had no
end of file thus kept on unzipping till the disk space was used up.
I have rm'ed the file but the space freed does not show in the df -k
command.
I betcha a reboot will give our space back but thats not a conveniant
thing to do.
We will suffer along with 512Mb free but that will only keep us going
a day or so.
Any ideas?
Thanx in advance,
Jeremy Thomson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleted 14 Gb file space not returned to df -k
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
@ 2002-09-10 3:09 ` David E. Konerding
2002-09-10 7:57 ` Emmanuel Choquet
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: David E. Konerding @ 2002-09-10 3:09 UTC (permalink / raw)
In article <3c672d5.0209091642.3ca22154@posting.google.com>, Jeremy Thomson wrote:
> Hi all,
>
> This is my first posting to comp.unix.tru64 so please excuse me if the
> answer to this question is on a FAQ somwhere.
>
> We ran out of disk space & finally identified a runaway zip file that
> had no
> end of file thus kept on unzipping till the disk space was used up.
> I have rm'ed the file but the space freed does not show in the df -k
> command.
> I betcha a reboot will give our space back but thats not a conveniant
> thing to do.
> We will suffer along with 512Mb free but that will only keep us going
> a day or so.
> Any ideas?
>
It seems unlikely, but if the .zip file is mapped by an existing process,
its space will not be reclaimed even if you unlink the file because
there is another reference to the file. The lsof command might shed some
light on this.
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleted 14 Gb file space not returned to df -k
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
2002-09-10 3:09 ` David E. Konerding
@ 2002-09-10 7:57 ` Emmanuel Choquet
2002-09-10 10:02 ` Quarter Horseman
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Emmanuel Choquet @ 2002-09-10 7:57 UTC (permalink / raw)
thomsonj@fliway.com (Jeremy Thomson) wrote in message news:<3c672d5.0209091642.3ca22154@posting.google.com>...
> We ran out of disk space & finally identified a runaway zip file that
> had no
> end of file thus kept on unzipping till the disk space was used up.
> I have rm'ed the file but the space freed does not show in the df -k
> command.
> I betcha a reboot will give our space back but thats not a conveniant
> thing to do.
> We will suffer along with 512Mb free but that will only keep us going
> a day or so.
> Any ideas?
Wild guess 1
Are you using Advfs clones ?
can you post df -k
and showfdmn YourDomain if you are under advfs ?
If you have clones, you should delete them using rmfset to get the
bits back to free.
Wild guess 2
Get big files sorted on your file system, you could have hard links to
your zip file, and rm-ing all of them will cure your problem :
find /data -mount -type f -exec ls -al {} \; | sort -k5nr | more
Cheers
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleted 14 Gb file space not returned to df -k
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
2002-09-10 3:09 ` David E. Konerding
2002-09-10 7:57 ` Emmanuel Choquet
@ 2002-09-10 10:02 ` Quarter Horseman
2002-09-10 13:29 ` Simon Millard
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Quarter Horseman @ 2002-09-10 10:02 UTC (permalink / raw)
> I betcha a reboot will give our space back but thats not a conveniant
> thing to do.
Good Lord, sir, this is UNIX, not Windows. Actually your problem (and
the answer) pop up from time to time in this NG. Search the Google
archives of this NG for "df" and I'll bet you'll find your answer.
;-)
QH.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleted 14 Gb file space not returned to df -k
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
` (2 preceding siblings ...)
2002-09-10 10:02 ` Quarter Horseman
@ 2002-09-10 13:29 ` Simon Millard
2002-09-10 19:26 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2002-09-10 22:21 ` Jeremy Thomson
5 siblings, 0 replies; 7+ messages in thread
From: Simon Millard @ 2002-09-10 13:29 UTC (permalink / raw)
This is an old chestnut. If you terminated a process that was writing a
file, for some reason, the inode table isn't updated properly stating that
the filespace is no longer in use. du should give you the correct value
where df won't.
Usualy trick is to unmount then remount the filesystem as this action does a
for of fsck.
Simon
"Jeremy Thomson" <thomsonj@fliway.com> wrote in message
news:3c672d5.0209091642.3ca22154@posting.google.com...
> Hi all,
>
> This is my first posting to comp.unix.tru64 so please excuse me if the
> answer to this question is on a FAQ somwhere.
>
> We ran out of disk space & finally identified a runaway zip file that
> had no
> end of file thus kept on unzipping till the disk space was used up.
> I have rm'ed the file but the space freed does not show in the df -k
> command.
> I betcha a reboot will give our space back but thats not a conveniant
> thing to do.
> We will suffer along with 512Mb free but that will only keep us going
> a day or so.
> Any ideas?
>
> Thanx in advance,
> Jeremy Thomson
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleted 14 Gb file space not returned to df -k
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
` (3 preceding siblings ...)
2002-09-10 13:29 ` Simon Millard
@ 2002-09-10 19:26 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2002-09-10 22:21 ` Jeremy Thomson
5 siblings, 0 replies; 7+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2002-09-10 19:26 UTC (permalink / raw)
In article <3c672d5.0209091642.3ca22154@posting.google.com>, thomsonj@fliway.com (Jeremy Thomson) writes:
>
>This is my first posting to comp.unix.tru64 so please excuse me if the
>answer to this question is on a FAQ somwhere.
For what it is worth, there are few versions of Tru64 UNIX still in
wide use and all support at least two local file systems. It would
be useful to know the operating system version and the file system
being used.
>
>We ran out of disk space & finally identified a runaway zip file that
>had no
>end of file thus kept on unzipping till the disk space was used up.
>I have rm'ed the file but the space freed does not show in the df -k
>command.
Did you stop the process? Removing a file's name doesn't cause
the space to be freed if something has the file open or there are
other names for the file (hard links). As someone else suggested
use lsof (or fuser) to see if the file is still open.
>I betcha a reboot will give our space back but thats not a conveniant
>thing to do.
Killing the process will be sufficient. A reboot will certainly
do that, but it is more than necessary.
>We will suffer along with 512Mb free but that will only keep us going
>a day or so.
>Any ideas?
The file still being open is the usual cause of space apparently
not being freed when a file is removed. If you're using UFS I
can't think of any other cause for the symtom. AdvFS is another
matter.
I'm told that AdvFS is dependent on its quota system to keep track
of the space being used. If you're not using the quota system (even
if it isn't enforcing them), it seems to be quite easy to get the
actual space usage out of sync with what the file system thinks is
being used. This symtoms shows up a difference in space usage
between df(1) and what the file systems tools think is in use;
showfdmn. Running quotacheck on the domain may be enough to fix
it.
>
>Thanx in advance,
>Jeremy Thomson
>
--
Alan Rollow alan@nabeth.cxo.cpqcorp.net (previously .dec.com)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Deleted 14 Gb file space not returned to df -k
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
` (4 preceding siblings ...)
2002-09-10 19:26 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2002-09-10 22:21 ` Jeremy Thomson
5 siblings, 0 replies; 7+ messages in thread
From: Jeremy Thomson @ 2002-09-10 22:21 UTC (permalink / raw)
thomsonj@fliway.com (Jeremy Thomson) wrote in message news:<3c672d5.0209091642.3ca22154@posting.google.com>...
[...]
> We ran out of disk space & finally identified a runaway zip file that
> had no
> end of file thus kept on unzipping till the disk space was used up.
> I have rm'ed the file but the space freed does not show in the df -k
> command.
[...]
I've solved it.
The unzip process was still running, the question
write error (disk full?). Continue? (y/n/^C)
was at thre bottom of its log file.
I killed the unzip & my file space came back.
Doh!
This must be about the 3rd time this type of problem has suckered me.
To misquote Simon, a HOARY old chesnut.
Hopefully I'll remember next time.
Thanx for the replies
Jeremy Thomson
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-09-10 22:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10 0:42 Deleted 14 Gb file space not returned to df -k Jeremy Thomson
2002-09-10 3:09 ` David E. Konerding
2002-09-10 7:57 ` Emmanuel Choquet
2002-09-10 10:02 ` Quarter Horseman
2002-09-10 13:29 ` Simon Millard
2002-09-10 19:26 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2002-09-10 22:21 ` Jeremy Thomson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox