LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   resize /var (https://www.linuxquestions.org/questions/linux-newbie-8/resize-var-4175421968/)

Reignfire 08-14-2012 02:28 AM

resize /var
 
Hi,

Is there an easy way to fix the following:

Code:

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?

Sandeep Kumar 08-14-2012 02:48 AM

Use Gparted

here

deadeyes 08-14-2012 02:56 AM

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.

Wim Sturkenboom 08-14-2012 04:55 AM

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.

pan64 08-14-2012 07:17 AM

I suggest you to increase /tmp


All times are GMT -5. The time now is 02:44 AM.