WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Centos 5.2 using LVM -> DRBD 0.82 -> Xen Problems

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Centos 5.2 using LVM -> DRBD 0.82 -> Xen Problems
From: Antibozo <xen-users@xxxxxxxxxxxx>
Date: Tue, 05 Aug 2008 16:33:22 +0000
Cc:
Delivery-date: Tue, 05 Aug 2008 09:34:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C1EAC9C5E752D24C968FF091D446D823241145@ALTERNATEREALIT>
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: <C1EAC9C5E752D24C968FF091D446D823241145@ALTERNATEREALIT>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/4.0 (compatible;MSIE 5.5; Windows 98)
On 2008-08-05 14:55, Robert Dunkley wrote:
I'm trying to get Xen to use a native DRBD device but it seems it will not create the virtual machine. It does not seem to like the DRBD device type, any ideas on what might be wrong?

I’m pretty sure my xen config file is OK and the DRBD device looks fine too.

You might want to read the messages I've posted here recently with the subject "drbd 8 primary/primary and xen migration on RHEL 5".

The block-drbd script provided by drbd (which enables the "drbd:" syntax in xen config files) does not work, at least not on HVM vms (I haven't tested PVMs). By the time the script is executed, qemu-dm is already running and has already bailed on the device.

You can try using my qemu-dm wrapper script found at this URL:

http://www.antibozo.net/xen/qemu-dm.drbd

Save the wrapper script as /usr/lib64/xen/bin/qemu-dm.drbd, and modify the "device_model" line in your xen config file to point to the wrapper script.

Alter the disk line to use "phy:/dev/drbd0" instead of using the "drbd:drbd0" syntax. Make sure drbd0 is in secondary state *on both peers* before you start the vm. The script logs to the daemon facility, so watch your /var/log/messages.

Let me know how it goes.

--
Jefferson Ogata : Internetworker, Antibozo

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>