Re: [expert] "No space left on device" when device is not full?
On Sun, 9 Dec 2001 04:27, David Guntner wrote: > This is a weird one. My logs started showing messages saying "No space > left on device" for things like postfix and fetchnews, although a "df -k" > shows plenty of space on all filesystems. A reboot of the system seems to > have taken care of it, but I'm still wondering what would cause processes > to think that /var was full when it wasn't > > Anyone run into this before? Or have any ideas what could have caused the > messages to start showing up? > > --Dave try looking at df -i you may have run out of inodes Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] "No space left on device" when device is not full?
On Saturday 08 December 2001 09:27, you wrote: > This is a weird one. My logs started showing messages saying "No space > left on device" for things like postfix and fetchnews, although a "df -k" One item deserving mention - if a process "owns" a particular set of disk blocks and those are deleted, the space isn't really free until the process terminates. That's one way the disk space would show up on a reboot. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] No space left on device
Jim Holthaus wrote: > > On Mon, 09 Oct 2000, Mike Bergen wrote: > > You hit the nail on the head. How do i cure this? > > Each file you create, regardless of its size, uses an inode up. When a > filesystem is created by mkfs a default ratio is used to determine how many > inodes should be created. Since you are running out of inodes, you need to get > a large number of files off of the full filesystem. The size of the files is > hardly important -- just the number. You can delete the files, or move them. > Another option is to archive a lot of little files that aren't used into a tar > archive and then delete the individual small files. The archive itself will be > one bigger file. Don't know if it's a bug in Mandrake or if it's the usual behavior of Linux, but my /var/log/mail dir was extremely full of files. I'm actually tar'ing them right now to free up some inodes _and_ space (wow... 57MB in total), but I can't see how and why 127000 inodes should be used... Could anyone with knowledge of this please respond and perhaps come up with a solution? Thanks in advance. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N-0123 Oslo, Norway tel. +47 22 09 28 80 fax. +47 22 09 28 81 http://www.lincom.no/ Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
RE: [expert] No space left on device
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 09 Oct 2000, Mike Bergen wrote: > You hit the nail on the head. How do i cure this? Each file you create, regardless of its size, uses an inode up. When a filesystem is created by mkfs a default ratio is used to determine how many inodes should be created. Since you are running out of inodes, you need to get a large number of files off of the full filesystem. The size of the files is hardly important -- just the number. You can delete the files, or move them. Another option is to archive a lot of little files that aren't used into a tar archive and then delete the individual small files. The archive itself will be one bigger file. - -- Jim Holthaus (pronunciation: HOLT house) [EMAIL PROTECTED] PGP Public Key at http://www.holthaus.com/jim/pgpkey.html Learn about PGP at http://www.holthaus.com/jim/pgp.html -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQA/AwUBOeIeRH3IcJJ+eC/CEQJaEACeLZp1j/FInSbAwEYqnzgZnCwFOO4AoMcM PmJT4VaVCGpuXJlrm1tUJ2lY =6k4w -END PGP SIGNATURE- Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
Re: [expert] No space left on device
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 09 Oct 2000, Mike Bergen wrote: > On a mandrake 7.1 system my apache error_log filled the root file system > up. Normally all I do is delete the error log and go on about my day. It is > a development server so i don't worry about errors in the apache > logs.(maybe now i will) When i did this this morning it went crazy. > > Today i get a > > [root@marvin /]# touch /anyfile > touch: /anyfile: No space left on device > [root@marvin /]# > > in my boot messages. but when i do a > > df > /dev/sda1 2885780 1215220 1523972 44% / > /dev/sdb3 1533776242668 1213196 17% /downloads > /dev/sda6 1170048316916793696 29% /home > /dev/sdb5 2656388 2257472263976 90% /usr > You could be running out of inodes. Try df -i. Also, I would strongly urge you to put your logs in another filesystem than /. - -- Jim Holthaus (pronunciation: HOLT house) [EMAIL PROTECTED] PGP Public Key at http://www.holthaus.com/jim/pgpkey.html Learn about PGP at http://www.holthaus.com/jim/pgp.html -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQA/AwUBOeIOcX3IcJJ+eC/CEQKWMQCgjnKBTA84c5mRBe7tYtae3bQZnzsAoKva qg5wIb4PxlWarA8gjh74JswV =8Jws -END PGP SIGNATURE- Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.