Linux Administrator

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

no-space-left
mm
Written by Santosh Prasad

Recently I faced below error during package installation on CentOS machine, and found that there was no free inode left on the server although there was lots of space available on the / partition. This error also comes when your server become out of space.

If you are also facing same issue, this tutorial will help you to solve this issue.

# yum install update
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:

First of all check your disk space using below command.

# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        992M   56K  992M   1% /dev
tmpfs          1002M     0 1002M   0% /dev/shm
/dev/xvda1       20G  4.8G   15G  25% /

If you have enough space available on your / partition now check inodes using below command.

# df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
devtmpfs        253716    428  253288    1% /dev
tmpfs           256438      1  256437    1% /dev/shm
/dev/xvda1     1310720 162906 1147814   13% /

If you get the 100% disk usage and IUse  inodes usage then you will need to increase the disk space and inodes on the server.

Thank you! for visiting Look Linux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment