码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-10-16 01:08:17      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

 

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)

 

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

标签:

原文地址:http://www.cnblogs.com/bass6/p/5965577.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!