Comment 10 for bug 1338594

Revision history for this message
Vladimir Kuklin (vkuklin) wrote : Re: crm commit is done using replace instead if patch

it should be worked around by following method:

instead of using live CIB:
1) create temporary shadow cib
2) run crm with this CIB and use configure load update
3) generate diff between live cib and this cib in corresponding scope:
   a) "resources" for resources and groups
   b) "constraints" for orders, locations and colocations
   c) "rsc_defaults" for rsc_defaults
4) generate a patch using crm_diff
5) fix xml patch by appending <cib> and <configuration> tags
6) apply the patch by using cibadmin -P --xml-file
7) clean up everything