HA and an APC (AP7921)

vostor

New Member
Mar 31, 2012
2
0
1
ok I have 3 Proxmox boxes configured, 1 storage (ISCSI Target) and an AP7921.. The problem i'm getting is if i power a socket off on the APC the servers do not failover until the power is restored and the old box is running! I am sure its to do with my cluster.config

Code:
<?xml version="1.0"?>
<cluster config_version="13" name="farm-gp01">
  <cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>
  <fencedevices>
    <fencedevice agent="Fence_apc" ipaddr="x.x.x.x" login="admin" name="APC-R00" passwd="123456"/>
  </fencedevices>
  <clusternodes>
    <clusternode name="pm-srv02" nodeid="1" votes="1">
      <fence>
        <method name="power">
          <device name="APC-R00" port="1" />
        </method>
      </fence>
    </clusternode>
    <clusternode name="pm-srv01" nodeid="2" votes="1">
      <fence>
        <method name="power">
          <device name="APC-R00" port="2" />
        </method>
      </fence>
    </clusternode>
    <clusternode name="pm-srv03" nodeid="3" votes="1">
      <fence>
        <method name="power">
          <device name="APC-R00" port="3" />
        </method>
      </fence>
    </clusternode>
  </clusternodes>
  <rm>
    <pvevm autostart="1" vmid="100"/>
    <pvevm autostart="1" vmid="101"/>
  </rm>
</cluster>



Any help is always welcome! :)
 
tried with and without secure="on" SSH is enabled

all 3 servers can see the AP7921 and seem to be able to interact with it using fence_apc they can all SSH to the AP but its only when the servers are coming back up and live does it migrate.

I am confused about this section not sure about it at all
Code:
  [COLOR=#009900][COLOR=#000000][B]<rm>[/B][/COLOR][/COLOR]    [COLOR=#009900][COLOR=#000000][B]<service[/B][/COLOR] [COLOR=#000066]autostart[/COLOR]=[COLOR=#FF0000]"1"[/COLOR] [COLOR=#000066]exclusive[/COLOR]=[COLOR=#FF0000]"0"[/COLOR] [COLOR=#000066]name[/COLOR]=[COLOR=#FF0000]"TestIP"[/COLOR] [COLOR=#000066]recovery[/COLOR]=[COLOR=#FF0000]"relocate"[/COLOR][COLOR=#000000][B]>[/B][/COLOR][/COLOR]      [COLOR=#009900][COLOR=#000000][B]<ip[/B][/COLOR] [COLOR=#000066]address[/COLOR]=[COLOR=#FF0000]"192.168.7.180"[/COLOR][COLOR=#000000][B]/>[/B][/COLOR][/COLOR]    [COLOR=#009900][COLOR=#000000][B]</service>[/B][/COLOR][/COLOR]  [COLOR=#009900][COLOR=#000000][B]</rm>
[/B][/COLOR][/COLOR]
 
all 3 servers can see the AP7921 and seem to be able to interact with it using fence_apc they can all SSH to the AP but its only when the servers are coming back up and live does it migrate.

You need to test fencing: 'fence_node <nodename>'

# man fence_node


I am confused about this section not sure about it at all

What is the question (This configures a failover IP address)?
 

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!