What is the valid method for adding comments in RHEL 6 High Availability cluster configuration?
Environment
- Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add-On
- RGManager
Issue
- Are XML Comments allowed in a cluster configuration file?
Resolution
The /etc/cluster/cluster.conf
is a XML-based file, hence xml comments are applicable to the cluster configuration.
<!-- put any text here -->
Diagnostic Steps
- Add the comment in cluster configuration file
/etc/cluster/cluster.conf
.
<Snip>
----
<?xml version="1.0"?> <
cluster config_version="317" name="Cluster-test">
<!-- testing comments -->
<totem token="21000"/>
<clusternodes>
<clusternode name="vm1.example.com" nodeid="1">
----
</Snip>
- Populate changes across the cluster
# cman_tool version -r
- Validate cluster configuration
# ccs_config_validate /etc/cluster/cluster.conf
Configuration validates
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments