[Pacemaker] Configuring Pacemaker & DRBD

Cliff Massey cliffm304 at cliffmassey.com
Fri Oct 7 15:23:09 EDT 2011


I  meant 8.40 :)

 I ended up deciding to use Corosync instead of Heartbeat and it is working now. Now I'm configuring a KVM resource to depend on drbd. The KVM machine is started by Pacemaker,  but when I try "resource migrate" to move it to the other node nothing happens.

I've posted my CIB dump at patstebin: http://pastebin.com/EgLxRS0c and the log messages are http://pastebin.com/7f18RqHc

On Oct 5, 2011, at 8:37 AM, Florian Haas wrote:

> On 2011-09-29 01:25, Cliff Massey wrote:
>> 
>> I'm trying to configure Pacemaker to manage a drbd resource on a two-node RHEL 6 cluster by the following guide: http://www.clusterlabs.org/wiki/DRBD_HowTo_1.0
>> 
>> drbd is 8.04 and works outside of Pacemaker.
> 
> 8.04? Let's hope you mean 8.4.0. :)
> 
>> My configuration is very simple:
>> 
>> primitive convirt_drbd ocf:linbit:drbd \
>> 	params drbd_resource="convirt" \
>> 	op monitor interval="59s" role="Master" timeout="30s" \
>> 	op monitor interval="60s" role="Slave" timeout="30s"
>> ms ms-convirt convirt_drbd \
>> 	meta clone-max="2" notify="true" globally-unique="false" target-role="Started"
>> property $id="cib-bootstrap-options" \
>> 	dc-version="1.1.5-5.el6-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \
>> 	cluster-infrastructure="Heartbeat" \
>> 	expected-quorum-votes="2" \
>> 	no-quorum-policy="ignore" \
>> 	symmetric-cluster="false" \
>> 	stonith-enabled="false"
>> rsc_defaults $id="rsc-options" \
>> 	resource-stickiness="200"
>> 
>> I start the resource by using: resource start ms-convirt.
> 
> That's kinda pointless. You don't have to do that with a Master/Slave
> resource.
> 
> However, the resource doesn't start:
>> 
>> drbd-overview
>> drbd not loaded
>> 
>> Am I missing any steps?
> 
> You didn't give much additional information, so we're a bit reduced to
> guesswork. My guess is that Pacemaker previously attempted to promote
> the resource, failed, recorded the failcount, and you didn't clear it so
> it doesn't try again. But like I said -- it's just a guess.
> 
> DRBD configuration and a CIB dump (cibadmin -Q) would be helpful, but
> don't post those here -- instead upload them to pastebin, fpaste, pastie
> or similar and post the link here.
> 
> The DRBD log snippet you gave in your followup post is also
> inconclusive; one would expect that there are some messages prior to
> "drbd0: disk( UpToDate -> Failed )". So you may want to include your
> kernel log in that paste also.
> 
> Cheers,
> Florian
> 
> -- 
> Need help with Pacemaker?
> http://www.hastexo.com/now
> 
> _______________________________________________
> 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