[DRBD-user] Xen

Dmitry S. Makovey dmitry at athabascau.ca
Thu Apr 3 17:26:36 CEST 2008

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On April 3, 2008, Florian Haas wrote:
> Dmitry,
>
> since you haven't told us us the error message with with Xen "refuses to
> start up", 

sorry - was in a rush to get things done. Your hint did help, but for 
archival, here's the message (note: domU name is "drbd"):

# xm create drbd
Using config file "/etc/xen/drbd".
No handlers could be found for logger "xend"
Error: Disk isn't accessible
Usage: xm create <ConfigFile> [options] [vars]
....

config files:

# cat /etc/xen/drbd
name = "drbd"
uuid = "b8c9d96d-bb98-95a1-2b68-04e6e973cd5f"
maxmem = 512
memory = 512
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
# vfb = [ "type=vnc,vncunused=1" ]
# disk = [ "phy:/dev/drbd1,xvda,w" ]
disk = [ "drbd:test,xvda,w" ]
vif = [ "mac=00:16:3e:00:ee:af,bridge=xenbr0" ]

# cat /etc/drbd.conf
...
resource test {
  net {
    allow-two-primaries;
  }

  syncer {
    rate 110M;
  }

  on foobar.com {
    device    /dev/drbd1;
    disk      /dev/xen/drbd.test;
    address   10.10.10.11:7789;
    meta-disk internal;
  }

  on barfoo.com {
    device    /dev/drbd1;
    disk      /dev/xen/drbd.test;
    address   10.10.10.12:7789;
    meta-disk internal;
  }
}


As you see from above initially I've used /dev/drbd1 for install and tried to 
switch to drbd:test after.

I'm using stock RedHat EL5 with the only custom thing - DRBD (packages built 
by linbit).

# rpm -q drbd
drbd-8.2.5-3
# uname -a
Linux foobar.com 2.6.18-53.1.13.el5xen #1 SMP Mon Feb 11 13:56:26 EST 2008 
i686 i686 i386 GNU/Linux


> I can only guess here -- but you might want to check out 
> http://lists.linbit.com/pipermail/drbd-user/2007-November/007794.html for a
> thread that probably applies to your situation.

your guess was pretty good: as soon as I got rid of pygrub things started to 
work as expected. Thank you.

so in the end I've got setup like:

## # Default
## bootloader = "/usr/bin/pygrub"
## disk = [ "phy:/dev/drbd1,xvda,w" ]

## # DRBD
disk = [ "drbd:test,xvda,w" ]
kernel =  '/var/lib/xen/kernels/vmlinuz-2.6.18-53.el5xen'
ramdisk = '/var/lib/xen/kernels/initrd-2.6.18-53.el5xen.img'
root    = '/dev/vmsystem/rootfs ro'

Maybe it's worth mentioning in user-guide that pygrub at this point 
is "incompatible" with DRBD (as in: device definition "drbd:foo" is not 
recognized).

-- 
Dmitry Makovey
Web Systems Administrator
Athabasca University
(780) 675-6245
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080403/ea609a7b/attachment.pgp>


More information about the drbd-user mailing list