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

Re: Filespace exhaustion on '/' partition



On 2014-05-11 18:02 +0200, Ron Leach wrote:

> server4:/# du / -hx --max-depth=1
> 0       /var
> 0       /nfs
> 1.0K    /boot
> 1.0K    /boot2
> 0       /home
> 4.0K    /tmp
> 0       /usr
> 80M     /etc
> 0       /media
> 64M     /lib
> 5.0M    /sbin
> 0       /selinux
> 4.1M    /bin
> 0       /dev
> 0       /proc
> 12K     /mnt
> 12M     /root
> 0       /sys
> 0       /srv
> 0       /opt
> 165M    /
> server4:/#
>
> This doesn't suggest anything like 2.8GB, does it?  (du does include
> the content of sub-directories in its calculations, doesn't it?)

Right, but it does not count unlinked but still open files.

> I'll try and look round the filesystem, I imagine xfs will log
> something somewhere if it notices something wrong.  I would like to
> check the fs; if I recall, the system checks the xfs filesystem during
> start up so, perhaps later today, I could take the system offline and
> reboot it to force a check.

Rebooting also frees up the space of unlinked files, but so does killing
the processes which keep them open.  On a long running system there can
be quite a lot of those files, though:

# lsof | grep deleted | wc -l
2058

Cheers,
       Sven


Reply to: