[Pacemaker] DRBD on pacemaker

Andrew Beekhof beekhof at gmail.com
Thu Nov 27 05:26:03 EST 2008


On Nov 27, 2008, at 10:56 AM, Michael Schwartzkopff wrote:

> Hi,
>
> I was playing around with DRBD on pacemaker and got stuck a little  
> bit.
>
> System: Ubuntu 8.0.4-2, pacemaker 1.0.1-1 from SuSE Build server.
>
> 1) Creating a Master-Slave resource with the GUI is a nightmare.  
> Sorry.

Perhaps try Dejan's crm shell instead.
I had the opportunity to use it the other day (CTS now uses it to  
generate test configs) and its pretty nice.

>
> The GUI asks for meta-attributes of the Master (clone-max, ...) in  
> the window
> of the instance attributes (!) of the primivite resource. They are  
> even
> marked there as required.
>
> If you do not know the XML way of configuration and know old  
> heartbeat style a
> user is completely lost here. There is no intuitive way to enter the  
> resource
> any more. The GUI does not guide you through the setup.
> You have to know what you want are search in the various parts of  
> the GUI
> where to enter the information. Sorry, but I do feel that the old  
> GUI did
> help more then the new.
>
> After all I managed to enter this resource:
> <master id="master_DRBD_r0">
>        <meta_attributes id="master_DRBD_r0-meta_attributes">
>          <nvpair id="nvpair-1692df19-d525-4a9b-8644-e36f6b5fa185"
> name="clone-max" value="2"/>
>          <nvpair id="nvpair-1f987186-c0dd-4f72-9e1c-ddd71e7ac320"
> name="clone-node-max" value="1"/>
>          <nvpair id="nvpair-4203af61-7f70-47aa-8114-f7af01f15732"
> name="master-max" value="1"/>
>          <nvpair id="nvpair-445c54f0-6e97-40b2-a6f1-074b947f24c7"
> name="master-node-max" value="1"/>
>        </meta_attributes>
>        <primitive class="ocf" id="master_DRBD_r0-primitive"
> provider="heartbeat" type="drbd">
>          <instance_attributes
> id="master_DRBD_r0-primitive-instance_attributes">
>            <nvpair id="nvpair-05ba53f7-6ea0-42a8-8404-39720acaf808"
> name="drbd_resource" value="r0"/>
>          </instance_attributes>
>        </primitive>
>      </master>
>
> 2) This resource started but no instance was promoted to master.  
> When I use
> 2.1.4 of heartbeat one instance is automatically promoted. Is this  
> different
> in pacemaker?

It depends on whether the RA has set a master preference using the  
crm_master command.

Its also possible that the CRM "lost" the value set by crm_master :-(
The good news is that I spent some time on this with Dominik on Monday  
and this has now been rectified for 1.0.2

Basically all transient node attributes (like standby and those set by  
crm_master) are now set via attrd so that they can be regenerated when  
the CIB is replaced/erased/reconstructed by the DC.

> 3) When I added a location constratint to award the master with 100  
> points
> when running one node petra21, the instance was really promoted on  
> this node
> and running as master. But setting this node to standby the instance  
> on the
> other node was not promoted but stayed secondary.

Right - because there is likely no master preference set for that node.

> On my old 2.1.4 system the
> surviving instance was automatically promoted. Is this different in
> pacemaker? What else do I have to enter/configure?
>
> Greetings,
>
> -- 
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: misch at multinet.de
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker





More information about the Pacemaker mailing list