[Pacemaker] IP Range Failover with IPaddr2 and clone / globally-unique="true"

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Jan 24 18:16:37 EST 2012


On Wed, Jan 25, 2012 at 12:00:11AM +0100, Dejan Muhamedagic wrote:
> On Tue, Jan 24, 2012 at 09:34:55PM +0000, Reid, Mike wrote:
> > You would think so :) I waited 2-3x the monitor interval in hopes the
> > Failed resources would eventually be setup, but that was not the case.
> 
> monitor does only monitor, no recovery.
> 
> > To
> > Dejan's point, I could have checked the logs to look for something more
> > specific, but I did not. I've not heard of ocf_tester, perhaps it could
> > shed some light on the behavior I was experiencing? Thanks for the tip!
> 
> ocf-tester is good to figure out what's happening to a particular
> resource.

Scratch that, you need a cloned resource to see all IP addresses.
So, it won't do to use ocf-tester in this case. BTW, this is one
configuration that worked for me (for 24 IP addresses):

primitive many ocf:heartbeat:IPaddr2 \
        params ip="10.2.13.101" cidr_netmask="24" unique_clone_address="true"
clone cmany many \
		meta globally-unique="true" clone-max="24" clone-node-max="8"

Thanks,

Dejan


> Thanks,
> 
> Dejan
> 
> > >>> Dejan,
> > >>>
> > >>> Regarding the stability: In my two node cluster testing,
> > >>> unfortunately
> > >>> multiple times (on each node) when managing multiple IP Ranges via
> > >>> unique_clone_address, more than one of the IPs failed to create.
> > >>> The
> > >>> default monitor settings were still in effect, but the IP was never
> > >>> created until a manual "crm resource cleanup" was performed.
> > >>What does "monitor setting" have to do with creating IP
> > >>addresses?
> > >
> > >Not my forte but from my limited knowledge wouldn't the monitor operation
> > >restart the "FAILED" IP's that didn't create properly once the monitor
> > >interval passed and the monitor operation found the "failed" resource?
> > >
> > 
> > 
> > _______________________________________________
> > 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://bugs.clusterlabs.org
> 
> _______________________________________________
> 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://bugs.clusterlabs.org




More information about the Pacemaker mailing list