Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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...
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.
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
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?
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?
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 /.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.