DRBD as a block device for XEN VM (Centos 5.3)

Posted by SaberTooth on Server Fault See other posts from Server Fault or by SaberTooth
Published on 2009-07-16T10:23:19Z Indexed on 2010/05/01 12:38 UTC
Read the original article Hit count: 216

Filed under:
|

Hi all,

I have setup a drbd resource between 2 server nodes - everything works correctly when doing sync tests between the two. (I want to create a HA cluster using drbd,xen and heartbeat)

However, when I try and create a XEN VM with Centos as guest operating system, I get through to the partitioning screen on the install but when I select a partitioning type the next screen gives me the following error :

"An error has occurred - no valid devices were found on which to create new file systems. Please check your hardware for the cause of this problem."

This is the first time attempting create a setup like this and searching Google does not help much...

my config files for DRBD and XEN....

DRBD (just the section that is pertinent)

on xennode0 { device /dev/drbd0; disk /dev/sda5; address X.X.X.X:7788; flexible-meta-disk internal; }

on xennode1 { device /dev/drbd0; disk /dev/sda5; address X.X.X.X:7788; meta-disk internal; }

XEN

kernel = "/boot/xeninstall/vmlinuz" ramdisk = "/boot/xeninstall/initrd.img" extra = "text" name = "VM" maxmem = 3000 memory = 3000 vcpus = 4 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" vfb = [ ] disk = [ "phy:/dev/drbd0,sda1,w", "tap:aio:/srv/xen/xenswap.img,sda2,w" ] vif = [ "mac=00:16:3e:11:67:ae,bridge=xenbr0" ] root = "/dev/sda1 ro"

Thanks in advance!

© Server Fault or respective owner

Related posts about xen

Related posts about drbd