Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 04-07-2012, 03:21 AM   #1
LQ Newbie
Registered: Apr 2012
Location: Bangalore,India
Posts: 1

Rep: Reputation: Disabled
Smile Friends,if the /var disk in full in Redhat OS

if the /var disk in full in Redhat OS . what all the files we can remove/zip.
Old 04-07-2012, 03:37 AM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,703
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405

Dont remove OR zip, let the system work for you. I bet your log files got a bit big...try the following:

logrotate -f -v /etc/logrotate.conf
...assuming the logrotate's conf is where you left it

Good luck

Old 04-07-2012, 08:33 AM   #3
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
logrotate -f -v /etc/logrotate.conf
This will force a rotation of the logfiles, and create a backup log, depending on your setting they are compressed or not.
So the OP still need to delete/backup these files in order to free some space.
I would take a look which files are there, are they rotated correctly, do you still need the rotated files, why are files growing to big.....

Kind regards

Last edited by repo; 04-07-2012 at 09:03 AM.
Old 04-07-2012, 09:24 AM   #4
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
First you should check the disk usage of all directories and files in /var directory, then only take next step.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
disk space full because alot of files in /var/spool/clientmqueue folder k0nsole.c Linux - Software 4 03-21-2016 10:26 AM
redhat won't start disk is full 100% ikkefrans Linux - General 6 11-05-2008 03:04 PM
/var really full or not? philforrest Linux - Software 6 02-22-2005 04:10 AM
Redhat 9 disk space full when not supose to be? cyb0rg51 Linux - Newbie 6 04-25-2004 01:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 PM.

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