[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] /var dir



"Rahadul Kabir" <rkabir@xxxxxxxxxx> wrote:
> Is there anyway to move some disk space from /home dir to /var?

You'd have to remove the drive, mount in a Linux desktop and repartition.

> I have mysql running on a cobalt RAQ4 system. The mysql datadir turned
> out to be /var/lib/mysql. /var only has 194 MB. As my databases are
> growing and I'm running out of space on /var dir.

Best to store the data on /home.

> I'm thiking I need to change the datadir variable to somewhere on the
> /home dir, where I have >25GB free. How can I achieve this? Or is this
> the right approach? please be detailed as I'm new to this.
> Thanks so much.

mysqld --help lets you know MySQL startup options.  Shutdown MySQL, move
/var/lib/mysql to something like /home/mysql/data and restart MySQL with
the --datadir set to that location.  Depending on how your MySQL was
installed you may have a startup script in /etc/rc.d/init.d which you want
to edit to handle that on server reboot or manual restart through that
script.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/