Gandi Docs

 |   AAA  |    fr   en  

You are on a question's page

Installing Apache 2.2, PHP 5.2 and MySQL 5.0
answered

Question "/var disk size???", by Morten R.

How do we solve the problem with the size of /var

At the moment the problem is that default install mysql & apache is using /var witch is on / instead of /srv/(disk name)!

/var is on the 5gb system disk and we need our mysql databases,apache files and log files on /srv/(disk name).

How do we use the /srv/(disk name) like the Gandi AI uses it?

So that we dont run out of disk space?

Best regards Morten

Answer, by Pavel Z.

mount new_disk

cp -a /var/* /path/to/new_disk

stop most of daemons

rm -rf /var/*

edit fstab

mount -a

Answer, by Jeannie C.

Hi,

Very nice support, but "HowTo" 'stop most of daemons'

What to edit and what to write in fstab ?

I'd tryed this and get this answer:

*can't find new_disk (my disk name ofcause) in /etc/fstab or /etc/mtab - by only execute the 'mount new_disk' command So it seems to me that the discription above is upside down!!

Please help, I'm just a women!! ;-)

Answer, by Pavel Z.

daemons stopping process depends on your distro.

your disk are able in /dev/

you can look for it using fdisk -l (from root)

so, open fstab (nano /etc/fstab) and add it

Last modified: 15 May 2008 at 21:33 by John G. (Gandi)