RE: [CentOS-virt] xen+drbd Question

2008-08-27 Thread Ross S. W. Walker
Jerry Amundson wrote:
 
 yes. i replied to myself.

Talking to yourself is the first sign of insanity!

The second being, disagreeing with the first.

 On Tue, Aug 26, 2008 at 10:56 PM, Jerry Amundson [EMAIL PROTECTED] wrote:
  On Tue, Aug 26, 2008 at 11:25 AM, Ross S. W. Walker [EMAIL PROTECTED] 
  wrote:
  Alexandre Biancalana wrote:
  On 8/26/08, Ross S. W. Walker [EMAIL PROTECTED] wrote:
If you upgrade to xen.org release of Xen then you can use the
block-drbd script to specify by drbd resource name instead of
device, but that's just fluff in stuff, and doesn't have
anything to do with the ability to live migrate which is all
handled by the allow-two-primaries option.
 
  True. In my case : CentOS 5.3, incl. kernel-xen and heartbeat, Xen.org
  3.x, DRBD 8.2.
  It works, but has no cookie-cutter howto.
 
  Are you saying that we can only use block-drbd script with Xen 3.2 ?
 
  It's really not so much the Xen version, but the distro.
 
 more so, within the distro, the bootstrap method used for the domU

More specifically 'pygrub' itself as mentioned below.

  It might work with the Xen 3.1 libraries too, but that's also
  irrelevant as CentOS/RHEL has decided to use the Xen 3.0.3
  libraries (though they are using the Xen 3.1 hypervisor, go
  figure!).
 
  How did you determine they are different versions?
 
 oh, maybe the thread I just noticed in xen-users?
 http://lists.xensource.com/archives/html/xen-users/2008-08/msg00791.html
 where Pasi says,
 - To be more clear about it, RHEL 5.2 version of Xen _hypervisor_ is 3.1.2 +
 - patches.
 - RHEL 5.2 kernel-xen is based on older Xen (3.0.3 iirc) kernel code.

Actually I found the version information through a 'xm info' which
shows it's running 3.1, but the libraries and supporting apps are
all 3.0.3.

xen_major  : 3
xen_minor  : 1
xen_extra  : .2-92.1.10.el5
xen_caps   : xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p

  Linbit wrote the block-drbd script for Xen 3.1 (maybe 3.2) and
  up, but definitely not pre-3.1.
 
  For the definitive answer though I recommend posting on
  drbd-user. Someone there might even have a work-around to
  get it to work on earlier Xen libraries...
 
  http://lists.linbit.com/pipermail/drbd-user/2008-August/010077.html
 

Ah so the culprit is pygrub, add that tidbit to my knowledge base.

So if you define the kernel and ramdisk from external sources
then the block script should work, but using pygrub, it only
recognizes standard block devices.

I suppose this will also affect the block-iscsi script out there
too...

It would be nice if someone could patch pygrub to look for
handler scripts for any device NOT file, tap, phy and to use
them to bootload as it's better IMHO to manage the domU's
kernel and ramdisk from within the domU.

-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.

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] xen+drbd Question

2008-08-26 Thread Aleksandar Ivanisevic

Lorenzo Quatrini wrote:

I was just starting doing some test following this article:

http://fghaas.wordpress.com/2007/09/03/drbd-806-brings-full-live-migration-for-xen-on-drbd/

So if you say that doesn't work I'll give up on this and I'll go directly to
Openvz (actually proxmox)


Eh, never trust someone you met over the Internet ;) I've actually used 
that same page as a starting point for my tests and it's definitely not 
usable for me.


Don't know much about proxmox but it seems to be the right approach, use 
openvz for stuff that is distro/kernel/OS agnostic and KVM/XEN/whatever 
for full virtualization.


I'm now trying to achieve the same thing using openvz-xen kernel, but 
only not to waste all the work i've invested in getting the xen cluster 
going. Maybe I'll move to kvm after all, but I don't know yet if it 
would read xen disk images.



___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


RE: [CentOS-virt] xen+drbd Question

2008-08-26 Thread Ross S. W. Walker
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.

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] xen+drbd Question

2008-08-26 Thread Jerry Amundson
On Tue, Aug 26, 2008 at 11:25 AM, Ross S. W. Walker
[EMAIL PROTECTED] wrote:
 Alexandre Biancalana wrote:
 On 8/26/08, Ross S. W. Walker [EMAIL PROTECTED] wrote:
   If you upgrade to xen.org release of Xen then you can use the
   block-drbd script to specify by drbd resource name instead of
   device, but that's just fluff in stuff, and doesn't have
   anything to do with the ability to live migrate which is all
   handled by the allow-two-primaries option.

True. In my case : CentOS 5.3, incl. kernel-xen and heartbeat, Xen.org
3.x, DRBD 8.2.
It works, but has no cookie-cutter howto.

 Are you saying that we can only use block-drbd script with Xen 3.2 ?

It's really not so much the Xen version, but the distro.

 It might work with the Xen 3.1 libraries too, but that's also
 irrelevant as CentOS/RHEL has decided to use the Xen 3.0.3
 libraries (though they are using the Xen 3.1 hypervisor, go
 figure!).

How did you determine they are different versions?

 Linbit wrote the block-drbd script for Xen 3.1 (maybe 3.2) and
 up, but definitely not pre-3.1.

 For the definitive answer though I recommend posting on
 drbd-user. Someone there might even have a work-around to
 get it to work on earlier Xen libraries...

http://lists.linbit.com/pipermail/drbd-user/2008-August/010077.html

jerry

-- 
There's plenty of youth in America - it's time we find the fountain of smart.
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt