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] Xen & DRBD

To: Stuart Poulton <swp@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Xen & DRBD
From: Joris Dobbelsteen <joris@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Mar 2008 21:17:47 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 17 Mar 2008 13:18:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1205766527.25299.18.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
References: <1205766527.25299.18.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Stuart Poulton wrote:
Dear All,

I'm using drbd to provide a HA pair of servers to run xen domains on.

I've created a test domain as follows

x-host-2:~ # more /etc/xen/vm/opensuse
name="opensuse"
ostype="opensuse"
uuid="ee62226a-8487-cc02-d89f-dafafd1f35e6"
memory=1214
vcpus=2
on_crash="destroy"
on_poweroff="destroy"
on_reboot="restart"
localtime=0
builder="linux"
bootloader="/usr/lib/xen/boot/domUloader.py"
bootargs="--entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen"
extra=" "
disk=[ 'phy:/dev/drbd0,xvda,w',]
vif=[ 'mac=00:16:3e:29:fb:80', ]
vfb=['type=vnc,vncunused=1']

This works fine, and start and stop the domain on both of the nodes.
However if I try to use

disk=[ 'drbd:xendomains,xvda,w',]

I get the following error....

x-host-2:~ # xm create opensuse
Using config file "/etc/xen/vm/opensuse".
Error: Disk isn't accessible
If you are using <= 0.7 you must set the disk to master mode to be able to write to it. On 0.8 it was possible to simultaneously write to both the master and slave. Try looking at <http://www.linux-ha.org/>, which has a lot of information about the subject.

From a little test I did long ago, I used heartbeat to manage DRBD, mount the file system and start the service that needed the disk (it also did graceful shutdown on failback if desired).

- Joris

Disclaimer: version numbers are from volatile memory and might be incorrect...
I'm expecting the block-drbd script to do something here, but from what
I can tell it's not.

I suspect I've missed something fundamental. Any pointers please ?

Thanks

Stuart


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


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

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