[PVE-User] PVE 2.x and HB
THe_ZiPMaN
flavio-pve at zipman.it
Sun Jul 29 03:35:17 CEST 2012
On 07/29/2012 02:13 AM, Gilberto Nunes wrote:
> tempfile:10: element fence: Relax NG validaty error: Expecting element
> clustercode, got fence
This indicates an XML error.
> <?xml version="1.0"?>
> <cluster name="MYCLUSTER" config_version="3">
>
> <cman keyfile="/var/lib/pve-cluster/corosync.authkey">
> </cman>
>
>
> <fencedevices>
> <fencedevice agent="fence_ipmilan" lanplus="1"
> ipaddr="192.168.200.65" login="root" name="ipmi1" passwd="password"
> power_wait="5"/>
> <fencedevice agent="fence_ipmilan" lanplus="1"
> ipaddr="192.168.200.66" login="root" name="ipmi2" passwd="password"
> power_wait="5"/>
> </fencedevices>
>
> <clusternodes>
> <clusternode name="servidor-a" nodeid="1" votes="1"/>
> <fence>
> <method name="1">
> <device name="ipmi1"/>
> </method>
> </fence>
> <clusternode name="servidor-b" nodeid="2" votes="1"/>
> <fence>
> <method name="1">
> <device name="ipmi2"/>
> </method>
> </fence>
> </clusternodes>
> </cluster>
I'm not sure (I don't have any proxmox to check right now), but it seems
to me that <fence> should be inside <clusternode>.
<clusternodes>
<clusternode name="servidor-a" nodeid="1" votes="1">
<fence>
<method name="1">
<device name="ipmi1"/>
</method>
</fence>
</clusternode>
<clusternode name="servidor-b" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="ipmi2"/>
</method>
</fence>
</clusternode>
</clusternodes>
Indentation is really important when checking XML. And pay attention on
the removal of the slash at the end of the <clusternode> tags.
--
Flavio Visentin
A computer is like an air conditioner,
it stops working when you open Windows
More information about the pve-user
mailing list