fencing with one APC Switch Rack PDU - node with redundant power supply

whitewater

Member
Nov 26, 2012
107
0
16
france
Hello,
My production proxmox cluster have 3 nodes. 2 for VM with redundant power supply and 1 node for HA (arbitrary node).


I have an APC Switch Rack PDU AP7921. And only one.
I had tested it with another cluster with 3 nodes, both simple power supply.
It's work


Now, with this test cluster, il would like to test poweroff two ports, like production environment.
But i haven't success.


i have see those links :
http://pve.proxmox.com/wiki/Fencing#Dual_path.2C_redundant_power


https://fedorahosted.org/cluster/wiki/FAQ/Fencing#fence_redundant_pwr


here my cluster.conf
Code:
<?xml version="1.0"?><cluster name="test-cluster" config_version="36">
   <fencedevices>
   <fencedevice agent="fence_apc" ipaddr="192.168.10.15" login="apc" name="apc" passwd="XXX" power_wait="10"/>
   </fencedevices>




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




  <clusternodes>
  <clusternode name="proxmox-test01" votes="1" nodeid="1">
     <fence>
      <method name="apc">
        <device name="apc" port="5" secure="on"/>
      </method>
    </fence>
  </clusternode>
  <clusternode name="proxmox-test02" votes="1" nodeid="2">
  <fence>
      <method name="dual-apc">
        <device name="apc" action="off" port="7"/>
        <device name="apc" action="off" port="8"/>
        <device name="apc" action="on" port="7"/>
        <device name="apc" action="on" port="8"/>
      </method>
    </fence>
</clusternode>
<clusternode name="proxmox-test03" votes="1" nodeid="3"/>
</clusternodes>




</cluster>


i fencing proxmox-test02 for test two port fencing (on port 7 and 8) :
Code:
oot@proxmox-test03:~# ccs_config_validate -v -f /etc/pve/cluster.conf.newCreating temporary file: /tmp/tmp.OU4PhSxsj5
Config interface set to:
Configuration stored in temporary file
Updating relaxng schema
Validating..
Configuration validates
Validation completed
root@proxmox-test03:~# fence_node proxmox-test02
fence proxmox-test02 failed


If i try this,


Code:
       <method name="dual-apc">    
                 <device name="apc" action="off" port="7"/>
                 <device name="apc" action="on" port="7"/>
      </method>


or


Code:
        <device name="apc" action="off" port="7"/>


both failed.


i have tested this :
Code:
        <device name="apc" port="7" secure="on"/>
       <device name="apc" port="8" secure="on"/>
Fencing is success for the command, but there is alway one power supply active. So, fencing don't work.
Also with bigger power_wait, like 30 or 60.


so i think action="off" and action="on" aren't recognized.


What should i do ?
Thanks.

pveversion -v
Code:
proxmox-ve-2.6.32: 3.1-114 (running kernel: 2.6.32-26-pve)pve-manager: 3.1-20 (running version: 3.1-20/c3aa0f1a)
pve-kernel-2.6.32-26-pve: 2.6.32-114
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-7
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1
 
I found a solution. Write the two ports on the same line. Example :
Code:
      <device name="apc" port="7,8" secure="on"/>
Like this, the APC PDU switch off and switch on port 7 and port 8 simultaneously :)
Now, i must playing to have a better time, between switch off and switch on.


One question :
someone know the difference between switch="1" and port="1" in cluster.conf parameters ?
thank you
 

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!