Hi All, I''m looking for some pointers and gotchas regarding implementing DRBD and XEN on Centos 5.5 I have a Dom0 with Centos 5.5, drbd-8.3.8 and xen 3.4.3. I''m able to create a DomU with the drbd backed device as it''s storage, however, when I attempt to use the drbd: syntax in the config so that pygrub can boot the domU, it fails with Error: Boot loader didn''t return any data! Should I the following to overcome this issue or has this been fixed and am I doing something wrong? "... qemu-dm wrapper script found at this URL: http://www.antibozo.net/xen/qemu-dm.drbd" Thanks in advance Simon. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi All,> -----Original Message----- > I''m looking for some pointers and gotchas regarding implementing DRBD > and > XEN on Centos 5.5 > > I have a Dom0 with Centos 5.5, drbd-8.3.8 and xen 3.4.3. I''m able to > create > a DomU with the drbd backed device as it''s storage, however, when I > attempt > to use the drbd: syntax in the config so that pygrub can boot the domU, > it > fails with Error: Boot loader didn''t return any data! > > Should I the following to overcome this issue or has this been fixed > and am > I doing something wrong? > > "... qemu-dm wrapper script found at this URL: > http://www.antibozo.net/xen/qemu-dm.drbd"I''ve done some further testing and found that the scripts that come with xen for DRBD don''t work using the drbd: syntax in the DomU.conf file. They are unable to bring a drbd resource into the primary state and even if the resource is in a primary state pygrub cannot find the resource to boot. What does work is http://www.antibozo.net/xen/qemu-dm.drbd" - this will bring the drbd resource into primary and boot from it :-) - Thanks Jefferson Ogata for this script. I have also managed to live migrate the domain by promoting to primary the drbd resource on the destination server and then issuing the standard xm migrate -l DomU destination command. The (in my case) pvm migrated over seamlessly and without any problems. The promotion to primary has to be manually done i.e. drbdadm primary "drbdresource" on the destination host. I think that the next thing is heartbeat for HA :-) Cheers Simon. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Aug 9, 2010 at 9:53 PM, Simon Billis <simon@houxou.com> wrote:> I have also managed to live migrate the domain by promoting to primary the > drbd resource on the destination server and then issuing the standard xm > migrate -l DomU destination command. The (in my case) pvm migrated over > seamlessly and without any problems. The promotion to primary has to be > manually done i.e. drbdadm primary "drbdresource" on the destination host.The main advantage of using drbd: (if it works) is that it should take care of making resources primary as necessary. If you do it manually anyway, simply use primary on both with phy:/dev/drbd/by-res/ -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Fajar A. Nugraha sent a missive on 2010-08-09:> On Mon, Aug 9, 2010 at 9:53 PM, Simon Billis <simon@houxou.com> wrote: >> I have also managed to live migrate the domain by promoting to primary >> the drbd resource on the destination server and then issuing the >> standard xm migrate -l DomU destination command. The (in my case) pvm >> migrated over seamlessly and without any problems. The promotion to >> primary has to be manually done i.e. drbdadm primary "drbdresource" > on the destination host. > > The main advantage of using drbd: (if it works) is that it should take > care of making resources primary as necessary. If you do it manually > anyway, simply use primary on both with phy:/dev/drbd/by-res/ >Indeed - But I couldn''t get it to work.... was there something that I missed? Rgds Simon. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, Aug 9, 2010 at 10:29 PM, Simon Billis <simon@houxou.com> wrote:> Fajar A. Nugraha sent a missive on 2010-08-09: >> The main advantage of using drbd: (if it works) is that it should take >> care of making resources primary as necessary. If you do it manually >> anyway, simply use primary on both with phy:/dev/drbd/by-res/ >> > > Indeed - But I couldn''t get it to work.... was there something that I > missed?Not really. That''s why I said IF it works. Reading the documentation, it supposed to work some versions back, but I never got it to work (similar setup as yours). In the end I simply use phy:/dev/drbd/by-res/ (which works without having to hack any script), and setup both nodes to be primary if I need live migration. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha sent a missive on 2010-08-10:> On Mon, Aug 9, 2010 at 10:29 PM, Simon Billis <simon@houxou.com> wrote: >> Fajar A. Nugraha sent a missive on 2010-08-09: >>> The main advantage of using drbd: (if it works) is that it should >>> take care of making resources primary as necessary. If you do it >>> manually anyway, simply use primary on both with >>> phy:/dev/drbd/by-res/ >>> >> >> Indeed - But I couldn''t get it to work.... was there something that >> I missed? > > Not really. That''s why I said IF it works. > Reading the documentation, it supposed to work some versions back, but > I never got it to work (similar setup as yours). In the end I simply > use phy:/dev/drbd/by-res/ (which works without having to hack any > script), and setup both nodes to be primary if I need live migration. >Good to know, it will save me some more time looking for an answer :-). Thanks S. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users