11G/40G的使用率达到100%,这是怎么可能的呢?

11G/40G的使用率达到100%,这是怎么可能的呢?

为什么会出现以下统计数据:已使用 11G,大小超过 40G,没有更多可用空间。现在我无法发送电子邮件,因为我收到:发送邮件时出错。邮件服务器响应:写入假脱机文件时出错。请检查消息并重试。

root@ip-a-b-c-d [~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/vzfs              40G   11G     0 100% /
none                  512M  4.0K  512M   1% /dev

你能帮我解决这个问题吗?

root@ip-a-b-c-d [~]# df -ih
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/vzfs               8.6M    420K    8.2M    5% /
none                    128K      95    128K    1% /dev

root@ip-a-b-c-d [~]# lsof +L1
COMMAND     PID     USER   FD   TYPE DEVICE SIZE/OFF NLINK    NODE NAME
dovecot   21906     root  111u   REG   0,30        0     0  758435 (deleted) /var/run/dovecot/login-master-notifyd227fbaeb43252e5
dovecot   21906     root  128u   REG   0,30        0     0  758440 (deleted) /var/run/dovecot/login-master-notifyc9b5bae7b2edcb9e
dovecot   21906     root  131u   REG   0,30        0     0  758442 (deleted) /var/run/dovecot/login-master-notify7fc65ebf8eeeaa52
pop3-logi 21914 dovenull    4u   REG   0,30        0     0  758435 (deleted) /var/run/dovecot/login-master-notifyd227fbaeb43252e5
imap-logi 21915 dovenull    4u   REG   0,30        0     0  758442 (deleted) /var/run/dovecot/login-master-notify7fc65ebf8eeeaa52
pop3-logi 21919 dovenull    4u   REG   0,30        0     0  758435 (deleted) /var/run/dovecot/login-master-notifyd227fbaeb43252e5
imap-logi 21920 dovenull    4u   REG   0,30        0     0  758442 (deleted) /var/run/dovecot/login-master-notify7fc65ebf8eeeaa52
httpd     22365     root   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
httpd     22373   nobody   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
httpd     22374   nobody   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
httpd     22375   nobody   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
httpd     22376   nobody   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
httpd     22377   nobody   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
httpd     24097   nobody   44w   REG   0,30        0     0 1597059 (deleted) /usr/local/apache/logs/ssl_mutex
mysqld    25732    mysql    4u   REG   0,30        0     0  693076 (deleted) /tmp/ibaGzgNW
mysqld    25732    mysql    5u   REG   0,30        0     0  693077 (deleted) /tmp/ibkJLbId
mysqld    25732    mysql    6u   REG   0,30        0     0  693078 (deleted) /tmp/ib0oe7Cu
mysqld    25732    mysql    7u   REG   0,30        0     0  693079 (deleted) /tmp/ibKOvzu2
mysqld    25732    mysql   11u   REG   0,30        0     0  694204 (deleted) /tmp/ibKKlSrj

答案1

如果您删除某个进程打开的大型文件(例如,大型日志文件就是一个常见示例),则可能会发生这种情况。如果应用程序不重新打开这些文件,则旧文件句柄会保留下来,并且无法回收空间。

如果您知道删除了哪个文件以及哪个进程拥有它们,则可以尝试重新启动该进程。或者,重新启动服务器,之后空间应该会释放

相关内容