
--cib
,
-c
Compare or patch the inputs as a CIB. Always specify the base version with
-o
and provide either the patch file or the second version with
-p
or
-n
, respectively.
--stdin
,
-s
Read the inputs from stdin.
Examples
Use crm_diff to determine the differences between various CIB configuration files and
to create patches. By means of patches, easily reuse configuration parts without having
to use the cibadmin command on every single one of them.
1
Obtain the two different configuration files by running cibadmin on the two
cluster setups to compare:
cibadmin -Q >
cib1
.xml
cibadmin -Q >
cib2
.xml
2
Determine whether to diff the entire files against each other or compare just a
subset of the configurations.
3
To print the difference between the files to stdout, use the following command:
crm_diff -o
cib1
.xml -n
cib2
.xml
4
To print the difference between the files to a file and create a patch, use the fol-
lowing command:
crm_diff -o
cib1
.xml -n
cib2
.xml >
patch
.xml
5
Apply the patch to the original file:
crm_diff -o
cib1
.xml -p
patch
.xml
Files
/var/lib/heartbeat/crm/cib.xml
—the CIB (minus status section) on disk.
Editing this file directly is strongly discouraged.
Cluster Management Tools
155
Summary of Contents for LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Page 10: ......
Page 11: ...Part I Installation and Setup...
Page 12: ......
Page 28: ......
Page 38: ......
Page 39: ...Part II Configuration and Administration...
Page 40: ......
Page 68: ......
Page 108: ......
Page 114: ......
Page 115: ...Part III Storage and Data Replication...
Page 116: ......
Page 126: ......
Page 140: ......
Page 141: ...Part IV Troubleshooting and Reference...
Page 142: ......
Page 148: ......
Page 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Page 202: ......
Page 210: ......
Page 285: ...Part V Appendix...
Page 286: ......