[Pacemaker] rsc_order plus resource_set problem

Dejan Muhamedagic dejanmm at fastmail.fm
Mon Aug 9 11:53:24 UTC 2010


Hi,

On Sun, Aug 08, 2010 at 09:00:37PM +0800, Michael Fung wrote:
> Hello again,
> 
> I have a long list of resources that must be started in order, so I
> followed the "Pacemaker 1.0 Configuration Explained" doc, to write it
> like that:
> 
> (the constraints scope was originally blank as <constraints />)
> <constraints>
>         <rsc_order id="order-vzfs">
>                 <resource_set id="ordered-set-vzfs" sequential="true">
>                         <resource_ref id="clone_iscsi_svc"/>
>                         <resource_ref id="clone_iscsi"/>
>                         <resource_ref id="clone_dlm"/>
>                         <resource_ref id="clone_clvm"/>
>                         <resource_ref id="clone_o2cb"/>
>                         <resource_ref id="clone_vzfs"/>
>                 </resource_set>
>         </rsc_order>
> </constraints>

There's no score specified.

> Then, imported it by:
> 
> cibadmin --replace --scope constraints --xml-file order-vzfs.xml
> 
> But, pacemaker did not obey the order. And "crm configure show"
> said something like "order-vzfs cannot be represented in the CLI
> notation". The whole section is displayed with a xml prefix.

Why didn't you use the crm shell in the first place?

> I have to revert to the clumsy:
> 
> order iscsi-after-iscsi_svc inf: clone_iscsi_svc clone_iscsi
> order dlm-after-iscsi inf: clone_iscsi clone_dlm
> order clvm-after-dlm inf: clone_dlm clone_clvm
> order o2cb-after-clvm inf: clone_clvm clone_o2cb
> order vzfs-after-o2cb inf: clone_o2cb clone_vzfs
> 
> Any ideas?

Replace these order constraints with one:

order order-vzfs inf: clone_iscsi_svc clone_iscsi clone_dlm ...

and retry. If the constraint still doesn't work please file a
bugzilla and attach a hb_report.

Thanks,

Dejan

> pacemaker 1.0.9.1-2 from debian squeeze.
> 
> 
> Rgds,
> Michael
> 
> 
> 
> _______________________________________________
> 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