[Pacemaker] DRBD not demoted when moving resources

Andrew Beekhof andrew at beekhof.net
Thu Apr 10 02:27:00 UTC 2014


On 9 Apr 2014, at 6:51 pm, Саша Александров <shurrman at gmail.com> wrote:

> Andrew,
> 
> Thanks for answer.
> I need to move a group, not just a clone.

I'm assuming the group is colocated with the master instance of that clone...
In which case, moving the master will also result in the group moving.

> 
> Actually, I just looked into the old cib file that was generated by crmsh.
> 
> There was lack of operations. Now, this works: 
> 
>             <op id="u01_drbd-start-0" interval="0" name="start" timeout="240"/>
>             <op id="u01_drbd-stop-0" interval="0" name="stop" timeout="100"/>
>             <op id="u01_drbd-monitor-20" interval="20" name="monitor" role="Slave" timeout="60">
>               <instance_attributes id="u01_drbd-monitor-20-instance_attributes">
>                 <nvpair id="u01_drbd-monitor-20-instance_attributes-depth" name="depth" value="0"/>
>               </instance_attributes>
>             </op>
>             <op id="u01_drbd-monitor-10" interval="10" name="monitor" role="Master" timeout="60">
>               <instance_attributes id="u01_drbd-monitor-10-instance_attributes">
>                 <nvpair id="u01_drbd-monitor-10-instance_attributes-depth" name="depth" value="0"/>
>               </instance_attributes>
>             </op>
> 
> However,  cib generated by pcs had only this:
> 
>           <operations>
>             <op id="u01_drbd-monitor-interval-15s" interval="15s" name="monitor"/>
>           </operations>
> 
> Replacing operations for different roles and depth attributes did the trick - now groups are moved as expected.
> 
> Best regards,
> Alexandr A. Alexandrov
> 
> 
> 2014-04-09 10:47 GMT+04:00 Andrew Beekhof <andrew at beekhof.net>:
> 
> 
> The second is implied by the first.
> 
> pcs help says:
> 
>     move <resource id> [destination node] [--master]
> 
> If you want to move the master instance of a clone, you need the --master keyword.
> 
> 
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140410/30666e62/attachment-0004.sig>


More information about the Pacemaker mailing list