LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-12-2009, 07:21 PM   #1
linuxguy08
Member
 
Registered: Apr 2008
Posts: 155
Blog Entries: 2

Rep: Reputation: 15
/ is full


Hi ,

I have a production server with Centos 5.2 running. Suddenly my / partition became 100% full.
Is there anyway to remove file under / which doesnot affect the production server. I have many application running under /home . Increasing /home partition would increase / parition too?



Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00
3.9G 3.7G 0 100% /

/dev/mapper/VolGroup00-LogVol04
52G 33G 17G 67% /home

/dev/mapper/VolGroup00-LogVol02
2.0G 344M 1.6G 19% /var

/dev/mapper/VolGroup00-LogVol03
2.0G 68M 1.8G 4% /tmp

/dev/sda1 190M 38M 143M 21% /boot

tmpfs 1006M 0 1006M 0% /dev/shm


Any help would be highly appreciated
Thanks
 
Old 10-12-2009, 07:32 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
The Good News is that your /home, /var and /tmp partitions are all fine - you have plenty of space there.

Now you need to find out who the space hogs are in "/". What you can do about it depends entirely on what you find. It might be easy to free the space ... or it might be relatively painful. You simply have to look.

Run "du -sk" from the root "/", then look one directory down (in the root "/" partition only), etc. You probably won't have to look to far...

Good luck .. PSM
 
Old 10-12-2009, 11:26 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
your / is only 3.9 gig in size ( that is one BIG "small" problem ) that partition is WAY to small.
your /home is 52 gig -- that is WAY to big.

repartition the disk so that / is AT LEAST 9 gig.

also a /tmp is not needed leave it on /
nor is /var you can also leave that on /

/home should also be smaller say 5 to 10 gig -- and not 52 gig

Last edited by John VV; 10-13-2009 at 12:40 AM.
 
Old 10-13-2009, 12:12 AM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
John VV -

I agree that the disk partitions could be allocated better.

But the OP said "production server". As such, I suspect the risks in repartitioning the drive probably outweigh the benefits.

But in any case, I think it makes sense to figure out WHY the root partition "suddenly became 100% full". BEFORE doing anything else.

Who knows - maybe somebody was trying to do a backup, and created a 2GB tar file in /dev? For this example, all he'd have to do is "rm" the file, and the problem would be resolved.

In any case, I'd definitely make an effort to determine the "space hog(s)" first. It's simple, and it's time well invested.

IMHO .. PSM
 
Old 10-13-2009, 12:50 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well my CentOS 5.3 / is 4.1 gig
yes i do have Gnome and KDE installed there

the op's /var might be the logs , if cron is not cleaning the old ones then/var/log/* can get BIG
the same thing for /tmp a cron script is not cleaning out old things
 
Old 10-13-2009, 06:49 PM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by John VV View Post
well my CentOS 5.3 / is 4.1 gig
yes i do have Gnome and KDE installed there

the op's /var might be the logs , if cron is not cleaning the old ones then/var/log/* can get BIG
the same thing for /tmp a cron script is not cleaning out old things
What could be the reason for not cleaning out old logs by cron?
 
Old 10-13-2009, 06:50 PM   #7
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by linuxguy08 View Post
Hi ,

I have a production server with Centos 5.2 running. Suddenly my / partition became 100% full.
Is there anyway to remove file under / which doesnot affect the production server. I have many application running under /home . Increasing /home partition would increase / parition too?



Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00
3.9G 3.7G 0 100% /

/dev/mapper/VolGroup00-LogVol04
52G 33G 17G 67% /home

/dev/mapper/VolGroup00-LogVol02
2.0G 344M 1.6G 19% /var

/dev/mapper/VolGroup00-LogVol03
2.0G 68M 1.8G 4% /tmp

/dev/sda1 190M 38M 143M 21% /boot

tmpfs 1006M 0 1006M 0% /dev/shm


Any help would be highly appreciated
Thanks
Backup data.
Repartition / .
 
Old 10-13-2009, 07:56 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
I assume your filesystems are ext3 so by default 5% is reserved so at 100% its >95% of actual data. As suggested you need to find out why / is full.

BTW the server is using LVM so it is much easier to resize a logical volume then it would be to resize a regular partition. As always backup any and all essential data.

You might of installed something to /usr which then filled up /.
 
Old 10-13-2009, 08:29 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
What could be the reason for not cleaning out old logs by cron?
having it turned off so that the 30 day delete is not ran .
or 30 days is to long and it needs to be set to 7 days .
 
Old 10-13-2009, 08:39 PM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Specifically, check logrotate jobs/settings
 
Old 10-13-2009, 11:02 PM   #11
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:41 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL4 root directory says full but sum of use is nowhere near full. Why? SteveInTallyFL Linux - Server 11 02-05-2009 05:45 AM
My / is almost full bulkathos Debian 8 10-11-2007 08:46 AM
My hd is full ... boumbo Fedora 3 02-20-2005 06:06 AM
Which distributions do not support --full-time for ls (ls --full-time)? GCS Linux - Distributions 0 07-28-2004 01:25 AM
/ = 98.5% full lachlan Linux - Software 1 06-17-2002 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:04 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