磁盘空间占满inode结点没用完 并删除了文件但是释放不了

时间:2021-06-05 16:16:32

 

lsof  |grep delete

lsof(list system open file )可显示系统打开的文件,以root身份运行。

很多时候文件正在被占用,即使删除了,也无法释放空间,只有停 了进程 才能释放空间!!

l

[root@xxxWEB-INF]# lsof |grep delete
zabbix_ag  1154  zabbix    1w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1154  zabbix    2w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1163  zabbix    1w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1163  zabbix    2w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1164  zabbix    1w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1164  zabbix    2w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1165  zabbix    1w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1165  zabbix    2w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1166  zabbix    1w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1166  zabbix    2w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1167  zabbix    1w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
zabbix_ag  1167  zabbix    2w      REG              202,1       1732       3580 /var/log/zabbix/zabbix_agentd.log-20160827 (deleted)
salt-mini  1217    root    6w      REG              202,1     595636       3571 /var/log/salt/minion-20160828 (deleted)
bash      10269    root  cwd       DIR             202,16          0    8390131 /data1/apps/xxxx/webapps/bihi/WEB-INF (deleted)
lsof      17325    root  cwd       DIR             202,16          0    8390131 /data1/apps/xxxxx/webapps/bihi/WEB-INF (deleted)
grep      17326    root  cwd       DIR             202,16          0    8390131 /data1/appsxxx8/webapps/bihi/WEB-INF (deleted)
lsof      17327    root  cwd       DIR             202,16          0    8390131 /data1/apps/xxxx/webapps/bihi/WEB-INF (deleted)