No space left on device (but there are free inodes and blocks!!)

No space left on device (but there are free inodes and blocks!!)

Post by Miguel Angel Sotomayor Hernand » Thu, 12 Dec 2002 04:50:45



I'm using Mandrake Linux 9.0 Kernel 2.4.19-16mdk

I get messages from apps saying ther is no space left on device
/dev/hda1, but I still have lots of inodes and blocks available. When
I run df, even when it shows less used blocks than totals, It says
there are 0 available blocks.


Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1              1718336   1654348         0 100% /
none                     39364         0     39364   0% /dev/shm
/dev/hda6              1158804    610408    489532  56% /home
none                     39364         4     39360   1% /tmp

What canI do to recover the free space? Iv'e uninstalled software I
don't need, but I noticed the problem is not that.

Please help me!! Urgent

Miguel A. Sotomayor

 
 
 

No space left on device (but there are free inodes and blocks!!)

Post by dav.. » Thu, 12 Dec 2002 04:58:47



> I run df, even when it shows less used blocks than totals, It says
> there are 0 available blocks.


And what df -h shows ?

Anyway, you have only one solution: get rid of what's useless.

Davide

 
 
 

No space left on device (but there are free inodes and blocks!!)

Post by Juha Laih » Thu, 12 Dec 2002 05:27:01



>I get messages from apps saying ther is no space left on device
>/dev/hda1, but I still have lots of inodes and blocks available. When
>I run df, even when it shows less used blocks than totals, It says
>there are 0 available blocks.


>Filesystem           1K-blocks      Used Available Use% Mounted on
>/dev/hda1              1718336   1654348         0 100% /

>What canI do to recover the free space? Iv'e uninstalled software I
>don't need, but I noticed the problem is not that.

There's typically an allocation limit on the filesystem so that non-root
users cannot completely fill the disk (only root processes are allowed
to allocate disk beyond a threshold).

Look for a tuning program (name varies depending on the filesystem type
you're using) and use that to decrease the amount of root-reserved size.
For ext2 filesystem the tuning tool is tune2fs (and for ext2 the default
reserved space is 5%).

Yes, the df output is arguably misleading -- on the other hand, so would
be >100% allocation, or "disk full" messages at under 100% allocation.
--
Wolf  a.k.a.  Juha Laiho     Espoo, Finland

         PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)

 
 
 

No space left on device (but there are free inodes and blocks!!)

Post by Michael Heimin » Thu, 12 Dec 2002 05:25:35



> I'm using Mandrake Linux 9.0 Kernel 2.4.19-16mdk

> I get messages from apps saying ther is no space left on device
> /dev/hda1, but I still have lots of inodes and blocks available. When
> I run df, even when it shows less used blocks than totals, It says
> there are 0 available blocks.


> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1              1718336   1654348         0 100% /
> none                     39364         0     39364   0% /dev/shm
> /dev/hda6              1158804    610408    489532  56% /home
> none                     39364         4     39360   1% /tmp

> What canI do to recover the free space? Iv'e uninstalled software I
> don't need, but I noticed the problem is not that.

> Please help me!! Urgent

There might be a proc running, perhaps in a strange state (zombie),
which claims all space and won't release it until you get rid of it.
# ps aux
man lsof
man fuser

Another thing, there is per default 5% space reserved for root. You can
adjust this with 'tune2fs' (Presuming ext2/3). In the end, you might
just need to get rid of more unneeded stuff. Look in /var/log for old
logfiles.

Good luck

Michael Heiming
--
Remove +SIGNS and www. if you expect an answer, sorry for inconvenience,
but I get tons of SPAM  

 
 
 

No space left on device (but there are free inodes and blocks!!)

Post by Trevor MacPhai » Thu, 12 Dec 2002 05:41:56



> I'm using Mandrake Linux 9.0 Kernel 2.4.19-16mdk

> I get messages from apps saying ther is no space left on device
> /dev/hda1, but I still have lots of inodes and blocks available. When
> I run df, even when it shows less used blocks than totals, It says
> there are 0 available blocks.


> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda1              1718336   1654348         0 100% /
> none                     39364         0     39364   0% /dev/shm
> /dev/hda6              1158804    610408    489532  56% /home
> none                     39364         4     39360   1% /tmp

> What canI do to recover the free space? Iv'e uninstalled software I
> don't need, but I noticed the problem is not that.

> Please help me!! Urgent

> Miguel A. Sotomayor

What does df -i show? You claim there are free inodes but it may not
actually be true unless df -i tells you it is.

--
Trevor MacPhail

 
 
 

No space left on device (but there are free inodes and blocks!!)

Post by Peter T. Breue » Thu, 12 Dec 2002 06:51:26




>> I'm using Mandrake Linux 9.0 Kernel 2.4.19-16mdk

>> I get messages from apps saying ther is no space left on device
>> /dev/hda1, but I still have lots of inodes and blocks available. When

No you don't. You really are out of space (blocks).

Quote:>> I run df, even when it shows less used blocks than totals, It says
>> there are 0 available blocks.

And it's correct.


>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> /dev/hda1              1718336   1654348         0 100% /

See. It's full! Now man tune2fs and look at the -m parameter.

(yes, I see the difference of 63MB, and I can tell you that that is
less than 5% so please read the manual page mentioned above ...)

Quote:>> What canI do to recover the free space? Iv'e uninstalled software I

You don't want to. It's not lost. Merely reserved.

Quote:>> don't need, but I noticed the problem is not that.

It is that. Man notice. Man problem /real.

Peter

 
 
 

No space left on device (but there are free inodes and blocks!!)

Post by Bill Unr » Thu, 12 Dec 2002 09:44:31




]>> I'm using Mandrake Linux 9.0 Kernel 2.4.19-16mdk
]>>
]>> I get messages from apps saying ther is no space left on device
]>> /dev/hda1, but I still have lots of inodes and blocks available. When

]No you don't. You really are out of space (blocks).

]>> I run df, even when it shows less used blocks than totals, It says
]>> there are 0 available blocks.

Yes. The operating system reserves some space on each disk for root (
and programs running as root) use. This means that when you as the user
have filled up the partition, root can still use the partition, and you
can have a hope of fixing things as root without reinstalling the whole
operating system. When drives fill up completely, ( which sometimes
happens with root writen log files) then the whole system usually comes
grinding to a halt or crashes. This is not nice if any user can do that,
so space is always reserved for root to use.

]And it's correct.


]>> Filesystem           1K-blocks      Used Available Use% Mounted on
]>> /dev/hda1              1718336   1654348         0 100% /

]See. It's full! Now man tune2fs and look at the -m parameter.

](yes, I see the difference of 63MB, and I can tell you that that is
]less than 5% so please read the manual page mentioned above ...)

]>> What canI do to recover the free space? Iv'e uninstalled software I

]You don't want to. It's not lost. Merely reserved.

]>> don't need, but I noticed the problem is not that.

]It is that. Man notice. Man problem /real.

]Peter

 
 
 

1. No space left on device/out of inodes???

Hi folks; I'm doing some volunteer work to get a news service up for some
friends, but we're having major problems with the Linux machine it's running
on and it's not at all clear whether the problems are with the news
installation or with the installed version of Linux itself.  It's SLS 1.03

- from what I've read here, not the one I'd go for myself, but it was
installed by the time I turned up to help with the news.

What's happening is that it gets into a state where file creations fail (as
below) but there appears to be space left according to 'df'.  If it's any
help, it's a 32Mb machine and swapping appears not to have been enabled
yet.  (There's a swapon -av in the rc file, but no swap entry in fstab)

Two more clues: it often crashes with an out of inodes error; and when I
try to run doexpire, the system seizes up after a few minutes - console
IO is dead, but it can still be pinged; also, you can telnet to it and connect,
but you never get a prompt.

Does this ring any bells for anyone?

Thanks for any help you can offer,

Graham
PS If the only solution is 'trash the disk and reinstall a working version
of linux', I'm amenable to that, but I'll need a convincing argument for
the guys whose machine it is.  I'm 5000 miles away, so I can't do it myself
and they don't have a lot of time free with their school term starting
soon...
PPS I'm a 386bsd person myself, so you can win some Brownie points for
Linux by being extra helpful ;-)


Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/sda1             922623  743204   133288     85%   /


/home/gtoal/xxx: No space left on device.

2. OpenSSH/Linux interoperability with F-Secure/Solaris SFTP/SCP?

3. No space left on device (although space exists)

4. modem hangups

5. How to make space (no space left on device)

6. About useradd

7. EXT2-fs error (device 8/3) and ld: no space left on device

8. KDM Login Screen Customization

9. device out of space-can't free up space

10. Error Message "No space on device on device 31/50" on Free SCO

11. Finding left disk space (bytes free)?

12. free space left on my solaris machine

13. 15 MB free and "No space left"...