This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-users] Re: Xen, LVM, DRBD, Linux-HA

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Xen, LVM, DRBD, Linux-HA
From: Aleksandar Ivanisevic <aleksandar@xxxxxxxxxxxxx>
Date: Tue, 22 Apr 2008 13:12:56 +0200
Cancel-lock: sha1:qElbrzfFwyYQPJpsNPTRPcyhMGI=
Delivery-date: Tue, 22 Apr 2008 04:13:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Individual
Original-sender: aleksandar@xxxxxxxxxxxxx
References: <20080421222832.GW26447@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
Rainer Sokoll <rainer@xxxxxxxxxx> writes:

> Hi,
> I want to put it all together.
> So far, I have a running machine with multiple domUs, and I am very
> excited. But now I want to go a step ahead:
> I have two identical machines with a big amount of RAM and disk space.
> My goal is to hve all the domUs almost redundant - and want to ask you
> for your advice.
> The plan is to have every VM in its own logical volume and have DRBD
> replicate this volume to the other machine. Assumed Linux with Linux-HA
> runs in a VM, here comes my question:
> If the complete Linux VM runs in its own logical volume, Linux-HA cannot
> work, since the configuration must not be the same on both sides. One
> solution would be to have a minor file based backend that holds /etc/,
> /proc/, /var/, /boot/ (and maybe more?). Or maybe there is a more
> sophisticated solution?
> How would you start?

I don't really understand what exactly do you want to make redundant?

We have similar setup to yours, both cluster nodes simply have DRBD
devices in LVs for ease of administration and inside we have regular
disk images.

we sync the domU config files and the rest of the junk between nodes
using csync2.

before you undertake this adventure, be aware that xen is currently
not mature enough for such a setup, we had machines (both domUs and
dom0s) crashing regularly when having drbd in primary/primary and drbd
in primary/secondary simply does not work without heavy patching,
which is simply not worth the trouble.

right now we settled with quasi-migration, we save the domU, rsync the
memory file over to the other machine, change drbd setup to primary
and restore the machine and that more or less works ok with cca 10s

if you only want your domUs to come up on the other node if a node
goes down, this might not be an issue though. We wanted to be able to
migrate domUs between the nodes to balance the load.

To sto si frustriran, zavidan tko zna na cemu i sto ne vidis dalje od
svoje guzice je tuzno. Da onda barem imas toliko samokontrole da
sutis umjesto da pravis budalu od sebe... izgleda da si prestar da se
promjenis na bolje. - Davor Pasaric, hr.comp.mac

Xen-users mailing list