我有一台运行 CentOS-6 和 Linux 2.6.32-696.18.7.el6.x86_64(是的,很旧)的主机,并且我的根文件系统上的磁盘空间不足。
文件系统的大小为 16G,du
显示文件使用了大约 3G。当然,我运行了lsof +L1
,找到了保存之前已取消链接的大日志文件的进程(是的,有几个这样的进程,所以我杀死了它们),但文件系统仍然已满,任何东西都可以写入它(不,inode 很好,没有可用的块)。
lsof +L1
仍然显示一些文件,但这些文件占用的空间并不大,所以我很确定我可以忽略它:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME
init 1 root 9r REG 253,0 10406312 0 131692 /var/lib/sss/mc/initgroups (deleted)
pickup 2761 postfix 8r REG 253,0 10406312 0 134123 /var/lib/sss/mc/initgroups (deleted)
dbus-daem 5232 dbus 4r REG 253,0 10406312 0 131692 /var/lib/sss/mc/initgroups (deleted)
hald 5271 haldaemon 19r REG 253,0 10406312 0 131692 /var/lib/sss/mc/initgroups (deleted)
ntpd 5528 ntp 4r REG 253,0 10406312 0 131730 /var/lib/sss/mc/initgroups (deleted)
qmgr 5631 postfix 8r REG 253,0 10406312 0 131730 /var/lib/sss/mc/initgroups (deleted)
crond 5655 root 8r REG 253,0 8406312 0 131792 /var/lib/sss/mc/passwd (deleted)
sssd 9042 root 16r REG 253,0 10406312 0 134123 /var/lib/sss/mc/initgroups (deleted)
sssd_be 9045 root 18r REG 253,0 10406312 0 134123 /var/lib/sss/mc/initgroups (deleted)
qemu-kvm 9606 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 16799 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 17419 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
polkitd 28420 root 8r REG 253,0 10406312 0 134123 /var/lib/sss/mc/initgroups (deleted)
qemu-kvm 28802 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 30171 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 32110 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 32419 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 32563 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 34762 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 37823 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 39088 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
qemu-kvm 41613 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
nrpe 45821 nrpe 4r REG 253,0 10406312 0 134123 /var/lib/sss/mc/initgroups (deleted)
sshd 52715 root 4w REG 253,0 10406312 0 134123 /var/lib/sss/mc/initgroups (deleted)
qemu-kvm 55329 root txt REG 253,0 4056888 0 397695 /usr/libexec/qemu-kvm (deleted)
我还应该尝试做什么(我很确定重新启动会有所帮助,但我想避免这样做)?
谢谢!