Updating The Configuration - Novell SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT Manual

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

Advertisement

Details on all the available options can be obtained using the crm_mon --help
command.

5.1.2 Updating the Configuration

There is a basic warning for updating the cluster configuration:
WARNING: Rules For Updating the Configuration
Never edit the cib.xml file manually, otherwise the cluster will refuse to use
the configuration. Instead, always use the cibadmin tool to change your
configuration.
To modify your cluster configuration, use the cibadmin command which talks to a
running cluster. With cibadmin, you can query, add, remove, update or replace any
part of the configuration. All changes take effect immediately and there is no need to
perform a reload-like operation.
The simplest way of using cibadmin is a three-step procedure:
1 Save the current configuration to a temporary file:
cibadmin --cib_query > /tmp/tmp.xml
2 Edit the temporary file with your favorite text or XML editor.
Some of the better XML editors are able to use the DTD (document type defini-
tion) to make sure that any changes you make are valid. The DTD describing the
configuration can be found in /usr/lib/heartbeat/crm.dtd on your
systems.
3 Upload the revised configuration:
cibadmin --cib_replace --xml-file /tmp/tmp.xml
If you only want to modify the resources section, do the following to avoid modi-
fying any other part of the configuration:
cibadmin --cib_query --obj_type resources > /tmp/tmp.xml
vi /tmp/tmp.xml
cibadmin --cib_replace --obj_type resources --xml-file /tmp/tmp.xml
Manual Configuration of a Cluster
45

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SUSE LINUX ENTERPRISE SERVER 10 SP2 HEARTBEAT and is the answer not in the manual?

Questions and answers

Table of Contents