zoukankan      html  css  js  c++  java
  • 磁盘空间占满inode结点没用完 并删除了文件但是释放不了

    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)
    
  • 相关阅读:
    服务器安装宝塔面板
    CentOS7操作SSH/SSHD服务(查看/启动/重启/自启)
    CentOS服务器升级Linux版本
    阿里云云服务器漏洞修复
    Linux服务器安装Docker
    服务器安装Nginx
    服务器端简单Demo
    实现博客内容折叠
    [转]珍惜时间,做好规划——致大学过半的你们
    【LeetCode】9. 回文数
  • 原文地址:https://www.cnblogs.com/bass6/p/5965577.html
Copyright © 2011-2022 走看看