My Oracle Support Banner

Oracle Linux: Command "df -h" Shows Negative Values for /var and Cannot Run Yum Commands (Doc ID 2747919.1)

Last updated on JANUARY 29, 2021

Applies to:

Linux OS - Version Oracle Linux 7.5 and later
Information in this document applies to any platform.

Symptoms

Running command #df -h shows negative values for used space on /var file system.

[root@hostname ~]# df -h /var

Filesystem                       Size    Used   Avail   Use%  Mounted on
/dev/mapper/VolGroup00-LogVol01   68G    -16T     17T     -     /var


Another thing noticed was running yum command to install Sosreport does not proceed with installation and gives Input/Output error under /var/lib:

[root@dllaboel7rac2v /]# yum install sos

Resolving Dependencies
--> Running transaction check
---> Package sos.noarch 0:3.9-4.0.1.el7_9 will be installed
--> Processing Dependency: python2-futures for package: sos-3.9-4.0.1.el7_9.noarch
--> Running transaction check
---> Package python2-futures.noarch 0:3.1.1-5.el7 will be installed
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 239, in main
(result, resultmsgs) = base.buildTransaction()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1198, in buildTransaction
(rescode, restring) = self.resolveDeps()
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 902, in resolveDeps
for po, dep in self._checkFileRequires():
File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1193, in _checkFileRequires
self.installedFileProviders = self.rpmdb.fileRequiresData()
File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 994, in fileRequiresData
rpmdbv = self.simpleVersion(main_only=True)[0]
File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1228, in simpleVersion
if 'checksum_type' in ydbi and 'checksum_data' in ydbi:
File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1949, in __contains__
x = self.get(attr)
File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1979, in get
res = self._read(attr)
File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1885, in _read
info = misc.stat_f(fn, ignore_EACCES=True)
File "/usr/lib/python2.7/site-packages/yum/misc.py", line 974, in stat_f
return os.stat(filename)
OSError: [Errno 5] Input/output error: '/var/lib/yum/yumdb/c/9a6b6850057d41a57be64990a472c638f46a33cc-cryptsetup-libs-2.0.3-6.el7-x86_64/checksum_type' 

[root@hostname /]#

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.