[CentOS] "No space left on device" but there is space

Chuck Mattern camattern at acm.org
Sat Mar 17 02:54:00 UTC 2007


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
>   




More information about the CentOS mailing list