Hi Guys,

Have a cluster of multiple nodes, which has a primitive resource, say 'R' and a clone resource 'C' (which should be running on all nodes).
Now the requirement is that whenever resource 'R' fails, 'C' should restart on the node where 'R' was running. Even if 'R' restarts on the same node, 'C' should have been restarted on the same node. But if 'R' gets migrated due to migration-threshold achieved, 'C' may not be restarted on target node.

My both resources 'R' and 'C' are systemd services. I am not able to find a way to achieve the above. Can somebody help ?

Thanks