[ClusterLabs] Can't See Why This Cluster Failed Over

Eric Robinson eric.robinson at psmnv.com
Mon Apr 10 02:56:10 EDT 2017

> crm configure show xml c_clust19

Here is what I am entering using crmsh (version 2.0-1):

colocation c_clust19 inf: [ p_mysql_057 p_mysql_092 p_mysql_187 ] p_vip_clust19 p_fs_clust19 p_lv_on_drbd0 ms_drbd0:Master
order o_clust19 inf: ms_drbd0:promote p_lv_on_drbd0 p_fs_clust19 p_vip_clust19 [ p_mysql_057 p_mysql_092 p_mysql_187 ]

After I save it, I get no errors, but it converts it to this...

colocation c_clust19 inf: [ p_mysql_057 p_mysql_092 p_mysql_187 ] ( p_vip_clust19:Master p_fs_clust19:Master p_lv_on_drbd0:Master ) ( ms_drbd0:Master )
order o_clust19 inf: ms_drbd0:promote ( p_lv_on_drbd0:start p_fs_clust19:start p_vip_clust19:start ) [ p_mysql_057 p_mysql_092 p_mysql_187 ]

This looks incorrect to me.

Here is the xml that it generates.

      <rsc_colocation id="c_clust19" score="INFINITY">
        <resource_set require-all="false" sequential="false" id="c_clust19-0">
          <resource_ref id="p_mysql_057"/>
          <resource_ref id="p_mysql_092"/>
          <resource_ref id="p_mysql_187"/>
          <resource_ref id="p_mysql_213"/>
          <resource_ref id="p_mysql_250"/>
          <resource_ref id="p_mysql_289"/>
          <resource_ref id="p_mysql_312"/>
          <resource_ref id="p_mysql_702"/>
          <resource_ref id="p_mysql_743"/>
          <resource_ref id="p_mysql_745"/>
          <resource_ref id="p_mysql_746"/>
          <resource_ref id="p_mysql_747"/>
          <resource_ref id="p_mysql_748"/>
        <resource_set id="c_clust19-1" sequential="false" role="Master">
          <resource_ref id="p_vip_clust19"/>
          <resource_ref id="p_fs_clust19"/>
          <resource_ref id="p_lv_on_drbd0"/>
        <resource_set role="Master" id="c_clust19-2" sequential="false">
          <resource_ref id="ms_drbd0"/>

The resources in set c_clust19-1 should start sequentially, starting with p_lv_on_drbd0 and ending with p_vip_clust19. I also don't understand why p_lv_on_drbd0 and p_vip_clust19 are getting the Master designation. 

Eric Robinson

More information about the Users mailing list