LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-13-2011, 10:02 AM   #1
LRL8793rh5
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
How to clean up disk space on /var partition RedHat5


Hi Linux community,
I used to be Novell admin/CNE more than nine years. Since Novell sunset, I study myself and move to Linux…… At daily work, I face a lot challenges of Linux. I really need to get help from experienced Linux people. My first question is “ How to clean up disk space on /var partition Red Hat 5.

Thank you,
Liren Li

Last edited by LRL8793rh5; 05-13-2011 at 10:06 AM.
 
Old 05-13-2011, 10:05 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I'm not sure I understand your question. Just find out what's taking up space, and delete anything you don't need?
 
Old 05-13-2011, 10:05 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
/var can contain all manner of things. I guess first you need to work out what is there, and then evaluate its importance, and if it's not needed, delete it. Personally I would run something like "du -h --max-depth=2 /var/" to find the size of all directories two levels down from /var. if you find something specificially large, change /var/ to /var/spool/ for example, and run it again to get closer to it.
 
Old 05-13-2011, 10:11 AM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Two of the bigger things that you will find in /var/ from a default Centos Installation, will be 'logs' and 'lib/mysql' neither of which you will want to get rid of.
 
Old 05-13-2011, 02:07 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
please DEFINE what you mean by
Quote:
How to clean up disk space on /var partition Red Hat 5
clean what ?
the logs ? manually? or using cron ?or some other way ?
-- logs can get big ---

old files ? older than 30 days ?
 
  


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
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
How to clean up disk space on /var partition RED HAT jmmo1981 Red Hat 11 02-24-2009 09:38 AM
clean up disk space in SuSE linux nanda22 Linux - Newbie 5 08-01-2008 05:37 AM
Low disk space in /var wuqso Linux - General 2 05-22-2006 10:11 PM
Running out of disk space... clean up possible? donv2 Linux - Newbie 3 04-19-2005 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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