Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
My /var partition is full its usage capacity is 100% maybe thats
why when I'm trying to run squid it was failed...
Can anybody help me how to solve it or gave me an idea on what part
should I delete so that the usage capacity will reduce something to 95% or much better
lower than that...
You should first determine what is filling up /var. If yum is doing it, check the link I gave in post #5. If 'standard' logging is filling up /var, focus on that.
The next part could be useful if standard logging is filling up /var:
You shouldn't just remove all the files in /var/log.
If logrotate is running (I believe CentOS has it running), you can change the amount of files that are kept for safe keeping. Take a look here for some more info on logrotate: Rotating Linux Log Files
And this is logrotate's manpage
The attribute that is of interest is rotate X, this tells logrotate how long (in weeks) old logfiles should be kept before removing them. If you aren't sure what to change, post your /etc/logrotate.conf file so we can have a look.
Do you need 4 weeks worth of old logfiles online??
Why note reduce that to 1 or 2 and archive older stuff (as part of logrotate) to another meduim eg CD/tape, IF you really need to keep them at all...
Yes, that would tell us what part of /var fills. Every case is different.. You may have a deffective program that logs a lot of garbage in /var/log.
If the previous cmd shows that /var/log is the fatty one, then get some info from /var/log:
du -h /var
(you may have to sudo it to get access to all directories)
This will scroll a list of folders on the /var partition, and there sizes in human readable form.
Scroll down the list and see what is the largest, or largest 5, then post the results here. That will help us narrow it down to what is taking up the space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.