»{ÃÑinode

 

 

 

inodeº¡¤F?

­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
34
/var/spool
643767619
/var/tmp
1
/var/tux
1
/var/webmin
6
/var/www
5635


³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´N­n¥Î

#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
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
*/5 * * * * root run-parts /etc/cron.5minly > /dev/null 2>&1
01 * * * * root run-parts /etc/cron.hourly > /dev/null 2>&1
02 0 * * * root run-parts /etc/cron.daily > /dev/null 2>&1
22 4 * * 0 root run-parts /etc/cron.weekly > /dev/null 2>&1
42 4 1 * * root run-parts /etc/cron.monthly > /dev/null 2>&1


 


/var/spool/mail/root

³o­ÓÀÉ®×´N¬Oroot³o­Ó±b¸¹ªº©Ò¦³«H¥ó