linux 删除文件,df空间不变化
今天遇到一个问题,就是linux服务器空间满了,可是删除了软件后。
查看空间,没有变化 ???啥情况
那么去查看删除的情况吧。
[root@VM_0_4_centos usr]# lsof|grep deleted plymouthd 215 root txt REG 0,1 86288 6382 /usr/sbin/plymouthd (deleted) java 1415 root 1w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 root 2w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 root 8w REG 253,1 19024896000 666786 /usr/local/tomcat2/logs/catalina.2018-10-02.log (deleted) java 1415 1417 root 1w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 1417 root 2w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 1417 root 8w REG 253,1 19024896000 666786 /usr/local/tomcat2/logs/catalina.2018-10-02.log (deleted) java 1415 1418 root 1w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 1418 root 2w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 1418 root 8w REG 253,1 19024896000 666786 /usr/local/tomcat2/logs/catalina.2018-10-02.log (deleted) java 1415 1419 root 1w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted) java 1415 1419 root 2w REG 253,1 19023285539 664578 /usr/local/tomcat2/logs/catalina.out (deleted)
看着,就是我删除的文件,可是好像还在进程中,没有断开,那就难怪了。
这里就只能手动把这个进行的服务器kill 掉,在去重启启动了
kill -9 1415
之后再查看,OK,空间回复了。