fence_ifmib not working

proxy123

New Member
Sep 3, 2013
2
0
1
Hi,

I'm pretty new to proxmox and I'm currently building my first proxmox environment.
The goal is to have a HA cluster with 2 identical servers whereas both are running different VMs, but in case of a failure they can start the VMs of the other node.

I already managed to setup both severs including 2 DRBDs for storing the VMs and a shared quorum disk on a 3rd machine.

The only thing I'm missing is fencing.
I tried to follow http://pve.proxmox.com/wiki/Fencing#Fencing_using_a_managed_switch

But even when I execute
Code:
 fence_ifmib -o list -c <my_community> -a <IP_of_the_switch>
I only get the following:
Code:
Traceback (most recent call last):
  File "/usr/sbin/fence_ifmib", line 126, in <module>
    main()
  File "/usr/sbin/fence_ifmib", line 121, in main
    result = fence_action(FencingSnmp(options), options, set_power_status, get_power_status, get_outlets_status)
  File "/usr/share/fence/fencing.py", line 788, in fence_action
    options["--plugs"] = options["--plug"].split(",")
KeyError: '--plug'

any idea what is wrong?
 
it seems than option --plug or -n is now mandatory. So to get the list of interfaces on the switch you need to supply an id for your switch which can be anything.

Try: fence_ifmib -o list -c <my_community> -a <IP_of_the_switch> -n my_switch

wiki has been updated accordingly.
 
Last edited: