Y¥X²{ºÏºÐªÅ¶¡¤£¨¬¡A©Î¬OµLªk¼g¤Jªº°T®§
No space left on device |
³o¥i¯à¬O¬YºÏ°Ï¤§¨Ï¥ÎªÅ¶¡¤wº¡¡A©Î¬Oinode¤wº¡¡A³o®É¥i¥Îdf -h ¤Îdf -i (df -ih)¬Ý¬Ý¡A¬O§_¤wº¡¡C
#df -h Àɮרt²Î ®e¶q ¤w¥Î ¥i¥Î ¤w¥Î% ±¾¸üÂI /dev/sda1 26G 438M 24G 2% / tmpfs 2.0G 0 2.0G 0% /dev/shm /dev/sda6 30G 896M 27G 4% /home /dev/sda2 30G 2.5G 26G 9% /usr /dev/sda3 30G 173M 28G 1% /usr/local /dev/sda5 30G 789M 27G 3% /var |
¨Ï¥ÎªÅ¶¡¥¼º¡¡C
#df -ih Àɮרt²Î Inode I¤w¥Î I¥i¥Î I¤w¥Î% ±¾¸üÂI /dev/sda1 1.6M 5.1K 1.6M 1% / tmpfs 493K 1 493K 1% /dev/shm /dev/sda6 1.9M 6.6K 1.9M 1% /home /dev/sda2 1.9M 112K 1.8M 6% /usr /dev/sda3 1.9M 33 1.9M 1% /usr/local /dev/sda5 1.9M 1.9M 0 100% /var |
ì¨Ó¬O/varºÏ°Ïinodeº¡¤F¡C
¦A¦C¥X¬O/var¤U¨ºÓ¥Ø¿ýinode¥Î³Ì¦h(ª½¨ì§ä¨ì³Ì¦hªº¨ºÓ¬°¤î)
#for i in /var/www/*; do echo $i; find $i | wc -l; done
²¤ /var/run
|
³q±`¬O¥H¤U³o¨âӥؿý
/var/spool/clientmqueue
³oùرªºÀɮ׬O¦]¬°·ícron°õ¦æ®É ·|±N¬ÛÃöµ²ªG¥Hmail¶Ç°eµ¹°õ¦æ¨¥÷ªº±b¸¹¡A
¥i¬O·ísendmail ¨S¦³±Ò°Ê ¨º»ò©Ò¦³«H¥ó´N·|¼È¦s¦b³oӥؿý¡C
Y³oӥؿýùتºªF¦è¤w¦h¨ìµLªk¥Îrm * -rf²M°£®É¡A´Nn¥Î
#ls | xargs rm -rf
|
¦³cronªº¤@¨Ç³]©w ¥H«á³o°ÝÃD´NÁÙ¬O·|µo¥Í¡A¦b¤£»Ýn±Nµ²ªG¶Ç°eªº±Æµ{¤u§@«á±¥[¤W > /dev/null 2>&1¡A©Î¬Oª½±µ±Ncrontab¤¤ªºMAILTO µ¹mark±¼(¹êÅ礤2016/09/08)¡A¤W¥y¸Ü¹êÅ祢±Ñ¡C
SHELL=/bin/bash # run-parts
|
/var/spool/mail/root
³oÓÀÉ®×´N¬Oroot³oÓ±b¸¹ªº©Ò¦³«H¥ó