Fencing with ILO question

yves1984

New Member
May 29, 2013
19
0
1
Hello

I've got a question about fencing and my conf.cluster configuration.

What I've done:
- open a cluster and join with 3 Nodes
-
Edit /etc/default/redhat-cluster-pve ==> FENCE_JOIN="yes"
- fence_tool join with all 3 Nodes


-
Status Fence:
Status Fence
# fence_tool ls
fence domain
member count 3
victim count 0
victim now 0
master nodeid 1
wait state none
members 1 2 3

and now my cluster.conf.new file on all 3 Nodes:
29-05-2013 08-21-43.jpg


now I've got 3question:
Is my cluster.conf File correct?
and how i can test the fencing with ILO?
Or did I need more configuration on my Nodes?


thx for replay
and greetz vom raining Switzerland
Yves :)
 
Hi Dietmar. thx for replay.

on the fence device are differnt ip-Adress is that not correct? must i also rename the agent like: fence-ilo1; fence-ilo2...

Greetz

EDIT:
Ive seen it and correct it.
29-05-2013 08-56-03.jpg
Can u tell me how can i test it?


second EDIT:
I've found a command to test the fence
# /sbin/fence_node clusternode3.example.com
but it comes a error messages :(
-bash: /sbin/fence_node: No such file or directory

have some one any idee?
 
Last edited:
That is not a valid node name (use the names configured in cluster.conf)

thx for the answer.
I test it with the syntax: /sbin/fence_node pox-ti-006
but it comes also the error.

did i forget something to install? because for fencing i did only join the 3node with the comand "fence_tool join" and config the cluster.conf.new file.
perhabs i i forget something important.
 
command is
fence_node nodename

:)

Hi hotwired007 and thx for answer

I trz it with
fence_node pox-ti-006 ==> fence pox-ti-006 undefined
fence_node "ILO-IP-Addr" ==> without a message and nothing is happening
fence_node "nodeID" ==> without a message and nothing is happening

I've think the nodename is pox-ti-006....
 
what about if you try to fence using the fence_ilo command:

eg fence_ilo -l username -p password -a 192.168.1.1 -o status -v

check the systax as syntax above is from my eaton ePDU command
 
go back to the basics: -

check that the iLO is enabled
Check the network connection to the iLO is on.
ping the IP and check for responses.
Check that your username and password are correct.

is there web page for your iLO? I have more experience with dell iDRAC rather than HP iLO.

check the man page for fence_ilo (man fence_ilo)
 
i can ping the ilo-port
i can connect to the Web-GUI from ILO with the same username and password

about the fence_ilo i don't know from where is this name.
because this name I've got from a other website config. So i'ts perhabs wrong?

sorry that i ask so many things. but i'm new user with proxmox and learn it now to use it.
 
fence_ilo is the fence agent for proxmox to connect to the ilo to run the commands using fence_node and cluster.conf

you could try turning off SSL in the command? ie:

fence_ilo -a 192.168.1.1 -l username -p password -z false -o status -v

is the iLO firmware upto date?
 
No i'm on the Server1 and want to fence Server3 or 2.

also your second command post will not work on my system.
propertly i've forget a config. i will try again the wiki on proxmox about fencing

EDIT:
perhabs will proxmox use the cluster.conf file and not the cluster.conf.new file that I'm config.
how can i change this conf together?
 
Last edited:
there should be an activate command?

if the command from CLI doesnt work, the odds of the cluster.conf working are very low ;)

basically you need to get the CLI command working, then configure the cluster.conf, then test using fence_node and then you can try testing the HA by pulling the plug on one of the servers.

have you got any config options for the iLO? ports/SSL on/off?
 
I try it to replace the config but i cant because the /etc/pve/cluster.conf is allways in use.

I stop the services :
- pvestatd
- pvedaemon
- cman

if i stop pve-cluster i can't find the cluster.conf :(

Have someone any idee how i can edit or replace the original cluster.conf file?

thx
 
Good Morning

Now is the cluster.conf file changeing.
and its conf like this>
30-05-2013 09-14-11.jpg
The test with "fence_node pox-ti-005" doesn't work. always i recive this error:
30-05-2013 09-18-58.jpg

Edit:
On WebGui/HA i see this Config:(I think here is something wrong about the ConfigVersion and clusternode at the end. But im not sure)

--- /etc/pve/cluster.conf 2013-05-30 09:04:54.000000000 +0200
+++ /etc/pve/cluster.conf.new 2013-05-29 14:26:04.000000000 +0200
@@ -1,38 +1,11 @@
<?xml version="1.0"?>
-<cluster name="LIN-CLUPOX-002" config_version="9">
+<cluster name="LIN-CLUPOX-002" config_version="3">

<cman keyfile="/var/lib/pve-cluster/corosync.authkey">
</cman>

-<clusternodes>
-<clusternode name="pox-ti-004" votes="1" nodeid="1"/>
- <fence>
- <method name="1">
- <device name="pox-ti-004" action="reboot"/>
- </method>
- </fence>
-
-<clusternode name="pox-ti-005" votes="1" nodeid="2"/>
- <fence>
- <method name="1">
- <device name="pox-ti-005" action="reboot"/>
- </method>
- </fence>
-
-<clusternode name="pox-ti-006" votes="1" nodeid="3"/>
- <fence>
- <method name="1">
- <device name="pox-ti-006" action="reboot"/>
- </method>
- </fence>
-
-</clusternodes>
-
-<fencedevices>
- <fencedevice agent="fence_ilo" ipaddr="xxx.xxx.xxx.154" login="Administrator" name="pox-ti-004" passwd="12345678"/>
- <fencedevice agent="fence_ilo" ipaddr="xxx.xxx.xxx.155" login="Administrator" name="pox-ti-005" passwd="12345678"/>
- <fencedevice agent="fence_ilo" ipaddr="xxx.xxx.xxx.156" login="Administrator" name="pox-ti-006" passwd="12345678"/>
-</fencedevices>
-
+ <clusternodes>
+ <clusternode name="pox-ti-004" votes="1" nodeid="1"/>
+ <clusternode name="pox-ti-005" votes="1" nodeid="2"/><clusternode name="pox-ti-006" votes="1" nodeid="3"/></clusternodes>

</cluster>
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!