LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Disk Usage /var partition (https://www.linuxquestions.org/questions/linux-general-1/disk-usage-var-partition-72167/)

Hamma 07-12-2003 02:22 PM

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

david_ross 07-12-2003 02:37 PM

What du command are you using? Try this as root:
du -hs /var

What about the output from:
df -h

Hamma 07-12-2003 03:30 PM

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 :[

david_ross 07-12-2003 03:39 PM

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)

Hamma 07-13-2003 01:40 PM

What exactly does that do?

Hamma 07-13-2003 02:30 PM

edit: nm, umount works

Is there any command to see what other partitions are using /var ?

dav1x 07-13-2003 03:08 PM

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...

Hamma 07-13-2003 03:12 PM

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.