[Pacemaker] Order rule added with "crm configure" is truncated

Superkikim superkikim at sissaoui.com
Sat Dec 13 23:17:47 UTC 2008


Hi,

 

I'm trying to use Pacemaker to implement a cluster. For now, I'm just trying
to handle the drbd device. Later, I will add scripts for VMWare Server.

 

I followed the document at
http://www.clusterlabs.org/mw/DRBD_HowTo_1.0#Configuring_the_resource_in_the
_CIB. It's quite clear and simple. 

 

But when I get to the order rule, I get some problems:

 

Configuration before I add the "order" constrain:

 

primitive da01 ocf:heartbeat:drbd \

        params drbd_resource="da01" \

        operations $id="da01-ops" \

        op monitor interval="59s" role="Master" timeout="30s" \

        op monitor interval="60s" role="Slave" timeout="30s"

primitive da01fs ocf:heartbeat:Filesystem \

        params fstype="ext3" directory="/vms/da01" device="/dev/drbd6" \

        meta target-role="Started"

group da01-group da01fs

ms ms-da01 da01 \

        meta clone-max="2" notify="true" globally-unique="false"
target-role="Stopped"

 

Verify does not give an error, except the fact I'm not using stonish.

 

Then, I add:

 

order ms-da01-before-da01-group mandatory: ms-da01:promote da01-group:start

 

And the result in show is:

 

primitive da01 ocf:heartbeat:drbd \

        params drbd_resource="da01" \

        operations $id="da01-ops" \

        op monitor interval="59s" role="Master" timeout="30s" \

        op monitor interval="60s" role="Slave" timeout="30s"

primitive da01fs ocf:heartbeat:Filesystem \

        params fstype="ext3" directory="/vms/da01" device="/dev/drbd6" \

        meta target-role="Started"

group da01-group da01fs

ms ms-da01 da01 \

        meta clone-max="2" notify="true" globally-unique="false"
target-role="Stopped"

order ms-da01-before-da01-group INFINITY:

 

Then, I get an error with verify: 

 

ERROR: object cli-prefer-ms-da01 cannot be represented in the CLI notation

ERROR: object ms-da01-before-da01-group cannot be represented in the CLI
notation

 

The question is: Why the "order" rule is truncated and replaced  ?

 

If I delete ms-da01-before-da01-group, both error messages get away.

 

Any help welcome.

 

Regards

 

Akim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20081214/94bace87/attachment-0002.html>


More information about the Pacemaker mailing list