今天磁盘报警,空间不足,找了很久没查出来。
下面说下我的操作步骤
[[email protected] /]# 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
[[email protected] /]# 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程序就恢复正常
[[email protected] /]# killall java [[email protected] /]# ps -ef |grep java root 27766 26125 0 11:34 pts/0 00:00:00 grep java [[email protected] /]# /etc/init.d/elasticsearch start Starting elasticsearch: [ OK ] [[email protected] /]# cd /usr/local/src/logstash-1.4.2/ [[email protected] 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 [[email protected] logstash-1.4.2]# bin/logstash -f conf/indexer.conf & [1] 28116
时间: 2024-09-30 03:50:53