Fence NODE undifined

Webby

New Member
Sep 4, 2012
7
0
1
I am trying to make a HA cluster and getting some errors:

I made this config:

Config file:

<?xml version="1.0"?>
<cluster config_version="11"name="clusterwebguru">
<cmankeyfile="/var/lib/pve-cluster/corosync.authkey"/>
<fencedevices>
<fencedeviceagent="fence_apc" ipaddr="ipadress"login="username" name="apc" passwd="password"power_wait="5"/>
</fencedevices>
<clusternodes>
<clusternodename="proxmox147" nodeid="1" votes="1">
<fence>
<methodname="power">
<device name="apc" port="1" secure="on"/>
</method>
</fence>
</clusternode>
<clusternodename="proxmox146" nodeid="2" votes="1">
<fence>
<methodname="power">
<device name="apc" port="2" secure="on"/>
</method>
</fence>
</clusternode>
</clusternodes>
<rm>
<pvevm autostart="1"vmid="100"/>
</rm>
</cluster>


fence_apc -x -l user-p password -a ipadress -ostatus -n 1 –v à works! he logs into the APC



fence_node proxmox146 –vvv àgives errors:


fence proxmox146 dev 0.0 agent none result: error no method
agent args:
fence proxmox146 undefined

Any Ideas what goes wrong?

And is there some schooling or a book ore something how to best implement PROXMOX?


 
you did not configure the fencing device in your cluster.conf

e.g. ipaddr="ipadress"

you need to replace the "ipadress" with the IP of your device (e.g. 192.168...)

see http://pve.proxmox.com/wiki/Fencing
 
You mean here:

<fencedeviceagent="fence_apc" ipaddr="ipadress"login="username" name="apc" passwd="password"power_wait="5"/>

Yes i did... only i changed it to ipadress over here. I can connect to the APC

The orinal is:

<fencedeviceagent="fence_apc" ipaddr="192.168.1.47"login="username" name="apc" passwd="password"power_wait="5"/>

Or do you mean on a other location?
 
Yes i did he can connect to the APC only left it out in this post..... but he does not reconize the node

fence_apc -x -l user -p passw -a 192.x.x.x -o status -n 1 –v also works fine....

this one does not work or do you mean another location?

fence_node proxmox146 –vvv
 
again, your cluster.conf is not the same as shown in the example, you need to make sure that there are no typos - see example (e.g. "method name" instead of "methodname")

you should also validate your config file with ccs_config_validate (see wiki)
 
Tom, thanks for the replies... i paste the conf but i think the forum software did copy it right because the conf is with method name..(space between the names) i copied the conf from the wiki and changed the parameters.

when i run:

ccs_config_validate -v -f /etc/pve/cluster.conf.new
Creating temporary file: /tmp/tmp.P2t3dJNxtk
Config interface set to:
Configuration stored in temporary file
Updating relaxng schema
Validating..
Configuration validates
Validation completed

No error occurs:

When i run this:
fence_apc -x -l username -p passwd -a 192.168.x.x -o status -n 1 -v no error ooccurs

He does not reconize the nodes?

When i run this the error gets:


fence_node proxmox146 -vv
fence proxmox146 dev 0.0 agent none result: error no method
agent args:
fence proxmox146 undefined
 
<?xml version="1.0"?>
<cluster config_version="12" name="clusterwebguru">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>
<fencedevices>
<fencedevice agent="fence_apc" ipaddr="192.168.x.x" login="username" name="apc" passwd="password" power_wait="5"/>
</fencedevices>
<clusternodes>
<clusternode name="proxmox147" nodeid="1" votes="1">
<fence>
<method name="power">
<device name="apc" port="1" secure="on"/>
</method>
</fence>
</clusternode>
<clusternode name="proxmox146" nodeid="2" votes="1">
<fence>
<method name="power">
<device name="apc" port="2" secure="on"/>
</method>
</fence>
</clusternode>
</clusternodes>
<rm>
<pvevm autostart="1" vmid="100"/>
</rm>
</cluster>
 
works here - if you cannot figure it out I suggest you go for standard or premium subscription and our support can remote login to your host and help directly with the configuration.