Linux root space disappears

Source: Internet
Author: User
Tags disk usage


Receive a space alarm to view disk usage:

Df-h

File system capacity has been used with available% mount points

/dev/sda2 8.2G 7.4G 824M 91%/

Tmpfs 32G 0 32G 0%/dev/shm

/dev/sda3 814G 281G 533G 35%/Home


Look at the size of the system and the capacity is 5G, inexplicable 3G where to go

#/usr/sbin/lsof | grep deleted

COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

Dbus-daem 3798 dbus txt REG 8,2 306992 129307/bin/dbus-daemon (Deleted)

SendMail 12457 smmsp 3uW REG 8,2 2726449152 461233/var/spool/clientmqueue/dft1peu79a012457 (d eleted)

Salt-mini 13932 root 3w REG 8,2 1090 129441/var/log/salt/minion.1 (deleted)

Salt-mini 13932 root 6u REG 8,2 4096 1007868/TMP/FFIOYGJJP (deleted)

Java 15894 root 8w REG 8,2 194 186377/usr/local/tomcat/logs/localhost.2015-02-11 . log (Deleted)

Java 15894 root 9w REG 8,2 0 186379/USR/LOCAL/TOMCAT/LOGS/MANAGER.2015-02-11.L OG (deleted)

Java 15894 root 10w REG 8,2 0 186380/usr/local/tomcat/logs/host-manager.2015-02 -11.log (Deleted)

PHP 18282 Root 1w REG 8,2 169519016 1007917/tmp/37_agent_logs.txt (Deleted)

Mysqld 19046 MySQL 5u REG 8,3 0 84754434/home/mysqldata/tmp/iboqmx4t (deleted)

Mysqld 19046 MySQL 6u REG 8,3 0 84754435/home/mysqldata/tmp/iblk1saz (deleted)

Mysqld 19046 MySQL 7u REG 8,3 0 84754436/home/mysqldata/tmp/ibrnpyfu (deleted)

Mysqld 19046 MySQL 8u REG 8,3 0 84754437/home/mysqldata/tmp/ibp28syz (deleted)

Mysqld 19046 MySQL 12u REG 8,3 0 84754438/home/mysqldata/tmp/ib9lzprv (deleted)

Mysqld 19046 mysql 330u REG 8,3 344400 84754439/home/mysqldata/tmp/mlfsrphn (Deleted)

Mysqld 19046 mysql 341u REG 8,3 627873 95371267/home/mysqldata/tmp/ml79iaoc (Deleted)

Mysqld 19046 mysql 342u REG 8,3 660513 95371268/home/mysqldata/tmp/mlchnstv (Deleted)

Mysqld 19046 mysql 362u REG 8,3 505386 95371269/home/mysqldata/tmp/ml5mlvrl (Deleted)

Mysqld 19046 mysql 363u REG 8,3 470919 95371270/home/mysqldata/tmp/ml5wolxx (Deleted)

Mysqld 19046 mysql 366u REG 8,3 423467 95371271/home/mysqldata/tmp/mlxhbexo (Deleted)

Mysqld 19046 mysql 449u REG 8,3 338708 95371275/home/mysqldata/tmp/mlqnh97e (Deleted)

Mysqld 19046 mysql 457u REG 8,3 307053 95371272/home/mysqldata/tmp/mlxrxi4b (Deleted)

Mysqld 19046 mysql 474u REG 8,3 202805 84754440/home/mysqldata/tmp/mljcsyfm (Deleted)

Mysqld 19046 mysql 475u REG 8,3 195019 103235585/home/mysqldata/tmp/mlj6u7kz (Deleted)

Zabbix_ag 20583 Zabbix 1w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20583 Zabbix 2w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20583 Zabbix 3wW REG 8,2 5 1007929/tmp/zabbix_agentd.pid (deleted)

Zabbix_ag 20585 Zabbix 1w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20585 Zabbix 2w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20585 Zabbix 3w REG 8,2 5 1007929/tmp/zabbix_agentd.pid (deleted)

Zabbix_ag 20586 Zabbix 1w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20586 Zabbix 2w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20586 Zabbix 3w REG 8,2 5 1007929/tmp/zabbix_agentd.pid (deleted)

Zabbix_ag 20587 Zabbix 1w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20587 Zabbix 2w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20587 Zabbix 3w REG 8,2 5 1007929/tmp/zabbix_agentd.pid (deleted)

Zabbix_ag 20588 Zabbix 1w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20588 Zabbix 2w REG 8,2 1048596 1007842/tmp/zabbix_agentd.log.old (Deleted)

Zabbix_ag 20588 Zabbix 3w REG 8,2 5 1007929/tmp/zabbix_agentd.pid (deleted)

Zabbix_ag 20589 Zabbix 3w REG 8,2 5 1007929/tmp/zabbix_agentd.pid (deleted)


At the end of this (deleted) Note that this file has been deleted, but because SendMail this process opened the file, so there is still a file on the hard disk, but can not be recognized by the file system, and the DF command in the calculation of used space, this part of the file will be included. So restart SendMail solution .


This article is from the "OPS rookie" blog, please be sure to keep this source http://ckl893.blog.51cto.com/8827818/1682276

Linux root space disappears

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.