[Pacemaker] Problem with Xen live migration

Vladislav Bogdanov bubble at hoster-ok.com
Tue Jan 18 08:40:23 EST 2011


> Unless clustered LVM locking is enabled and working:
> # sed -ri 's/^([ \t]+locking_type).*/    locking_type = 3/'
> /etc/lvm/lvm.conf
> # sed -ri 's/^([ \t]+fallback_to_local_locking).*/
> fallback_to_local_locking = 1/' /etc/lvm/lvm.conf
> # vgchange -cy VG_NAME
> # service clvmd start
> # vgs|grep VG_NAME
> 
> Of cause, this may vary from one distro to another.
> 
> Further step can be declaring clvmd as a pacemaker clone resource (but
> stock Fedora clvmd LSB script is badly suitable for this, so I use
> slightly modified version of OSF RA published by Novell).
> 
> BTW config above has master-max="2"...
> The only thing missing there is a clone for groLVM-OCFS (or clones for
> individual primitives + extra colocations/orders).
> 
> Jean-Francois, you can try (assuming you set up cLVM):
> primitive resDRBDr1 ocf:linbit:drbd params drbd_resource="r1" ...
> primitive resLVM ocf:heartbeat:LVM params volgrpname="xen_vg" ...
> primitive resOCFS2 ocf:heartbeat:Filesystem fstype="ocfs2" ...
> primitive resXen1 ocf:heartbeat:Xen \
>        params xmfile="/etc/xen/xen1cfg" name="xen1" \
>        meta allow-migrate="true"
> group groLVM-OCFS resLVM resOCFS2
> clone cl-groLVM-OCFS groLVM-OCFS \
>        meta interleave="true"
> ms msDRBDr1 resDRBDr1 \
>        meta notify="true" master-max="2" interleave="true"
> colocation colLVM-OCFS-on-DRBDr1Master inf: cl-groLVM-OCFS msDRBDr1:Master
> colocation colXen-with-OcfsXen inf: resXen1 cl-groLVM-OCFS
> order ordDRBDr1-before-LVM inf: msDRBDr1:promote cl-groLVM-OCFS:start
> order ordLVM-OCFS-before-Xen inf: cl-groLVM-OCFS:start resXen1:start

Ah, you should also run dlm_controld before clvmd (or dlm_controld.pcmk,
depending on what stack does your cluster use) and ocfs2_controld(.pcmk)
in parallel with clvmd. This is outlined in pacemaker docs.

> 
> This should help (I use something similar for KVM with live migration).
> 
> Best,
> Vladislav
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker





More information about the Pacemaker mailing list