LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2003, 02:22 PM   #1
Hamma
Member
 
Registered: May 2003
Distribution: RedHat 7
Posts: 35

Rep: Reputation: 15
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
 
Old 07-12-2003, 02:37 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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

What about the output from:
df -h
 
Old 07-12-2003, 03:30 PM   #3
Hamma
Member
 
Registered: May 2003
Distribution: RedHat 7
Posts: 35

Original Poster
Rep: Reputation: 15
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 :[
 
Old 07-12-2003, 03:39 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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)
 
Old 07-13-2003, 01:40 PM   #5
Hamma
Member
 
Registered: May 2003
Distribution: RedHat 7
Posts: 35

Original Poster
Rep: Reputation: 15
What exactly does that do?
 
Old 07-13-2003, 02:30 PM   #6
Hamma
Member
 
Registered: May 2003
Distribution: RedHat 7
Posts: 35

Original Poster
Rep: Reputation: 15
edit: nm, umount works

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

Last edited by Hamma; 07-13-2003 at 02:37 PM.
 
Old 07-13-2003, 03:08 PM   #7
dav1x
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
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...
 
Old 07-13-2003, 03:12 PM   #8
Hamma
Member
 
Registered: May 2003
Distribution: RedHat 7
Posts: 35

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Usage kegwell Linux - Software 2 05-11-2005 10:59 AM
LQ disk usage student04 LQ Suggestions & Feedback 4 10-24-2004 09:35 PM
AS 2.1 disk usage buck2bcr Red Hat 4 03-23-2004 09:50 AM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 06:24 PM
Disk Usage LinuxTiro Linux - Newbie 6 09-03-2003 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration