[Linux-cluster] Error in Cluster.conf
Jan Pokorný
jpokorny at redhat.com
Tue Jun 24 12:55:00 UTC 2014
On 24/06/14 13:56 +0200, Fabio M. Di Nitto wrote:
> On 6/24/2014 12:32 PM, Amjad Syed wrote:
>> Hello
>>
>> I am getting the following error when i run ccs_config_Validate
>>
>> ccs_config_validate
>> Relax-NG validity error : Extra element clusternodes in interleave
>
> You defined <clusternodes.. twice.
That + the are more issues discoverable by more powerful validator
jing (packaged in Fedora and RHEL 7, for instance, admittedly not
for RHEL 6/EPEL):
$ jing cluster.rng cluster.conf
> cluster.conf:13:47: error:
> element "fencedvice" not allowed anywhere; expected the element
> end-tag or element "fencedevice"
> cluster.conf:15:23: error:
> element "clusternodes" not allowed here; expected the element
> end-tag or element "clvmd", "dlm", "fence_daemon", "fence_xvmd",
> "gfs_controld", "group", "logging", "quorumd", "rm", "totem" or
> "uidgid"
> cluster.conf:26:76: error:
> IDREF "fence_node2" without matching ID
> cluster.conf:19:77: error:
> IDREF "fence_node1" without matching ID
So it spotted also:
- a typo in "fencedvice"
- broken referential integrity; it is prescribed "name" attribute
of "device" tag should match a "name" of a defined "fencedevice"
Hope this helps.
-- Jan
> Fabio
>
>> tempfile:12: element clusternodes: Relax-NG validity error : Element
>> cluster failed to validate content
>> Configuration fails to validate
>>
>> Here is my cluster.conf file
>>
>> <?xml version="1.0"?>
>> <cluster config_version="1" name="oracleha">
>> <clusternodes>
>> <clusternode name="krplporcl001" nodeid="1"/>
>> <clusternode name="krplporcl002" nodeid="2"/>
>> </clusternodes>
>> <cman expected_votes="1" two_node="1"/>
>>
>> <fencedevices>
>> <fencedevice agent= "fence_ipmilan" ipaddr="10.10.63.93"
>> login="ADMIN" name="inspuripmi" passwd="abc123"/>
>> <fencedvice agent = "fence_ilo" ipaddr="10.10.63.92"
>> login="test" name="hpipmi" passwd="abc12345"/>
>> </fencedevices>
>> <clusternodes>
>> <clusternode name= "krplporcl001" nodeid="1" votes= "1">
>> <fence>
>> <method name = "1">
>> <device lanplus = "" name="fence_node1" action ="reboot"/>
>> </method>
>> </fence>
>> </clusternode>
>> <clusternode name = "krplporcl002" nodeid="2" votes ="1">
>> <fence>
>> <method name = "1">
>> <device lanplus ="1" name="fence_node2" action ="reboot"/>
>> </method>
>> </fence>
>> </clusternode>
>> </clusternodes>
>>
>>
>> <rm>
>>
>> <failoverdomains/>
>> <resources/>
>> <service autostart="1" exclusive="0" name="IP" recovery="relocate">
>> <ip address="10.10.5.23" monitor_link="on" sleeptime="10"/>
>> </service>
>> </rm>
>> </cluster>
>>
>>
>> Any help would be appreciated
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20140624/c2be7416/attachment.sig>
More information about the Linux-cluster
mailing list