首页 > 代码库 > /var/lib/rpm/__db.001: No space left on device

/var/lib/rpm/__db.001: No space left on device

[root@localhost ~]# df -h

Filesystem                     Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup-LogVol00   20G  1.7G   18G   9% /

tmpfs                          3.9G     0  3.9G   0% /dev/shm

/dev/sda1                      485M   38M  422M   9% /boot

/dev/mapper/VolGroup-LogVol01  9.9G  228M  9.2G   3% /home

/dev/mapper/VolGroup-LogVol03  9.9G  160M  9.2G   2% /tmp

/dev/mapper/VolGroup-LogVol02  9.9G  9.0G  430M  96% /var

/dev/mapper/rootvg-lv01         99G   11G   83G  12% /opt

[root@localhost ~]# yum install ntp

rpmdb: /var/lib/rpm/__db.001: No space left on device

error: db3 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

CRITICAL:yum.main:


Error: rpmdb open failed


清理、/var目录内容即可

/var/lib/rpm/__db.001: No space left on device