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

[Xen-users] drbd8 + Xen3.1

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] drbd8 + Xen3.1
From: Serge Dewailly <serge.dewailly@xxxxxxxxx>
Date: Fri, 25 Jan 2008 09:51:34 +0100
Delivery-date: Fri, 25 Jan 2008 00:52:06 -0800
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: Adelux - Agence Ouest
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Icedove 1.5.0.14pre (X11/20071018)
Hi all,

I'm trying to setup a xen cluster using the new drbd block scripts (/etc/xen/scripts/). Here is the specifications :
xen1 : r0 (/dev/drbd0)
xen2 : r0 (/dev/drbd0)

I'd like to use the Live Migration, with the fonctionnality offered by drbd8, which consists of allowing 2 primary. First, I had to modify the block-drbd script to write the right params in xenstore (was writing "r0" instead of "/dev/drbd0").

Here is the Vhost config :
kernel = "/usr/lib/xen-3.1-1/boot/hvmloader"
builder = 'hvm'
device_model = "/usr/lib/xen-3.1-1/bin/qemu-dm"

name ="debian-test"
memory = 1024
acpi=1
apic=1

## before modification of the block-drbd script, we had to specify drbd resource
#disk = ['drbd:r0,xvda,w']
## modifications consists specifying the drbd device
disk = ['drbd:/dev/drbd0,ioemu:hda,w']
vif = ['type=ioemu, bridge=xenbr0']
boot = 'c'
on_poweroff = 'destroy'
on_crash    = 'restart'
vnc = 1
vncunused = 0
vncdisplay = 1
sdl = 1


When "xm create debian-test", the drbd resource r0 changes in primary state, the guest starts, but no disk detected by qemu. The reason, after many tests and modifications in the xensource... is that the block-drbd script as the block-script, is executed after the qemu is started !

Did you try this before ? I've posted an email to Florian (Author of the script).
Have a nice day.

--
Serge Dewailly


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] drbd8 + Xen3.1, Serge Dewailly <=