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

RE: [cobalt-users] /var dir



-----Original Message-----
From: Steve Werby [mailto:steve-lists@xxxxxxxxxxxx]
Sent: Thursday, June 27, 2002 2:07 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: 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.
________________________________

Wouldn't be a lot simpler to create a symbolic link
in /var/whatever that points to /home/whateverelse?

I know that on my raq3 my /var/http/log directory is actually
a symbolic link to /home/log/httpd. But either Sun/Cobalt or
my co-loc vendor did that.