今天磁盘报警,空间不足,找了很久没查出来。
下面说下我的操作步骤
[root@monitor /]# du -sch /* 6.6M /bin 39M /boot 161M /data 164K /dev 12M /etc 115M /home 240M /lib 25M /lib64 20K /lost+found 4.0K /media 4.0K /mnt 291M /opt du: cannot access `/proc/27198/task/27198/fd/4‘: No such file or directory du: cannot access `/proc/27198/task/27198/fdinfo/4‘: No such file or directory du: cannot access `/proc/27198/fd/4‘: No such file or directory du: cannot access `/proc/27198/fdinfo/4‘: No such file or directory 0 /proc 206M /root 11M /sbin 4.0K /selinux 4.0K /srv 0 /sys 1.1M /tmp 2.6G /usr 1.4G /var 5.1G total
一共使用了5.1G磁盘,但是检查出已经使用15G
[root@monitor /]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 20G 15G 4.3G 78% / tmpfs 1.9G 4.0K 1.9G 1% /dev/shm
很奇怪,问群里的大神说是XEN虚拟机运行java会遇到此bug,重启java程序就恢复正常
[root@monitor /]# killall java [root@monitor /]# ps -ef |grep java root 27766 26125 0 11:34 pts/0 00:00:00 grep java [root@monitor /]# /etc/init.d/elasticsearch start Starting elasticsearch: [ OK ] [root@monitor /]# cd /usr/local/src/logstash-1.4.2/ [root@monitor logstash-1.4.2]# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 20G 5.2G 14G 28% / tmpfs 1.9G 4.0K 1.9G 1% /dev/shm [root@monitor logstash-1.4.2]# bin/logstash -f conf/indexer.conf & [1] 28116
本文出自 “charlie_cen” 博客,请务必保留此出处http://charlie928.blog.51cto.com/3741218/1559329
原文地址:http://charlie928.blog.51cto.com/3741218/1559329