[root@name17 nrpe-2.12]# /etc/init.d/xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
touch: cannot touch `/var/lock/subsys/xinetd': No space left on device
root@name17 nrpe-2.12]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.7G 187M 9.0G 2% /
/dev/sda1 190M 12M 169M 7% /boot
none 1014M 0 1014M 0% /dev/shm
/dev/sda6 4.9G 285M 4.3G 7% /home
/dev/sda8 93G 49G 39G 56% /opt
/dev/sda2 20G 3.1G 16G 17% /usr
/dev/sda5 4.9G 2.7G 1.9G 60% /var
磁盘空间还有很大的剩余, 后来想了一下, 这个不一定是磁盘满了, 也可能是inode用完了.
真的是inode用完了,磁盘没法再写入新的内容了,这个是某些临时的小文件太多了,把inode用完了,把它删掉就行了。
[root@name17 spool]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 1281696 6875 1274821 1% /
/dev/sda1 50200 39 50161 1% /boot
none 223842 1 223841 1% /dev/shm
/dev/sda6 640000 1904 638096 1% /home
/dev/sda8 12271616 38258 12233358 1% /opt
/dev/sda2 2562240 158225 2404015 7% /usr
/dev/sda5 640000 640000 0 100% /var
#cd /var/spool/clientmqueue/
#ls | xargs rm -rf