Updating configuration with cman_tool produces error "Relax-NG validity error : Element cluster has extra content: failoverdomains" in a RHEL 6 High Availability cluster
Issue
-
Facing some issue by setting up RH6.2 with cluster software. The problem are to get the cluster.conf validated to be able to use cman_tool to distribute the file to the other cluster nodes.
-
Getting the below error:
# cman_tool version -r
tempfile:31: element failoverdomains: Relax-NG validity error : Element cluster has extra content: failoverdomains
Configuration fails to validate
- Cluster Configuration looks like below:
# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="21" name="MyCluster">
<clusternodes>
<clusternode name="node1.example.com" nodeid="1" votes="1">
<fence>
<method name="fence">
<device name="fence-node1"/>
</method>
</fence>
</clusternode>
<clusternode name="node2.example.com" nodeid="2" votes="1">
<fence>
<method name="fence">
<device name="fence-node2"/>
</method>
</fence>
</clusternode>
<clusternode name="node3.example.com" nodeid="3" votes="1">
<fence>
<method name="fence">
<device name="fence-node3"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
<fencedevice agent="fence_ipmilan" ipaddr="xx.xx.xx.xx" lanplus="on" login="cluster" name="fence-node1" passwd="yyyyy"/>
<fencedevice agent="fence_ipmilan" ipaddr="xx.xx.xx.xx" lanplus="on" login="cluster" name="fence-node2" passwd="yyyyy"/>
<fencedevice agent="fence_ipmilan" ipaddr="xx.xx.xx.xx" lanplus="on" login="cluster" name="fence-node3" passwd="yyyyy"/>
</fencedevices>
<failoverdomains/>
<resources/>
<vm autostart="0" exclusive="0" migrate="live" name="l1010s" path="/etc/libvirt/qemu" recovery="restart"/>
<vm autostart="0" exclusive="0" migrate="live" name="l1011s" path="/etc/libvirt/qemu" recovery="restart"/>
<cman transport="udpu"/>
</cluster>
Environment
- Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add On
<failoverdomains>in/etc/cluster/cluster.confthat is not a child of<cluster><rm/></cluster>
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.