"du -s" "df -h" disk size, disk space false reports

 process Nautilus (the file manager) causing all deleted files as occupying space.

If we list the files that are open (“lsof”, I think), we get something as:

If we do “lsof –P –n | grep deleted”

[root@testsvr /]# lsof -n -P | grep deleted
gconfd-2   3337      root   13wW     REG        8,3         601   28082186 /tmp/gconfd-root/lock/0t1378345533ut213785u0p3337r1214789037k3214861320 (deleted)
nautilus   3363      root   27r      REG        8,3 28078331420   10944714 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   28r      REG        8,3 28078331420   10944714 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   29r      REG        8,3 28078331420   10944714 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   30r      REG        8,3 28078331420   10944714 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   31r      REG        8,3 28078331420   10944714 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   32r      REG        8,3 28078331420   10944714 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   33r      REG        8,3 20507404695   10944688 /root/.Trash/error_log.2 (deleted)
nautilus   3363      root   34r      REG        8,3 20507404695   10944688 /root/.Trash/error_log.2 (deleted)
nautilus   3363      root   36r      REG        8,3   114683903   10944652 /var/log/httpd/access_log.5 (deleted)
nautilus   3363      root   37r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   38r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   39r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   40r      REG        8,3    98996284   10944659 /var/log/httpd/access_log.5 (deleted)
nautilus   3363      root   41r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   42r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   43r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   44r      REG        8,3 18727289081   10944664 /root/.Trash/error_log.1 (deleted)
nautilus   3363      root   45r      REG        8,3    98996284   10944659 /var/log/httpd/access_log.5 (deleted)
nautilus   3363      root   46r      REG        8,3    98996284   10944659 /var/log/httpd/access_log.5 (deleted)
nautilus   3363      root   47r      REG        8,3    98996284   10944659 /var/log/httpd/access_log.5 (deleted)
nautilus   3363      root   48r      REG        8,3    98996284   10944659 /var/log/httpd/access_log.5 (deleted)
nautilus   3363      root   49r      REG        8,3    97498769   10944639 /var/log/httpd/access_log.5 (deleted)
gconfd-2  10151      root   13wW     REG        8,3         610   28083030 /tmp/gconfd-root/lock/0t1383082294ut808969u0p10151r763341024k3214087224 (deleted)
gconfd-2  14095      root   13wW     REG        8,3         610   28082221 /tmp/gconfd-root/lock/0t1386023553ut990280u0p14095r2047805769k3213238760 (deleted)
gconfd-2  14277      root   13wW     REG        8,3         610   28803075 /tmp/gconfd-root/lock/0t1384534124ut289991u0p14277r1153037950k3220905272 (deleted)
gconfd-2  19597      root   13wW     REG        8,3         610   31883265 /tmp/gconfd-root/lock/0t1388992438ut553876u0p19597r728980592k3219155864 (deleted)
gconfd-2  19618      root   13wW     REG        8,3         610   28053732 /tmp/gconfd-root/lock/0t1390247226ut235714u0p19618r150210693k3218985176 (deleted)
[root@testsvr /]# 


I killed the process 3363, but did not recover these files.  I am working on how to find it.

But the file descriptors had gone zombie state unable to be defined.
Now, the “du –k –s /“ gives an error on it.

[root@testsvr ~]# du -s -k /
du: `/proc/3363/task/3363/fd': No such file or directory
du: `/proc/3363/fd': No such file or directory
28997454 /


I think I created a problem.  A reboot on a weekend may be needed to verify this “invalid file descriptors locking the space”.
Let me explore more on this issue.

=============
Subject: File space on testsvr

When I do a df –h command on testsvr it states that  roughly 90GB are being used.

Yet when I do a du –sh / command it shows that the root directory only has 28G being used.


I am wondering if there is a hidden/temporary file causing more space to be used than indicated.

Popular Posts