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

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Xen & DRBD
From: "Marco Strullato" <marco.strullato@xxxxxxxxx>
Date: Wed, 23 Apr 2008 16:15:04 +0200
Delivery-date: Wed, 23 Apr 2008 07:15:45 -0700
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:in-reply-to:mime-version:content-type:references; bh=RUAQsNZatdSevQyvGiOAMDgYV+Hkv3u6d5HFDvnOxRI=; b=m822xaA5ihDRJCB6DB/osYvD5ISoD8BAo3qgtgdsmD4xdI8zG8g326/iMYVWtC2zQqMdFNQDIdSFjhfpFfyJxK0yOEggAaLfGRnlh2jbVn1oPFP/XX53TfZW1FuAG8OgOOqvGaljZYhKYchub16/OaJaU+aB13YDLHvmyQcHoIY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=nbdz5tlvyU+aO/zAtr4/r4AU/532titrQKPdoGvafwdEIkVpxdW+yXUvP1DtiQBVA60vfepHLxyJoSUWAl4fo7D3RTbwBED1wxmufGRDd669jstG/XVdiGVO0nyCzA+Wv3eHeC/aVh4gvHSZmGJJS8UOZCVqkQ7Mx7z9+VAiwxU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1205828430.32144.5.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: <8563114.19051205782106776.JavaMail.root@zimbra> <1205828430.32144.5.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi, I have exactly the same problem: how did you solve?



2008/3/18, Stuart Poulton <swp@xxxxxxxxxxxxxx>:

I've just tried again, this time using one of the example xen files.
Details below.

x-host-3:/etc/xen/vm # cat test
# This is a bootloader used to boot paravirtualized domains.  You can optionally
# plug in a different boot loader here, e.g., pygrub.  There is usually no
# reason to change this.  Don't explicitly specify kernel and ramdisk if you use
# a bootloader.


# The domUloader will pull the specified kernel and initrd out of the domU's
# disk, and use that to boot.  This is easier to manage, compared to manually
# keeping a copy of the kernel and initrd in sync in dom0's filesystem and
# pointing to them with the "kernel" and "ramdisk" parameters.  Syntax is
# "VDEV:KERNEL,INITRD", where VDEV is the block device (from domU's point of
# view) within which KERNEL and INITRD can be found.
bootentry = "hda1:/boot/vmlinuz-xen,/boot/initrd-xen"

# Remaining settings for the example VM:

> > > localtime=0


disk=[ 'drbd:xendomains,xvda,w' ]
vif=[ 'mac=00:16:3e:00:01:02,bridge=xenbr0' ]


x-host-3:/etc/xen/vm # cat /proc/drbd
version: 8.0.6 (api:86/proto:86)
SVN Revision: 3048 build by phil@mescal, 2007-09-03 10:39:27
  0: cs:Connected st:Primary/Primary ds:UpToDate/UpToDate C r---
    ns:0 nr:1052672 dw:1052672 dr:0 al:0 bm:284 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:65650 misses:142 starving:0 dirty:0
        act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
x-host-3:/etc/xen/vm # drbdadm state xendomains

x-host-3:/etc/xen/vm # xm create -c test
Using config file "./test".

Error: Disk isn't accessible

x-host-3:/etc/xen/vm # xm create -n opensuse-1
Using config file "./opensuse-1".
    (name opensuse-1)
    (memory 384)
    (on_poweroff destroy)
    (on_reboot restart)
    (on_crash destroy)
    (vcpus 1)
    (on_xend_start ignore)
    (on_xend_stop ignore)
    (uuid 7bf59311-0304-d34e-09a7-4d2f2fa5f5e9)
    (bootloader /usr/lib/xen/boot/domUloader.py)
    (bootloader_args '--entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen')
    (image (linux (args ' ')))
    (device (vbd (uname drbd:drdb0) (dev xvda) (mode w)))
    (device (vbd (uname phy:/dev/cdrom) (dev xvdb:cdrom) (mode r)))
    (device (vif (mac 00:16:3e:19:69:48)))
    (device (vkbd))
            (vncunused 1)
            (type vnc)
            (display localhost:10.0)
            (xauthority /root/.Xauthority)

On Mon, 2008-03-17 at 19:28 +0000, Gareth Bult wrote:
> Hi,
> When you switch to "drbd:" you need to change the path to the drbd resource name, rather than the device name. So if you have a drbd.conf that says;
> resource fred {
>    on nodea {
>        device /dev/drbd0;
> You would use;
> disk=[ 'drbd0:fred,xvda,w',]
> hth
> Gareth.

> ----- Original Message -----
> From: "Stuart Poulton" <swp@xxxxxxxxxxxxxx>
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Sent: Monday, March 17, 2008 3:08:47 PM GMT +00:00 GMT Britain, Ireland, Portugal
> Subject: [Xen-users] Xen & DRBD
> 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
> > > > > > > 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

> 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 mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] Xen & DRBD, Marco Strullato <=