[CentOS] drbd strategy

Sat May 31 13:28:24 UTC 2008
Filipe Brandenburger <filbranden at gmail.com>

On Sat, May 31, 2008 at 7:40 AM, sbeam <sbeam at onsetcorps.net> wrote:
> We have a near-identical system I am thinking of bringing in as a
> DRBD/Heartbeat companion. One solution may be to use csync2
> [http://oss.linbit.com/csync2/] on /etc and /usr/local (the only areas that
> will differ from the stock CentOS). Then setup DRBD for /home and /var.

Probably not a good idea to put the whole "/var" in DRBD, since then
the second machine will have it unmounted when it's in stand-by, and
there are somethings like "/var/run", "/var/tmp" and "/var/spool" that
might be needed even if the machine is in stand-by. I don't think you
might actually be able to start heartbeat without a "/var/run" to
store its pid file.

You would be better off by using a DRBD partition for "/var/lib/mysql"
and leaving the rest of "/var" out of DRBD.

HTH,
Filipe