<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>hi, <br></div>in examples using crmsh to create a resource with constraints is an interactive mode is used<br><br></div>crm configure edit     <br>

</div>  > primitive   B<br></div>  > order        B_after_A <br></div>  > colocation B_on_A<br></div>  > commit<br></div>  > end <br></div> quit<br><br></div>when resource B depends on another resource A that is running once on Node0 <br>
</div><div>(or as master/slave on both nodes, as master on Node0, slave on Node1) <br>
</div>and i call<br></div>`crm configure primitive B ...`<br></div><div><br>will in first attempt (not necessarily) the new resource A started on Node1 till i define the constraints <br></div><div>`crm configure colocation c_B_on_A inf: B A`<br>
? <br><br></div><div>and is this the reason for a 'failed action' on Node1 <br></div><div>that can get cleaned up with `crm_resource -P` for instance ? <br></div><br></div>how can i achieve such a session-like creation of a resource with constraints <br>
</div>from out of a script ? ( i have prepared for each resource a s_xxx.sh and k_xxx.sh (start/kill) <br></div><div>to add and remove .. ) <br></div><div><br></div>thanks in advance <br>andreas <br></div>