LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-06-2001, 10:49 AM   #1
smurf
Member
 
Registered: Apr 2001
Posts: 113

Rep: Reputation: 15
Angry HELP My "/" Partition is being used up gradually


The problem I have is....

My "/" partition is being used up very slowly. to show you wot i mean I saved the df -m screens.

29th Nov Screen Shot
-----------------------------
/dev/hda1 540 363 155 71% /
/dev/hdd1 1982 63 1818 4% /backup
/dev/hda3 36133 24366 11768 68% /home
/dev/hda2 641 465 143 77% /usr

5th Dec Screen Shot
-----------------------------
/dev/hda1 540 371 146 72% /
/dev/hdd1 1982 35 1847 2% /backup
/dev/hda3 36133 30345 5788 84% /home
/dev/hda2 641 462 146 76% /usr

As u can see the HD is being used up on the "/" partition.
I never do anything on the Server. its just left switched on.
This i why I cant figure out why the HD is being used. I had trouble about 3 weeks ago with my printing server. it claimed i had run out of HD on the server. so I used good old Server magic and repartitioned the HD.

Could the Print server be filling th HD up somehow. I have looked in the Spooling folders. but there is nothing there apart from a few folders.
OR/AND
is it the LOG files that or building up. If so where are they usually stored.

Any advice will be greatly appreciated


Last edited by smurf; 12-19-2001 at 02:09 PM.
 
Old 12-06-2001, 11:46 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Check out /var/log


See which file is the big monkey. Hopefully its just /var/log/messages and some daemon spamming the log. There could be other problems... much more annoying ones, so post back if its not in there.

-Luck

Finegan
 
Old 12-06-2001, 11:49 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
probably is the logts if it's a busy box. check

/var/log/messages

and everything else in that dir.

you might also want to periodically run a cron job or soething to automatically run 'du' and then compare two files of a different date with 'diff'
 
Old 12-06-2001, 11:52 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The Linux file standard (FHS) sez all variable files should be under /var.
Strangely enough the log dir is named: "log".
It usually tries to materialize under /var/log.

Depending on your distro you can run "tmpwatch" to handle deletion of stale files in /tmp, logrotate for, like rotating logs, and some app from Freshmeat like Checkdisk to warn you in advance, like when the treshold for a partition exceeds the amount of free space.
 
Old 12-06-2001, 12:00 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
wow... overkill...
 
Old 12-17-2001, 04:26 AM   #6
smurf
Member
 
Registered: Apr 2001
Posts: 113

Original Poster
Rep: Reputation: 15
hi there

Thanks 4 all the replies.

I would have replied ALOT sooner but my ISP seems to be having trouble letting m connect to anything that aint in the UK.

I have check out the file sizes in the /var/log and I cant see anything out of place.

Anyother ideas any1

 
Old 12-17-2001, 10:47 AM   #7
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Start getting familiar with du to track down the culprit. cd up to / and try:
du -h --max-depth=2 | more

which will display all of the disk usage, per file, going back 2 directories from /. Find which folder is inordinately large. /usr/bin should be huge anyway. Check through /tmp as some things have been known to go bongoru there as well.

Sorry about the ISP battle man.

Cheers,

Finegan
 
Old 12-17-2001, 11:43 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
how about your root mail file, or maybe browser cache

or maybe warez is uploading there latest hacks to your server.

also since it is a server there may be logs in /var/log/httpd/

Last edited by DavidPhillips; 12-17-2001 at 11:48 AM.
 
Old 12-17-2001, 06:31 PM   #9
smurf
Member
 
Registered: Apr 2001
Posts: 113

Original Poster
Rep: Reputation: 15
oh my god

i run the "du -h --max-depth=2 | more". Thats a nice command btw.

and in my /var/spool/samba folder had 328mb of pure CRAP in it.

Thanks every1... without u guys people like myself would be sad lonely windows freaks.


Last edited by smurf; 12-17-2001 at 06:34 PM.
 
Old 12-19-2001, 11:45 AM   #10
smurf
Member
 
Registered: Apr 2001
Posts: 113

Original Poster
Rep: Reputation: 15
Guys I need your help again

I moved the content of the /var/spool/samba to a backup drive.
now when i try and print from my windows machines to my linux box through samba. It wont work.

I have tried copy all the data back to the /var/spool/samba folder and restarting the server. But still i can print.

What have I done

Help me

 
Old 12-19-2001, 07:50 PM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
check the permissions of the /var/spool/samba folder

it should be like this


drwxrwxrwt 2 root root 4096 Aug 13 14:54 samba


moving it and copying it may have changed permissions


check any other folders you moved as well.

check the log files for the machine you tried to print from in /var/log/samba


Last edited by DavidPhillips; 12-19-2001 at 07:53 PM.
 
Old 12-19-2001, 11:26 PM   #12
smurf
Member
 
Registered: Apr 2001
Posts: 113

Original Poster
Rep: Reputation: 15
thanks 4 replying

my permission was

drwxr-xr-t 2 root root 12288 Dec 19 17:24 samba

so i changed it to what you said

then check my samba log which stated that i didnt have permission to access the /var/spool/samba

after i changed the permissions it worked.

A BIG THANKYOU.



And a MERRY CHRISTMAS
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM

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

All times are GMT -5. The time now is 09:05 PM.

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