Linux服务器,查看日志发现程序没法继续写文件,可是用df -h查看磁盘容量还有剩余。node
排查思路:怀疑是机器的inode节点被占满,使用df -i查看磁盘inode节点使用状况,果真是inode节点满了。服务器
进行以下步骤进行排查:app
1,df -i查看磁盘节点使用状况,查看到inode节点已满。spa
[aig_sg_automation_test@xen18-52 aig_sg_automation_test]$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-LogVol00
3000592 462749 2537843 16% /
tmpfs 1023253 5 1023248 1% /dev/shm
/dev/xvda1 51200 42 51158 1% /boot
172.16.29.199:/backup100/SoftWare
4487457984 552476 4486905508 1% /mnt日志
2,进入到可能的目录,运行for i in ./*; do echo i;findi;findi | wc -l; done统计当前目录使用节点的状况xml
3,发现io
/usr/local/was/IBM/WebSphere/AppServer/profiles/aig_sg_automation_test/EBAO_ARCH_HOME/print_archive_data/document/pdfclass
天天有10000+ pdf生成,直接删除历史文件,pdf
。test