Disk Usage /var partition
I have a control panel running on my box, that keeps warning me my /var partitiion is at 94% usage. It says the partition is 251 mb, however I cant account for all that, when I do a du command in / it only shows my /var partition is 58MB
Anyone have any idea what is going on here? Any way I can find out what other partitions are using /var ? I want to kill the guy who partitioned this server hehe |
What du command are you using? Try this as root:
du -hs /var What about the output from: df -h |
du -hs /var
54M /var df -h Filesystem Size Used Avail Use% Mounted on /dev/hda6 372M 99M 254M 28% / /dev/hda1 45M 14M 29M 31% /boot /dev/hda5 24G 6.3G 17G 27% /home /dev/hda2 9.6G 4.8G 4.3G 53% /usr /dev/hda7 251M 206M 31M 87% /var Shows the same thing my CP does, however I still dont know where all that stuff is :[ |
Try running fsck:
cd / umount /var fsck /var badblocks -s /dev/hdxY replace x and Y with the valuse for your /var partition (you can get it from /etc/fstab) |
What exactly does that do?
|
edit: nm, umount works
Is there any command to see what other partitions are using /var ? |
You should be able to type mount by itself to show all mounted filesystems.
or cat /etc/mtab Sometimes those log files can get large... also might check and see if you are running a ftp in /var/ftp/pub which is the default public folder for ftps... |
Its really strange, I know its not log files, because they would not delete themselves.
When I restarted my server just now all of a sudden i have 174MB available. |
All times are GMT -5. The time now is 06:32 AM. |