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
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
On Thursday 15 March 2007, 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.
"df -i" will tell you if you're out of inodes.
Regarding where your space went, if it's not reboot-persistent then it was probably a deleted file that some process still had open (use lsof or fuser commands to dig deeper). If it is reboot persistent then two possibilities are corrupt filesystem (run fsck) or data left "under" mount-points (unmount to find out..).
good luck, Peter
Thanks Leonardo
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
On Sat, Mar 17, 2007 at 04:03:37PM -0400, William L. Maltby 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.
As I understand it, having an ext3 filesystem more full than that isn't a good idea -- you risk ending up with serious fragmentation. Think of it this way: on gigabyte-sized devices, you should easily be able to spare 5% in exchange for more efficient operation.
On Sat, 2007-03-17 at 16:35 -0400, Matthew Miller wrote:
On Sat, Mar 17, 2007 at 04:03:37PM -0400, William L. Maltby wrote:
<snip>
Keep in mind that default FS creation reserves 5% (?) for root. On GB- sized drives, very wasteful. I always reduces to 1% or so.
As I understand it, having an ext3 filesystem more full than that isn't a good idea -- you risk ending up with serious fragmentation. Think of it this way: on gigabyte-sized devices, you should easily be able to spare 5% in exchange for more efficient operation.
You are probably right. I've not invested enough time/energy to maintain the level of currency I used to maintain.
In my particular situation(s), fragmentation is no issue. But it may be important in the OP's.
-- Bill
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.
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@centos.org http://lists.centos.org/mailman/listinfo/centos