* /-Filesystem full?
@ 2001-04-24 14:10 Roman Schicht
2001-04-24 21:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-04-25 4:26 ` Jack Patteeuw
0 siblings, 2 replies; 9+ messages in thread
From: Roman Schicht @ 2001-04-24 14:10 UTC (permalink / raw)
I have a Alpha 4000 with Tru64 4.0F running.
Last week "df -k" says that from ~130Mb on / ~ 30Mb were available.
Today i saw that on / only 8 Mb are available.
So i began to search where the missing Mb�s are.
For i do not want to search through all auto-mounters and other mounted
devices i do not use the find-commado (it works also with "find / -xdev
-fstype advfs -ls" (added with awk $7)).
I have done following :
ls -al / | grep dr | awk �{print $9}� > dirs
(to get all directorynames under /. I know this is not perfect (there
could be a file with "dr" in it or a directory created last 24 hours,
and then it ist $10,..... but there isn�t something like that)
I deleted all lines that are mountpoints to other devices.
in sh:
for i in `cat dirs`
do
du -sk /$i
done
Summary of the output plus the files in / itself brings a sum of about
60Mb�s.
Does anyone know where the missing 70Mb�s could be??
If i reboot the machine all seems fine (but after a while the free
diskspace shrinks).
I dont know where it goes. Any idea??
Kind regards
Roman Schicht
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: /-Filesystem full?
2001-04-24 14:10 /-Filesystem full? Roman Schicht
@ 2001-04-24 21:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-04-24 23:29 ` Tobias Ernst
2001-04-25 4:26 ` Jack Patteeuw
1 sibling, 1 reply; 9+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-04-24 21:00 UTC (permalink / raw)
In article <3AE5897D.6460F2C5@atosorigin.com>, Roman Schicht <Roman.Schicht@atosorigin.com> writes:
>I have a Alpha 4000 with Tru64 4.0F running.
>
>Last week "df -k" says that from ~130Mb on / ~ 30Mb were available.
>
>Today i saw that on / only 8 Mb are available.
The vast majority of space problems in the root file system
come from one of two places; /tmp and /dev.
The typical cause of a problem with /dev is having a regular
file whose name closely resembles that of a special device
file; /dev/rmtoh vs. /dev/rmt0h. The utilities that write
to special files typically don't care whether you specify
a regular file or device, so a misnamed file fills the root
with the data intended for the device.
The solution to this problem is to be careful what you type.
The usual cause of a problem in /tmp is a large temporary
file. Such files often have their name deleted after they
are opened. The feature of this is that the file is
automatically deleted when the application using it exits.
However, this makes the space hard to find, since there's
no name to find.
Programs like lsof and fuser may be useful here, since they
can show what files are open. Once you find the offending
file, it should be easy to find the offending application.
Since the space was freed up after a reboot that suggests
the /tmp problem. The reboot killed the offending process,
the file was closed and deleted.
The usual solutions to this problem are:
o Coerece the people writing large temporary files to /tmp
to use /var/tmp or their own home directories instead.
o Mount /tmp on its own file system so that when it fills
it doesn't affect the rest of the root.
>
>Roman Schicht
>
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: /-Filesystem full?
2001-04-24 21:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2001-04-24 23:29 ` Tobias Ernst
2001-04-25 10:19 ` Joerg Bruehe
2001-04-25 16:47 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 2 replies; 9+ messages in thread
From: Tobias Ernst @ 2001-04-24 23:29 UTC (permalink / raw)
Hallo Alan!
AR DFSHfWI> o Coerece the people writing large temporary files to
AR DFSHfWI> /tmp to use /var/tmp or their own home directories
instead.
Whats the advantage in using /var/tmp over /tmp? IMO a /var overflow is
even more harmful (logs cannot be written any more etc) than a /
overflow.
Viele Gr��e,
Tobias
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: /-Filesystem full?
2001-04-24 23:29 ` Tobias Ernst
@ 2001-04-25 10:19 ` Joerg Bruehe
2001-04-25 16:47 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1 sibling, 0 replies; 9+ messages in thread
From: Joerg Bruehe @ 2001-04-25 10:19 UTC (permalink / raw)
Hello!
Tobias Ernst wrote:
>
> Hallo Alan!
>
> AR DFSHfWI> o Coerece the people writing large temporary files to
> AR DFSHfWI> /tmp to use /var/tmp or their own home directories
> instead.
>
> Whats the advantage in using /var/tmp over /tmp? IMO a /var overflow is
> even more harmful (logs cannot be written any more etc) than a /
> overflow.
AFAIK, you have no problems to boot a machine (into "single user"
mode) even if "/var" is full and it crashed, so you can now
repair everything.
If "/" became full and it crashed, things look much worse.
Regards,
Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: joerg@sql.de
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: /-Filesystem full?
2001-04-24 23:29 ` Tobias Ernst
2001-04-25 10:19 ` Joerg Bruehe
@ 2001-04-25 16:47 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1 sibling, 0 replies; 9+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-04-25 16:47 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 897 bytes --]
In article <988143093@f1.n7600.z242.fido.de>, tobi@bland.fido.de (Tobias Ernst) writes:
> AR DFSHfWI> o Coerece the people writing large temporary files to
> AR DFSHfWI> /tmp to use /var/tmp or their own home directories
>instead.
>
>Whats the advantage in using /var/tmp over /tmp? IMO a /var overflow is
>even more harmful (logs cannot be written any more etc) than a /
>overflow.
I'd expect the main advantage is that /var will have more
free space than a typical root. Actually, many /var file
systems will more free than roots have space at all, free
and otherwise. The extra free space will reduce the chances
that the application will cause a problem, unless it happens
to be very anti-social. If it is anti-social, then it will
eventually use up all the free space of whatever file system
it is on.
>
>Viele Gr��e,
>Tobias
>
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: /-Filesystem full?
2001-04-24 14:10 /-Filesystem full? Roman Schicht
2001-04-24 21:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2001-04-25 4:26 ` Jack Patteeuw
2001-04-25 3:50 ` John Smith
1 sibling, 1 reply; 9+ messages in thread
From: Jack Patteeuw @ 2001-04-25 4:26 UTC (permalink / raw)
Roman Schicht wrote:
<snip>
> Does anyone know where the missing 70Mb�s could be??
find / -mount -size +500 -mtime -10 -ls
^ ^
make larger if too ---+ +--- make smaller to
many files in list shorten time window
Jack Patteeuw
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: /-Filesystem full?
2001-04-25 4:26 ` Jack Patteeuw
@ 2001-04-25 3:50 ` John Smith
2001-04-27 6:17 ` Jack Patteeuw
0 siblings, 1 reply; 9+ messages in thread
From: John Smith @ 2001-04-25 3:50 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]
Bug in 4.0F with AdvFS: sometimes a file system does not relinqish space
when files are deleted.
Solution: run "verify -f" on the domain.
"Jack Patteeuw" <jjpatteeuw@peoplepc.com> wrote in message
news:3AE651EF.66C38C8B@peoplepc.com...
>
>
> Roman Schicht wrote:
> <snip>
> > Does anyone know where the missing 70Mb�s could be??
>
> find / -mount -size +500 -mtime -10 -ls
> ^ ^
> make larger if too ---+ +--- make smaller to
> many files in list shorten time window
>
>
> Jack Patteeuw
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: /-Filesystem full?
2001-04-25 3:50 ` John Smith
@ 2001-04-27 6:17 ` Jack Patteeuw
2001-04-30 13:32 ` Martyn Perring
0 siblings, 1 reply; 9+ messages in thread
From: Jack Patteeuw @ 2001-04-27 6:17 UTC (permalink / raw)
John Smith wrote:
>
> Bug in 4.0F with AdvFS: sometimes a file system does not relinqish space
> when files are deleted.
> Solution: run "verify -f" on the domain.
In order to run verify, all filesets in the file domain must be
unmounted first.
Jack Patteeuw
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: /-Filesystem full?
2001-04-27 6:17 ` Jack Patteeuw
@ 2001-04-30 13:32 ` Martyn Perring
0 siblings, 0 replies; 9+ messages in thread
From: Martyn Perring @ 2001-04-30 13:32 UTC (permalink / raw)
verify -r checks the root domain.
Jack Patteeuw wrote:
>
> John Smith wrote:
> >
> > Bug in 4.0F with AdvFS: sometimes a file system does not relinqish space
> > when files are deleted.
> > Solution: run "verify -f" on the domain.
>
> In order to run verify, all filesets in the file domain must be
> unmounted first.
>
> Jack Patteeuw
--
====================================================================
Martyn Perring
System Administrator, NIP Environment Support Team
MLB4/5, Desk 265
BT Advanced Communications Technology Centre,
Adastral Park,
Martlesham Heath,
Ipswich, Tel: (01473-)608334
Suffolk, IP5 3RE BTNet: *00 160 8334
====================================================================
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-04-30 13:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-24 14:10 /-Filesystem full? Roman Schicht
2001-04-24 21:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-04-24 23:29 ` Tobias Ernst
2001-04-25 10:19 ` Joerg Bruehe
2001-04-25 16:47 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2001-04-25 4:26 ` Jack Patteeuw
2001-04-25 3:50 ` John Smith
2001-04-27 6:17 ` Jack Patteeuw
2001-04-30 13:32 ` Martyn Perring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox