--- In [email protected], Mike Brandonisio <[EMAIL PROTECTED]> wrote: > Hi, > > I'm running a Fedora core 2 VPS. I have been getting QoS alerts > saying that I am over limit for Disk Inodes and then an alert that > seems to correct itself. I'm thinking that this is some kind of temp > files being generated but I cannot find anything in the logs for > message or mail that coincides with the alert times. > > Does anyone know a technique or script that would tell me what user > or folder is using more than a predetermined number of disk inodes? >
You can use ls -i (or ls -li) to report the inodes used by file. To find inode usage by user, you could enable quotas on the filesystem in question and use "repquota". There's a lot of good documentation on enabling quotas on the internet, but here's a quick run-through (test on a non-production system and make sure no one's using the partition at the time with "fuser"): Edit /etc/fstab and add "usrquota" to the mount options for the partition in question. Remount the partition without unmounting it with "mount -o remount /[mount point]" "touch /[mount point]/aquota.user" to create a place for the quota db. Run "quotacheck" to initialize the quota db (will return an error that can be ignored). Use "edquota -u [user]" to assign quotas to users. Use "repquota" to see who's using all the inodes. Martin ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12holldef/M=362329.6886308.7839368.1510227/D=groups/S=1705006580:TM/Y=YAHOO/EXP=1124301855/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
