Help answer threads with 0 replies.
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 08-14-2012, 03:28 AM   #1
Registered: Jun 2012
Posts: 56

Rep: Reputation: Disabled
resize /var


Is there an easy way to fix the following:

root@system:/etc# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             323M  146M  161M  48% /
tmpfs                 127G     0  127G   0% /lib/init/rw
udev                  127G  148K  127G   1% /dev
/dev/sda9             231G  3.5G  216G   2% /home
/dev/sda8             368M   11M  339M   3% /tmp
/dev/sda5             8.3G  525M  7.4G   7% /usr
/dev/sda6             2.8G  220M  2.4G   9% /var
I need my /var to be much bigger, can i resize this in an easy way?
Old 08-14-2012, 03:48 AM   #2
Sandeep Kumar
LQ Newbie
Registered: Aug 2012
Location: RCF, Kapurthala
Distribution: Fedora
Posts: 3

Rep: Reputation: Disabled
Use Gparted

Old 08-14-2012, 03:56 AM   #3
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Make sure you have a backup!

For making this to work your partitions that are layed out after /var have to be moved.
This will take a while!

Strange that you didn't use LVM.
That would really ease things and you would be able to do this without downtime.
Old 08-14-2012, 05:55 AM   #4
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
You only have 10% in use so no need to increase

Maybe a good question is why you feel the need to increase the size of /var? On my LAMP server, the size used on the var partition is currently 59MB. But I don't store web pages and mysql databases in there.

Last edited by Wim Sturkenboom; 08-14-2012 at 06:58 AM. Reason: found I used a partition instead of directory, so corrected
Old 08-14-2012, 08:17 AM   #5
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,098

Rep: Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137Reputation: 7137
I suggest you to increase /tmp


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
How to resize a logical volume mounted as /var (FC9) prabhatsoni Linux - Hardware 10 01-04-2009 04:40 PM
[help] resize partition (/var) dongli Linux - Newbie 4 07-16-2008 04:33 AM
/var full - need to resize RichardAnderson Linux - General 12 11-11-2006 09:49 PM
can anyone please help me with resize /var kafnir Linux - General 1 12-08-2005 10:22 PM
resize /var caladbolg Mandriva 1 09-25-2004 02:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration