The/OPT partition is full of web logs, causing some services to not function properly, so rm-fr off these logs (nearly 11GB), but the service is still not back to normal, with DF-HT, the partition occupies or 100%:
[[email protected] opt]# df-ht file system type capacity used available% mount point/dev/sda9 ext3 996M 228M 717M 25%//dev/sd A10 ext3 27G 12G 14G 47%/var/dev/sda8 ext3 996M 34M 911M 4%/home/dev/sda7 ext3 2.0G 36M 1.9G 2%/temp/dev/sda6 ext3 3.0G 2.6G 228M 92%/usr/dev/sda3 ext3 19G 19G 0 100%/opt/dev/sda1 Ext3 99M 12M 83M 12%/boottmpfs tmpfs 2.0G 0 2.0G 0%/dev/shm
But with the du-sh/opt command, see:
[email protected]/]# du-sh/opt/8.3g/opt/
These files should be deleted, but the space is not released, of course, the restart can be resolved, but will cause all the business disruption on the server, you can use the following command to view the deletion of file occupancy:
[[email protected] opt]# lsof |grep deletemysqld_sa 11317 root cwd DI R 8,6 0 102107/usr/local/mysql (deleted) mysqld _sa 11317 root 255r reg 8,6 1 3620 102182/usr/local/mysql/bin/mysqld_safe (deleted) mysqld 11353 MySQL t XT REG 8,6 29382763 102138/usr/local/mysql/bin/mysql D (deleted) mysqld 11353 MySQL 5u reg &NBS p;8,9 0  58761/TMP/IBPFBHSA (deleted) mysqld 11353   ; MySQL 6u reg 8,9 0 &N Bsp 58771 /tmp/ibqomnag (Deleted) mysqld 11353 MySQL 7u reg &NBSP ; 8,9 0  58772/TMP/IBN4C4RL (deleted) mysqld 11353 MySQL 8u reg 8,9 &NBS P 0  58781/TMP/IBKWP8ZR (deleted) mysqld 11353 MySQL 12u & nbsp reg 8,9 0  58782/TMP/IBNQRZSX (dele Ted) Java 16961 root 1w reg & nbsp;8,3 5822263296 457562/opt/tomcat/logs/catalina.out (deleted) Java 16961 &NB Sp root 2w reg 8,3 5822263296 457562/opt/tom Cat/logs/cAtalina.out (Deleted) Java 16961 root 12w reg &NB Sp 8,3 5469261824 197191/opt/tomcat/logs/catalina.2013-01-02.log (deleted) Java & nbsp;16961 root 13w reg 8,3 2166784 197192/opt/tomcat/logs/localhost.2013-01-02.log (deleted) Java 16961 &NB Sp;root 14w reg 8,3 0 &NBSP ; 391681/opt/tomcat/logs/manager.2013-01-02.log (Deleted) Java 16961 root 15w reg 8,3 0 391682/OPT/T Omcat/logs/host-manager.2013-01-02.log (Deleted)
You can see that these files are deleted, but still occupy space, and now just kill the processes:
[[email protected]/]# kill-9 16961[[email protected]/]# df-ht file system type capacity used available% mount point/dev/sda9 ext3 996M 228M 717M 25%//dev/sda10 ext3 27G 12G 14G 47%/var/dev/sda8 ext3 996M 34M 911M 4%/ho ME/DEV/SDA7 ext3 2.0G 36M 1.9G 2%/temp/dev/sda6 ext3 3.0G 2.6G 228M 92%/usr/dev/sda3 ext3 19G 8.4G 9.6G 47%/opt/dev/sda1 ext3 99M 12M 83M 12%/boottmpfs tmpfs 2.0G 0 2.0G 0%/dev /shm
Problem solved, the service also resumed finishing ...
Linux Disk Occupation 100% workaround