Novell SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT Manual page 87

Hide thumbs Also See for SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT:
Table of Contents

Advertisement

--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.
Managing a Cluster
79

Advertisement

Table of Contents
loading

Table of Contents