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


Re: [Xen-users] Live migration and drbd

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Live migration and drbd
From: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Date: Mon, 10 Nov 2008 19:19:36 +0000
Cc: danielsaori@xxxxxxxxx
Delivery-date: Mon, 10 Nov 2008 11:20:17 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Wy8o8IvFUV3FcMZRDbecu8A7Q/l7AICW2hylYN+Td5s=; b=YUrNjePWBTNAU+MMWRNJoX88qQk0CCuV44uQeZ3Z2q8kRw80groLRBGjbUKbOj/D7+ PJ4PFGMh/QA1D9tPOQhfpfQ47i6vy3l2dpG0zMnz6tTHNCB0gODtcc1sqwaZb2Hlby8R 9yaxvzxaQ4mVKLETUSOdvvWViUorNPNvOMSfc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FgqZrjqODqNKeBszU6AUFQf/ojiApXYL1nKYv+wEMRLlGBQUGodbhbjuvdX83P9QRN YVHpNUWklxUr2mjuZ+Zlq51/Cu7wAakfQIpljUJfazsh+JkQTW07qsWomCgYasuHpWIY rXQR1opgiPdlxGGi5FYcw62tfnJIITrEi6ZIs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4135a64a0811100046p7dce3ed1q1d69ddf519d9f84d@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20081108090556.GQ19416@xxxxxxxxxxxxxxxxxxxxxxx> <4135a64a0811100046p7dce3ed1q1d69ddf519d9f84d@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Nov 10, 2008 at 8:46 AM, Daniel Asplund <danielsaori@xxxxxxxxx> wrote:
>> Hi,
>> I have a machine running several DomU's, PVM's als well as HVM's. Each
>> DomU resides in its own LV.
>> Also, I managed drbd to replicate the LV's to a second machine. Now, I
>> want to try out Xen's ability to live migrate a running DomU, that
>> means, from machine1's LV to machine2's LV. If I understood this
>> correct, during the process of migration, both LV's need to be writable.
>> In a default installation, drbd only supports one primary node, but I
>> need primary/primary, correct?
>> Here it comes to a cluster filesystem like OCFS - and I am stuck. How
>> can OCFS help me? Or am I totally wrong and what I want is impossible?
>> The main goal, of course, is to have a redundant fail over solution.
>> If my question is more related to drbd-users, I'll switch over to the
>> other list.
>> Thanks,
>> Rainer
> Hi Rainer,
> Basically the only prerequisite is that you run DRBD8, which gives you
> primary/primary, to get live migration working. You don't have to
> bother with cluster aware FS. Both nodes will not have exclusive
> access at the same time so running ext3 is perfectly fine.
> You can have a look at this guide to get some additional information:
> http://www.asplund.nu/xencluster/xen-cluster-howto.html

I plan to try this soon, I've read the guide and it all makes sense to
me, but could somebody explain why using drbd on top of lvm is
preferable to using drbd with physical devices and lvm on the drbd

Thinking of the layers of devices:

lvm pv
lvm vg
lvm lv (which is a physical disk to the VM)

am I correct in thinking that drbd could be inserted anywhere in that
list? where is best? why?


Xen-users mailing list