
--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
Содержание LINUX ENTERPRISE 11 - HIGH AVAILABILITY
Страница 10: ......
Страница 11: ...Part I Installation and Setup...
Страница 12: ......
Страница 28: ......
Страница 38: ......
Страница 39: ...Part II Configuration and Administration...
Страница 40: ......
Страница 68: ......
Страница 108: ......
Страница 114: ......
Страница 115: ...Part III Storage and Data Replication...
Страница 116: ......
Страница 126: ......
Страница 140: ......
Страница 141: ...Part IV Troubleshooting and Reference...
Страница 142: ......
Страница 148: ......
Страница 166: ...See Also cibadmin 8 page 142 156 High Availability Guide...
Страница 202: ......
Страница 210: ......
Страница 231: ...OCF_RESKEY_arp_mac ARP MAC MAC address to send the ARP packets to For advanced users only HA OCF Agents 221...
Страница 246: ...OCF_RESKEY_nfs_ip IP address The floating IP address used to access the the nfs service 236 High Availability Guide...
Страница 285: ...Part V Appendix...
Страница 286: ......