"File system full" when it isn't

"File system full" when it isn't

Post by Luis Melendez Agan » Sat, 21 Oct 1995 04:00:00



I've had this problem in SunOS 4.1.3 and in Solaris 2.4. If a filesystem
becomes full and I delete a lot of files so that it has a lot of free
space, that fact is not noticed by the system. df report 100% and any
write operation report "file system full". I have tried a lot of
things but the only solution is to reboot. I have seen this bug
reported in SunSolve, but without solution.

Does anybody know how to solve it ?

--
+-----------------------------------^---------------------------------------+

| Centro de Calculo Cientifico      ^  Tlf: 957-218119                      |
| Universidad de Cordoba (SPAIN)    ^  MIME Spoken Here                     |
| gopher://gopher.uco.es            ^  http://www.uco.es                    |
+-----------------------------------^---------------------------------------+

 
 
 

"File system full" when it isn't

Post by rbar.. » Sun, 22 Oct 1995 04:00:00



Quote:>I've had this problem in SunOS 4.1.3 and in Solaris 2.4. If a filesystem
>becomes full and I delete a lot of files so that it has a lot of free
>space, that fact is not noticed by the system. df report 100% and any
>write operation report "file system full". I have tried a lot of
>things but the only solution is to reboot. I have seen this bug
>reported in SunSolve, but without solution.

>Does anybody know how to solve it ?

>--

You could observe that kind of behaviour if the files you delete are still opened
by an other process. The directory entries are no longer there, but the file space
will be reclaimed only when the last process that has the file open closes it.

 
 
 

"File system full" when it isn't

Post by Fletcher.Gl.. » Wed, 25 Oct 1995 04:00:00



>I've had this problem in SunOS 4.1.3 and in Solaris 2.4. If a filesystem
>becomes full and I delete a lot of files so that it has a lot of free
>space, that fact is not noticed by the system. df report 100% and any
>write operation report "file system full". I have tried a lot of
>things but the only solution is to reboot. I have seen this bug
>reported in SunSolve, but without solution.

>Does anybody know how to solve it ?

>--
>+-----------------------------------^---------------------------------------+

>| Centro de Calculo Cientifico      ^  Tlf: 957-218119                      |
>| Universidad de Cordoba (SPAIN)    ^  MIME Spoken Here                     |
>| gopher://gopher.uco.es            ^  http://www.uco.es                    |
>+-----------------------------------^---------------------------------------+

Just because you delete a file does not mean the it is removed from use.
This can be seen when you attempt to delete a log file that is still opened
for use.  The disk storage is not released until the file is closed, even
though it no longer appears in a directory listing.  I'll bet that the
files you tried to delete were in /var where there are a lot of files
that are in use by daemon programs.

The effect of rebooting solving your problem is really killing the daemon
programs that own the files, thus releasing the disk space.  What you really
want to do is to use "fuser" to determine which process(es) is/are using the
file, kill the process, remove the file, restart the process.


 
 
 

"File system full" when it isn't

Post by Bart Smaalde » Wed, 25 Oct 1995 04:00:00


Rather than deleting the pesky log file, do the following:

% cat > /var/tmp/pesky_log_file
^D
%

this causes the file to be truncated in place so the space can
be reclaimed w/o killing processes....

---
Bart Smaalders                  OS Performance          SunSoft

http://playground.sun.com/~barts                   2550 Garcia Ave
                                                        Mt View, CA 94043-1100



>>I've had this problem in SunOS 4.1.3 and in Solaris 2.4. If a filesystem
>>becomes full and I delete a lot of files so that it has a lot of free
>>space, that fact is not noticed by the system. df report 100% and any
>>write operation report "file system full". I have tried a lot of
>>things but the only solution is to reboot. I have seen this bug
>>reported in SunSolve, but without solution.

>>Does anybody know how to solve it ?

>>--
>>+-----------------------------------^---------------------------------------+

>>| Centro de Calculo Cientifico      ^  Tlf: 957-218119                      |
>>| Universidad de Cordoba (SPAIN)    ^  MIME Spoken Here                     |
>>| gopher://gopher.uco.es            ^  http://www.uco.es                    |
>>+-----------------------------------^---------------------------------------+

>Just because you delete a file does not mean the it is removed from use.
>This can be seen when you attempt to delete a log file that is still opened
>for use.  The disk storage is not released until the file is closed, even
>though it no longer appears in a directory listing.  I'll bet that the
>files you tried to delete were in /var where there are a lot of files
>that are in use by daemon programs.

>The effect of rebooting solving your problem is really killing the daemon
>programs that own the files, thus releasing the disk space.  What you really
>want to do is to use "fuser" to determine which process(es) is/are using the
>file, kill the process, remove the file, restart the process.



 
 
 

"File system full" when it isn't

Post by Trevor Paquet » Thu, 26 Oct 1995 04:00:00



Quote:> I've had this problem in SunOS 4.1.3 and in Solaris 2.4. If a filesystem
> becomes full and I delete a lot of files so that it has a lot of free
> space, that fact is not noticed by the system. df report 100% and any
> write operation report "file system full". I have tried a lot of
> things but the only solution is to reboot. I have seen this bug
> reported in SunSolve, but without solution.

> Does anybody know how to solve it ?

 Most likely the process that has the offending file space allocated still
has the file OPEN. the space will not be release to the disk until the file
is closed. (IE: the process closes the file, is killed (thus closing the file),
or the system is rebooted, thus killing the process, thus freing up the space.
The trick is to figure out which process is hogging the disk space..
--
 Name:Trevor Paquette      |Alberta Energy Company Ltd |Work:(403) 266-8400



 
 
 

"File system full" when it isn't

Post by Fletcher.Gl.. » Tue, 31 Oct 1995 04:00:00



>Rather than deleting the pesky log file, do the following:

>% cat > /var/tmp/pesky_log_file
>^D
>%

>this causes the file to be truncated in place so the space can
>be reclaimed w/o killing processes....

>---
>Bart Smaalders                      OS Performance          SunSoft

>http://playground.sun.com/~barts                       2550 Garcia Ave
>                                                    Mt View, CA 94043-1100

I disagree.  Your procedure does nothing to reset the write pointer in the
offending process.  What happens is that the next time the processs writes,
the file is back with a long ton of leading nulls.


 
 
 

"File system full" when it isn't

Post by Mike Fischbe » Wed, 01 Nov 1995 04:00:00



: >Rather than deleting the pesky log file, do the following:
: >
: >% cat > /var/tmp/pesky_log_file
: >^D
: >%
: >
: >this causes the file to be truncated in place so the space can
: >be reclaimed w/o killing processes....

: I disagree.  Your procedure does nothing to reset the write pointer in the
: offending process.  What happens is that the next time the processs writes,
: the file is back with a long ton of leading nulls.

But are those leading nulls actually stored on disk?

        mike

--

Any opinions expressed are mine only, and not necessarily
those of any other entity.  They may not even be mine.

 
 
 

"File system full" when it isn't

Post by Ivan Bisho » Wed, 01 Nov 1995 04:00:00


I think I'd run fsck -N on the volume to see how many files
you have that are no longer part of the filesystem.

The -N says reply N to anything fsck tries to do.

Check which flag will ensure NO-write operation BEFORE you run fsck

Ivan Bishop
<my opinions, my mistakes>

 
 
 

"File system full" when it isn't

Post by Frank Pete » Wed, 01 Nov 1995 04:00:00




> : I disagree.  Your procedure does nothing to reset the write pointer in the
> : offending process.  What happens is that the next time the processs writes,
> : the file is back with a long ton of leading nulls.

> But are those leading nulls actually stored on disk?

But certain operations which don't deal with 'holey' files can be adversely
affected and can even cause the file to fill in (when copying or the like).

When you truncate a log file you want the real AND logical sizes to be
reduced.
--
  Frank Peters - UNIX Systems Group Leader - Mississippi State University

                  <URL:http://www2.msstate.edu/~fwp/>

 
 
 

"File system full" when it isn't

Post by Casper H.S. Dik - Network Security Engine » Wed, 01 Nov 1995 04:00:00




>>Rather than deleting the pesky log file, do the following:

>>% cat > /var/tmp/pesky_log_file
>>^D
>>%

>>this causes the file to be truncated in place so the space can
>>be reclaimed w/o killing processes....
>>                                                        Mt View, CA 94043-1100
>I disagree.  Your procedure does nothing to reset the write pointer in the
>offending process.  What happens is that the next time the processs writes,
>the file is back with a long ton of leading nulls.

Even in those circumstances, the space is still relaimed.

But in the case of cronlog, truncating the logfile
does work.

Of course, Bart does get a "useless use of cat" award.
In ksh/sh you can truncate a file with:

        >log

and in virtually all shells with:

        :>log

or even:
        true > log

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.

 
 
 

1. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

My machine: P166+mmx, 32mb ram, 4gb HD with Win95 and Win NT 4.0 and
redhat5.1 co-existed in different partitions.

I issued "sndconfig" within a xterm inside X Window, The program
detects the SB 16 pnp card sets it up with no error message, but when
it launch ModProbe to test out, it gets a message states: An error was
encountered running the ModProbe program."  I tried different IRQ
settings, all ends with the same message.

2nd, When I try to mount /dev/cdrom from File Systerm Manager, the
following error is returned:  Can't find /dev/hdb in /etc/mtab or
/etc/fstab.

3nd, When my machine boots, it halts at "Sendmail" for about 3-5 mins
before it goes to next step.  Obviously there isn't any mail system on
the machine right now because it is a standalone.  How can take this
mail thing out and speed up booting?

last one, Is my Zoom 56k PCI FaxModem a Windmodem that Linux can't use
to connect me to my local isp?

Experts help me out please. thanks.

2. Apache 1.3.3 and child Segmentation Faults

3. "Standard Journaled File System" vs "Large File Enabled Journaled File System"

4. ATI Winturbo

5. " File System full " error message : but the partition is not full.

6. Help - Linux as Novell server

7. HP machine claims: "File system busy." It isn't

8. find -prune : question

9. File System is full, but "df" doesn't agree...

10. why isn't "disk full" logged?

11. userdel : "user" is in use, but "user" isn't logged

12. GETSERVBYNAME()????????????????????"""""""""""""

13. "Can't open file" ( flat file ) and "flock()unimplemented ..."