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] drbd and xen problem: disk not accessible

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] drbd and xen problem: disk not accessible
From: "Marco Strullato" <marco.strullato@xxxxxxxxx>
Date: Wed, 23 Apr 2008 16:10:05 +0200
Delivery-date: Wed, 23 Apr 2008 07:10: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:mime-version:content-type; bh=dJ8v2pDPiykohs3MkKwENixySfzwZozB8DY80dGi+HY=; b=PeXSYNAmaok6+ZHs2Wqccnh1EUiW9RSHhX1C43gOV91363FgwbkBtDjP+v1plW80gB7QH0LJ+j6xuX+mXceN2H4+2Z8tKeMFTVa4O9I//WvAOurVFOzakFxDyjKw9Ho3Q4uXE1YN5Dl95HfE3VkBD8dBy58b2MeWy6kSPeA+A18=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=tuVK2l6+JZSfRM58F1wdIQo7uqctTap5liWqzNL69aardQjrm6F6ODUFeBd6aIS+lpymiHDsrbk5AJO1QPk0TtxycfLzY6hqb7TpHuussJjBSrbO88APcJWyFKw4jPAgY6qm4VvG8iX/q/5VarrQyR89NR0Eol8rt1s1YBdE5BY=
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi all, I have a problem with drbd and xen.
After setting up drbd and after I installed a new linux vm, I can not create the vm because of a problem accessing the disk.
I read that a solution could be setting the kernel and ramdisk and root parameter into the vm config file but it doesn't work for me.

What do you suggest me?

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



I'm using this packages:
xen-3.0.3-41.el5
kernel-xen-2.6.18-8.el5
kmod-drbd82-xen-8.2.5-1.2.6.18_53.1.14.el5
xen-libs-3.0.3-41.el5
xen-libs-3.0.3-41.el5
kernel-xen-2.6.18-53.1.14.el5
drbd82-8.2.5-1.el5.centos
kmod-drbd82-xen-8.2.5-1.2.6.18_53.1.14.el5

my drbd.conf is:
global {
        usage-count yes;
 }
common {
        protocol C;
        startup {
                become-primary-on both;
        }
        net {
                allow-two-primaries;
        }
        disk {
                on-io-error detach;
        }
        syncer {
                verify-alg md5;
                rate 50M;
        }

}
resource r0 {
        on hyp11.infolan {
                device     /dev/drbd0;
                disk       /dev/HYP11VM/INT;
                address    10.100.0.2:7788;
                meta-disk  internal;
        }
        on hyp10.infolan {
                device    /dev/drbd0;
                disk      /dev/HYP10VM/INT;
                address   10.100.0.1:7788;
                meta-disk internal;
        }
}

and the vm configuration file is:
name = "VMNAME"
uuid = "8f1e2a13-f0c1-fbf5-a1f2-2a71f8c7c144"
maxmem = 512
memory = 512
vcpus = 1
bootloader = "/usr/bin/pygrub"
>>>vfb = [  ]
disk = [ "drbd:r0,xvda,w" ]
vif = [ "mac=00:16:3e:60:7d:41,bridge=xenbr0" ]
kernel='/boot/vmlinuz-2.6.9-67.0.7.ELxenU'
ramdisk='/boot/initrd-2.6.9-67.0.7.ELxenU.img' 
root='/dev/VolGroup00/LogVol00 ro'
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users