Quote Originally Posted by hunter86_bg View Post
So you have 2 services 'R' & 'C'.
Then you need first to clone 'C'.
As 'C' depends on 'R' ,you want 'C-clone' to be restarted when 'R' restarts, right ?

This looks like the dlm & clvmd dependency but one of them is regular resource.

You have to:
1. Create a clone for 'C'
2. Set 2 order constraints (1 -> C starts after R, 2 -> C stops before R) that C is started after R. When R get migrated 'C-clone' will be stopped first, then R is started, then C-clone is started
You can use 'crm help' to check the syntax.
3. Test properly !
When you create the order rules , use C-clone instead of resource C.