Longina Przybyszewska
2009-Aug-27 13:27 UTC
[Xen-users] drbd integration in Xen3.3(Ubuntu)
Hi, it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: I get - Error: "Block device must have "phy", "file", or "tap" specified to type" when I try ''xm create test.cfg". VM ''test'' has in config file ''drbd'' resource as block device. disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] Does anybody have success with this type of configuration on Ubuntu Hardy? Longina -- -- Longina Przybyszewska, system programmer IT@Naturvidenskab IMADA, Department of Mathematics and Computer Science University of Southern Denmark, Odense Campusvej 55,DK-5230 Odense M, Denmark tel: +45 6550 2359 - http://www.imada.sdu.dk email: longina@imada.sdu.dk -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alexandre CABROL PERALES
2009-Aug-27 13:42 UTC
Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 you might use GFS or lvm partition on drbd device usually /dev/drbd0 Longina Przybyszewska a écrit :> Hi, > it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: > > I get - > Error: "Block device must have "phy", "file", or "tap" specified to type" > when I try ''xm create test.cfg". > > VM ''test'' has in config file ''drbd'' resource as block device. > > disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] > > Does anybody have success with this type of configuration on Ubuntu Hardy? > > Longina >- -- Alexandre CABROL PERALES - -- Ingenieur Securite des Systemes d''Information Mob. : 06.98.82.03.06 Mail : alexandre.cabrol@artal.fr Key fingerprint = 1E6B B8DF 5001 A6A8 E057 9D31 7B3B EAB1 4AE4 8953 - -- ARTAL Technologies Rue Pierre-Gilles de Gennes Ens."La Rue", Bat. 9, BP 38138 31681 Labege cedex Tel. : 05.61.00.39.30 Fax : 05.61.00.20.43 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqWjVIACgkQezvqsUrkiVPGzQCbBybuvFgWdKTic0uOZeiCP+qs wKIAnihH0TPwVMph7Ld1UdE6HrXabihJ =l3xK -----END PGP SIGNATURE----- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Aug 27, 2009 at 03:27:36PM +0200, Longina Przybyszewska wrote:> Hi, > it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: > > I get - > Error: "Block device must have "phy", "file", or "tap" specified to type" > when I try ''xm create test.cfg". > > VM ''test'' has in config file ''drbd'' resource as block device. > > disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] > > Does anybody have success with this type of configuration on Ubuntu Hardy? >drbd integration into xen is an external script. Just install it. See: http://fghaas.wordpress.com/2007/09/03/drbd-806-brings-full-live-migration-for-xen-on-drbd/ -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Longina Przybyszewska
2009-Aug-27 13:57 UTC
Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
The problem is that xm doesn''t recognize ''drbd'' as blok device type; Since drbd-8.0.6 it is allowed to use drbd resource as VBD. Ubuntu Hardy''s drbd version is 8.0.11 In my configuration ''test-swap'', ''test-root'' are lvm partitions, defined with full path in drbd.conf as resources. Such configuration gives (according to drbd manual) nice feature - automatic change done by Xen between Primary/Secondary during migration. Longina On Thu, 27 Aug 2009, Alexandre CABROL PERALES wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > you might use GFS or lvm partition on drbd device usually /dev/drbd0 > > Longina Przybyszewska a écrit : >> Hi, >> it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: >> >> I get - >> Error: "Block device must have "phy", "file", or "tap" specified to type" >> when I try ''xm create test.cfg". >> >> VM ''test'' has in config file ''drbd'' resource as block device. >> >> disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] >> >> Does anybody have success with this type of configuration on Ubuntu Hardy? >> >> Longina >> > > - -- > Alexandre CABROL PERALES > - -- > Ingenieur Securite des Systemes d''Information > Mob. : 06.98.82.03.06 > Mail : alexandre.cabrol@artal.fr > Key fingerprint = 1E6B B8DF 5001 A6A8 E057 9D31 7B3B EAB1 4AE4 8953 > - -- > ARTAL Technologies > > Rue Pierre-Gilles de Gennes > Ens."La Rue", Bat. 9, BP 38138 > 31681 Labege cedex > > Tel. : 05.61.00.39.30 > Fax : 05.61.00.20.43 > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkqWjVIACgkQezvqsUrkiVPGzQCbBybuvFgWdKTic0uOZeiCP+qs > wKIAnihH0TPwVMph7Ld1UdE6HrXabihJ > =l3xK > -----END PGP SIGNATURE----- >-- -- Longina Przybyszewska, system programmer IT@Naturvidenskab IMADA, Department of Mathematics and Computer Science University of Southern Denmark, Odense Campusvej 55,DK-5230 Odense M, Denmark tel: +45 6550 2359 - http://www.imada.sdu.dk email: longina@imada.sdu.dk -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Longina Przybyszewska wrote:> Hi, > it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: > > I get - > Error: "Block device must have "phy", "file", or "tap" specified to type" > when I try ''xm create test.cfg". > > VM ''test'' has in config file ''drbd'' resource as block device. > > disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] > > Does anybody have success with this type of configuration on Ubuntu Hardy?I had the same problems with my block-iscsi script. Maybe the attached patch will work for you. This works for my paravirtualized domUs, but not fully virtualized domUs. #matt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Longina Przybyszewska
2009-Aug-27 14:13 UTC
Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
I have that script in /etc/xen/scripts/block-drbd... I guess it has been installed together with drbd8 & drbd8-utils But there is obviousely missing something else in Xen del... Longina On Thu, 27 Aug 2009, Pasi Kärkkäinen wrote:> On Thu, Aug 27, 2009 at 03:27:36PM +0200, Longina Przybyszewska wrote: >> Hi, >> it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: >> >> I get - >> Error: "Block device must have "phy", "file", or "tap" specified to type" >> when I try ''xm create test.cfg". >> >> VM ''test'' has in config file ''drbd'' resource as block device. >> >> disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] >> >> Does anybody have success with this type of configuration on Ubuntu Hardy? >> > > drbd integration into xen is an external script. Just install it. > > See: > http://fghaas.wordpress.com/2007/09/03/drbd-806-brings-full-live-migration-for-xen-on-drbd/ > > -- Pasi > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- -- Longina Przybyszewska, system programmer IT@Naturvidenskab IMADA, Department of Mathematics and Computer Science University of Southern Denmark, Odense Campusvej 55,DK-5230 Odense M, Denmark tel: +45 6550 2359 - http://www.imada.sdu.dk email: longina@imada.sdu.dk -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Longina Przybyszewska
2009-Aug-27 14:23 UTC
Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
On Thu, 27 Aug 2009, Matt wrote:> Longina Przybyszewska wrote: >> Hi, >> it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: >> >> I get - >> Error: "Block device must have "phy", "file", or "tap" specified to type" >> when I try ''xm create test.cfg". >> >> VM ''test'' has in config file ''drbd'' resource as block device. >> >> disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] >> >> Does anybody have success with this type of configuration on Ubuntu Hardy? > > I had the same problems with my block-iscsi script. Maybe the > attached patch will work for you. This works for my paravirtualized > domUs, but not fully virtualized domUs.How you patched - and compiled? Do I have to get Xen-source from Ubuntu distribution? longina -- -- Longina Przybyszewska, system programmer IT@Naturvidenskab IMADA, Department of Mathematics and Computer Science University of Southern Denmark, Odense Campusvej 55,DK-5230 Odense M, Denmark tel: +45 6550 2359 - http://www.imada.sdu.dk email: longina@imada.sdu.dk -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Longina Przybyszewska wrote:> > On Thu, 27 Aug 2009, Matt wrote: > >> Longina Przybyszewska wrote: >>> Hi, >>> it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: >>> >>> I get - >>> Error: "Block device must have "phy", "file", or "tap" specified to >>> type" >>> when I try ''xm create test.cfg". >>> >>> VM ''test'' has in config file ''drbd'' resource as block device. >>> >>> disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] >>> >>> Does anybody have success with this type of configuration on Ubuntu >>> Hardy? >> >> I had the same problems with my block-iscsi script. Maybe the >> attached patch will work for you. This works for my paravirtualized >> domUs, but not fully virtualized domUs. > > How you patched - and compiled? Do I have to get Xen-source from Ubuntu > distribution?No, you have to edit a plain text python file, /usr/lib/python2.5/site-packages/xen/xend/server/blkif.py around line 59 it should say something like: if typ not in (''phy'', ''file'', ''tap''): Change it to say: if typ not in (''phy'', ''file'', ''tap'', ''drbd''): That should at least get you in the right direction if it doesn''t immediately help you. #matt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Longina Przybyszewska
2009-Aug-27 14:40 UTC
Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
Just tried it, as well as tried to compile: python /usr/lib/python2.5/py compile.py *.py - still getting the same error. Some debugging shows that - when I run ''xm create test.cfg'' - fail comes from /usr/lib/python2.5/site-packages/xen/util/blkif.py xen-utils-3.3 xen-hypervisor-3.3 kernel 2.6.24-24-xen Longina On Thu, 27 Aug 2009, Matt wrote:> Longina Przybyszewska wrote: >> >> On Thu, 27 Aug 2009, Matt wrote: >> >>> Longina Przybyszewska wrote: >>>> Hi, >>>> it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: >>>> >>>> I get - >>>> Error: "Block device must have "phy", "file", or "tap" specified to >>>> type" >>>> when I try ''xm create test.cfg". >>>> >>>> VM ''test'' has in config file ''drbd'' resource as block device. >>>> >>>> disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] >>>> >>>> Does anybody have success with this type of configuration on Ubuntu >>>> Hardy? >>> >>> I had the same problems with my block-iscsi script. Maybe the >>> attached patch will work for you. This works for my paravirtualized >>> domUs, but not fully virtualized domUs. >> >> How you patched - and compiled? Do I have to get Xen-source from Ubuntu >> distribution? > > No, you have to edit a plain text python file, > /usr/lib/python2.5/site-packages/xen/xend/server/blkif.py around > line 59 it should say something like: > > if typ not in (''phy'', ''file'', ''tap''): > > Change it to say: > > if typ not in (''phy'', ''file'', ''tap'', ''drbd''): > > That should at least get you in the right direction if it doesn''t > immediately help you. > > #matt > >-- -- Longina Przybyszewska, system programmer IT@Naturvidenskab IMADA, Department of Mathematics and Computer Science University of Southern Denmark, Odense Campusvej 55,DK-5230 Odense M, Denmark tel: +45 6550 2359 - http://www.imada.sdu.dk email: longina@imada.sdu.dk -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jochen Klotzbücher
2009-Aug-27 14:52 UTC
Re: [Xen-users] drbd integration in Xen3.3(Ubuntu)
Hi, you have to add ''drbd'' in /usr/lib64/python2.5/site-packages/xen/xend/server/blkif.py at line 59 .. else: try: (typ, params) = string.split(uname, '':'', 1) if typ not in (''phy'', ''file'', ''drbd'', ''tap''): raise VmError( ''Block device must have "phy", "file", "drbd" or "tap" '' ''specified to type'') ... remove /usr/lib64/python2.5/site-packages/xen/xend/server/blkif.pyc und restart xend or reboot. Jochen> Hi, > it seems that Xen3.3 in Ubuntu Hardy is missing integration with drbd: > > I get - > Error: "Block device must have "phy", "file", or "tap" specified to type" > when I try ''xm create test.cfg". > > VM ''test'' has in config file ''drbd'' resource as block device. > > disk = [''drbd:test-swap,xvda1,w'', ''drbd:test-disk,xvda2,w'' ] > > Does anybody have success with this type of configuration on Ubuntu Hardy? > > Longina > >-- Dipl.-Wi.-Ing. Jochen Klotzbücher Inline Online Internet Dienste GmbH Kaiserstr. 121 D-76133 Karlsruhe Tel: +49-721-96682-27, Fax: +49-721-96682-11 HRB 7454, Sitz Karlsruhe, Registergericht: Karlsruhe Geschäftsführer: Dr. Andreas Werner, Dr. Armin Zundel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users