Highlighted
  • 81 Views

RH436 Cluster Query

In lab we have created two resources dlm and clvmd  as clones and then created constrain to start them in order and then colocation constraint. 

My question is why are we adding colocation constraints on clone ? Cloned resources are supposed to be running on all nodes anyway. I have faced similar issue in production where we had colocation contraints on cloned resources which resulted in unexpected results. 

So do we really need to have colocation contraint on cloned resources ? 
[root@nodea ~]# pcs resource create dlm controld op monitor interval=30s on-fail=fence clone interleave=true ordered=true

[root@nodea ~]# pcs resource create clvmd clvm op monitor interval=30s on-fail=fence clone interleave=true ordered=true

[root@nodea ~]# pcs constraint order start dlm-clone then clvmd-clone

[root@nodea ~]# pcs constraint colocation add clvmd-clone with dlm-clone

 

0 Kudos
Join the discussion
You must log in to join this conversation.