Hi list, I installed two new servers to be our virtualization HA. This servers have CentOS 5.2, Xen 3.0.3, Drbd 8.2.6. The setup is ok, lvm drbd resources sincronizing, Guest VM running without any problem. My only doubt is that I can only use drbd resources inside guest vms when I specify the disk resource in vms config like this: disk = ['phy:/dev/VolGroup00/vappprtem01,hda,w' ] if I specify de disk like: disk = [drbd:vappprtem01,hda,w' ] The Guest VM found the disk but this appear with zero size. As far what I read the second way is the correct to live migration work without any race condiction... This link say that centos has a problem with block-drbd script provided by drbd, is anybody aware of that ? http://lists.xensource.com/archives/html/xen-users/2008-08/msg00176.html Any hints ? Best Regards,
On 8/25/08, Alexandre Biancalana <biancalana at gmail.com> wrote:> Hi list, > > I installed two new servers to be our virtualization HA. This servers > have CentOS 5.2, Xen 3.0.3, Drbd 8.2.6. The setup is ok, lvm drbd > resources sincronizing, Guest VM running without any problem. > > My only doubt is that I can only use drbd resources inside guest vms > when I specify the disk resource in vms config like this: > > disk = ['phy:/dev/VolGroup00/vappprtem01,hda,w' ] > > if I specify de disk like: > > disk = [drbd:vappprtem01,hda,w' ] > > The Guest VM found the disk but this appear with zero size. > > As far what I read the second way is the correct to live migration > work without any race condiction... > > This link say that centos has a problem with block-drbd script > provided by drbd, is anybody aware of that ? > > http://lists.xensource.com/archives/html/xen-users/2008-08/msg00176.htmlThis is a know problem ??? Any ideas ??? Regards,
Hi, after i've read this post http://article.gmane.org/gmane.comp.emulators.xen.user/33157/match=re+xen+drbd I've given up on xen and drbd disks for now, and am using phy:, but you'll have to give it drbd device not the volume disk = [ "phy:/dev/drbd14,xvda,w" ] Unfortunately, that means that you'll have to handle setting drbd devices primary/secondary yourself. I've written a wrapper script around drbdadm+xm and it has been working more or less ok. That also means no live migration since drbd device needs to change state sometime mid-migration, but save/move/restore has been working ok for me with really minimal downtimes. There is also a primary/primary setup with newer drbd but it was awfully unstable when i was testing it a few moths ago, most of the time it was crashing and taking down the complete cluster with it. regards, Alexandre Biancalana wrote:> Hi list, > > I installed two new servers to be our virtualization HA. This servers > have CentOS 5.2, Xen 3.0.3, Drbd 8.2.6. The setup is ok, lvm drbd > resources sincronizing, Guest VM running without any problem. > > My only doubt is that I can only use drbd resources inside guest vms > when I specify the disk resource in vms config like this: > > disk = ['phy:/dev/VolGroup00/vappprtem01,hda,w' ] > > if I specify de disk like: > > disk = [drbd:vappprtem01,hda,w' ] > > The Guest VM found the disk but this appear with zero size. > > As far what I read the second way is the correct to live migration > work without any race condiction... > > This link say that centos has a problem with block-drbd script > provided by drbd, is anybody aware of that ? > > http://lists.xensource.com/archives/html/xen-users/2008-08/msg00176.html > > Any hints ? > > Best Regards, > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > http://lists.centos.org/mailman/listinfo/centos-virt >-- Aleksandar Ivanisevic Support Manager 2e Systems Tel: +49 - 6196 - 950 58 14 Fax: +49 - 6196 - 950 58 94 E-mail: Aleksandar.Ivanisevic at 2e-systems.com Address: 2e Systems GmbH, Im Taubengrund 12, D-65451 Kelsterbach Company registration: Amtsgericht Darmstadt (Germany), HRB 84110 Directors: Philip Douglas, Alistair Forbes http://www.2e-systems.com - making your business fly!
Alexandre Biancalana wrote:> > Hi list, > > I installed two new servers to be our virtualization HA. This servers > have CentOS 5.2, Xen 3.0.3, Drbd 8.2.6. The setup is ok, lvm drbd > resources sincronizing, Guest VM running without any problem. > > My only doubt is that I can only use drbd resources inside guest vms > when I specify the disk resource in vms config like this: > > disk = ['phy:/dev/VolGroup00/vappprtem01,hda,w' ] > > if I specify de disk like: > > disk = [drbd:vappprtem01,hda,w' ] > > The Guest VM found the disk but this appear with zero size. > > As far what I read the second way is the correct to live migration > work without any race condiction... > > This link say that centos has a problem with block-drbd script > provided by drbd, is anybody aware of that ? > > http://lists.xensource.com/archives/html/xen-users/2008-08/msg00176.html > > Any hints ?Just specify the drbd devices directly as: disk = ['phy:/dev/drbd0,hda,w' ] And you should be ok. There is no need to use the scripts. Be sure you don't specify the underlying device, but the drbd device! Using the underlying device will cause the replicas to become out-of-sync as what is written to the underlying device will not be replicated and a consistency check will bring your drbd resources offline! You are also going to want to use the multi-master as master-slave is too difficult to get to work properly between xend and heartbeat! -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.