Leonardo Vilela Pinheiro
2007-Mar-14 23:28 UTC
[CentOS] "No space left on device" but there is space
Hi, I've been receiving message "No space left on device" but there is space. I've forced fsck on reboot 2 times but did not solve. # yum rpmdb: /var/lib/rpm/__db.001: No space left on device error: db4 error(28) from dbenv->open: No space left on device error: cannot open Packages index using db3 - No space left on device (28) error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): <...> # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol01 5.0G 3.6G 1.2G 76% /var /dev/mapper/VolGroup00-LogVol04 1008M 456M 501M 48% /var/log /dev/mapper/VolGroup00-web 4.9G 140M 4.5G 3% /var/www # mount /dev/mapper/VolGroup00-LogVol01 on /var type ext3 (rw) /dev/mapper/VolGroup00-LogVol04 on /var/log type ext3 (rw) /dev/mapper/VolGroup00-web on /var/www type ext3 (rw) # touch /var/test touch: cannot touch `/var/test': No space left on device # mkdir /var/hello mkdir: cannot create directory `/var/hello': No space left on device Please help. Thanks Leonardo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070314/9092e1f9/attachment.html>
Leonardo Vilela Pinheiro
2007-Mar-14 23:39 UTC
[CentOS] Re: "No space left on device" but there is space
After trying to solve this for some hours, I guess to have reached the maximum file numbers, or maybe there is some hidden space filling the partition. I've just cleaned manually the yum cache, and /var went ok. Thanks Leonardo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070314/e75b8187/attachment.html>
Scott Silva
2007-Mar-14 23:40 UTC
[CentOS] Re: "No space left on device" but there is space
Leonardo Vilela Pinheiro spake the following on 3/14/2007 4:28 PM:> Hi, > > I've been receiving message "No space left on device" but there is > space. I've forced fsck on reboot 2 times but did not solve. > > # yum > rpmdb: /var/lib/rpm/__db.001: No space left on device > error: db4 error(28) from dbenv->open: No space left on device > error: cannot open Packages index using db3 - No space left on device (28) > error: cannot open Packages database in /var/lib/rpm > Traceback (most recent call last): > <...> > > > # df -h > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/VolGroup00-LogVol01 5.0G 3.6G 1.2G 76% /var > /dev/mapper/VolGroup00-LogVol04 1008M 456M 501M 48% /var/log > /dev/mapper/VolGroup00-web 4.9G 140M 4.5G 3% /var/www > > # mount > /dev/mapper/VolGroup00-LogVol01 on /var type ext3 (rw) > /dev/mapper/VolGroup00-LogVol04 on /var/log type ext3 (rw) > /dev/mapper/VolGroup00-web on /var/www type ext3 (rw) > > # touch /var/test > touch: cannot touch `/var/test': No space left on device > > # mkdir /var/hello > mkdir: cannot create directory `/var/hello': No space left on device >Try df -i you might be out of inodes. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
Just a guess but since there can be lot's of files in /var and below you may be out of inodes, try df -i to check that. Leonardo Vilela Pinheiro wrote:> Hi, > > I've been receiving message "No space left on device" but there is > space. I've forced fsck on reboot 2 times but did not solve. > > # yum > rpmdb: /var/lib/rpm/__db.001: No space left on device > error: db4 error(28) from dbenv->open: No space left on device > error: cannot open Packages index using db3 - No space left on device (28) > error: cannot open Packages database in /var/lib/rpm > Traceback (most recent call last): > <...> > > > # df -h > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/VolGroup00-LogVol01 5.0G 3.6G 1.2G 76% /var > /dev/mapper/VolGroup00-LogVol04 1008M 456M 501M 48% /var/log > /dev/mapper/VolGroup00-web 4.9G 140M 4.5G 3% /var/www > > # mount > /dev/mapper/VolGroup00-LogVol01 on /var type ext3 (rw) > /dev/mapper/VolGroup00-LogVol04 on /var/log type ext3 (rw) > /dev/mapper/VolGroup00-web on /var/www type ext3 (rw) > > # touch /var/test > touch: cannot touch `/var/test': No space left on device > > # mkdir /var/hello > mkdir: cannot create directory `/var/hello': No space left on device > > > Please help. > > Thanks > Leonardo > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
William L. Maltby
2007-Mar-17 20:03 UTC
[CentOS] Re: "No space left on device" but there is space
On Wed, 2007-03-14 at 20:39 -0300, Leonardo Vilela Pinheiro wrote:> After trying to solve this for some hours, I guess to have reached the > maximum file numbers, or maybe there is some hidden space filling the > partition. I've just cleaned manually the yum cache, and /var went ok.Keep in mind that default FS creation reserves 5% (?) for root. On GB- sized drives, very wasteful. I always reduces to 1% or so. The other poster's comments (inodes exhausted, deleted files held open,etc.) may also apply. Quota's may be biting you too.> > Thanks > Leonardo > <snip sig stuff>-- Bill