[Pacemaker] DRBD not demoted when moving resources

Саша Александров shurrman at gmail.com
Wed Apr 9 04:51:14 EDT 2014


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

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"
            <op id="u01_drbd-stop-0" interval="0" name="stop"
            <op id="u01_drbd-monitor-20" interval="20" name="monitor"
role="Slave" timeout="60">
                <nvpair id="u01_drbd-monitor-20-instance_attributes-depth"
name="depth" value="0"/>
            <op id="u01_drbd-monitor-10" interval="10" name="monitor"
role="Master" timeout="60">
                <nvpair id="u01_drbd-monitor-10-instance_attributes-depth"
name="depth" value="0"/>

However,  cib generated by pcs had only this:

            <op id="u01_drbd-monitor-interval-15s" interval="15s"

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140409/49bb8d9c/attachment-0003.html>

More information about the Pacemaker mailing list