/var 100% used error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
 
We've run into a problem if we try to install an rpm file when the /var partition is full.  It seems like the rpm lock file aren't removed after a failure in this scenario. 
 
Here's a summary of the steps below:
1) filled up /var until there is no room
2) tried to install the rpm, which fails
3) cleared up room in /var
4) tried to install the rpm, which fails
5) removed the lock file
6) tried to install the rpm, which worked.
 
 
What is the best solution to this?  Should the application remove the lock file before/after the installation?  Should RPM remove the lock file when a failure is detected?
 
Thank you.
 
 
root@unknown:/var> df /var
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg00-lv03
                         15863     15863         0 100% /var
root@unknown:/var> ls -l /var/lib/rpm
total 0
root@unknown:/var>  rpm -i --force --ignoresize --nodeps /download/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm
rpmdb: write: 0x7ffed370, 8192: 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
warning: /download/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm: Header V3 DSA signature: NOKEY, key ID cf6ea890
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm
root@unknown:/var>
root@unknown:/var>
root@unknown:/var> ls -l /var/lib/rpm
total 0
-rw-r--r--  1 root root 0 Apr 10 15:31 __db.000
-rw-r--r--  1 root root 0 Apr 10 15:31 __db.001
root@unknown:/var> df /var
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg00-lv03
                         15863     15863         0 100% /var
root@unknown:/var> rm /var/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm*
root@unknown:/var>
root@unknown:/var> df /var
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg00-lv03
                         15863      3248     12615  21% /var
root@unknown:/var>
root@unknown:/var>  rpm -i --force --ignoresize --nodeps /download/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 - Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
warning: /download/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm: Header V3 DSA signature: NOKEY, key ID cf6ea890
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm
root@unknown:/var>
root@unknown:/var>
root@unknown:/var> df /var
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg00-lv03
                         15863      3248     12615  21% /var
root@unknown:/var>
root@unknown:/var>
root@unknown:/var>
root@unknown:/var> rm /var/lib/rpm/*
root@unknown:/var>
root@unknown:/var>
root@unknown:/var>  rpm -i --force --ignoresize --nodeps /download/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm
warning: /download/dapsc_rpm-WMX010.AP230.BLD01-1.ppc.rpm: Header V3 DSA signature: NOKEY, key ID cf6ea890
*** EXECUTING dapsc_rpm.pre ***
/var/tmp/rpm-tmp.26220: line 2: addgroup: command not found
/var/tmp/rpm-tmp.26220: line 3: adduser: command not found
*** EXECUTING preinstall script ***
*** EXECUTING dapsc_rpm.post ***
chown: cannot access `1/inactive/dapsc.tgz': No such file or directory
chmod: cannot access `1/inactive/dapsc.tgz': No such file or directory
*** EXECUTING postinstall script ***
root@unknown:/var>
root@unknown:/var> uname -a
Linux unknown 2.6.10-WR1.2ci_pne #1 Tue Dec 19 11:48:48 CST 2006 ppc GNU/Linux
root@unknown:/var> rpm --version


It’s tax season, make sure to follow these few simple tips Check it out!
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux