Everything is OK,but use "fence_node NODENAME -vv" error

ajcheng

New Member
Sep 3, 2012
9
0
1
i have four nodes server,and one nfs storage server,im done "Proxmox VE High Availability Cluster",and the vm success autostart.

but when i use this command :

<code>root@KSCLOUD-K1:~# fence_node SMC002590299352 -vv
fence SMC002590299352 dev 0.0 agent none result: error no method
agent args:
fence SMC002590299352 undefined</code>



<code>root@KSCLOUD-K1:~# fence_node KSCLOUD-K1 -vv
fence KSCLOUD-K1 dev 0.0 agent fence_ipmilan result: error from agent
agent args: nodename=KSCLOUD-K1 agent=fence_ipmilan ipaddr=192.168.1.91 lanplus=1 login=ADMIN passwd=ajcheng power_wait=5
fence KSCLOUD-K1 failed</code>

but this command is successful:
Code:
root@KSCLOUD-K1:~# fence_ipmilan -l ADMIN -p ajcheng -a 192.168.1.93 -o status 1 -vGetting status of IPMI:192.168.1.93...Spawning: '/usr/local/bin/ipmitool -I lan -H '192.168.1.93' -U 'ADMIN' -P '[set]' -v chassis power status'...
Chassis power = On
Don

my cluster.config file:

Code:
<?xml version="1.0"?><cluster config_version="20" name="KSCLOUD">
  <cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>
  <fencedevices>
    <fencedevice agent="fence_ipmilan" ipaddr="192.168.1.91" lanplus="1" login="ADMIN" name="SMC002590299352" passwd="ajcheng" power_wait="5"/>
    <fencedevice agent="fence_ipmilan" ipaddr="192.168.1.92" lanplus="1" login="ADMIN" name="SMC002590299350" passwd="ajcheng" power_wait="5"/>
    <fencedevice agent="fence_ipmilan" ipaddr="192.168.1.93" lanplus="1" login="ADMIN" name="SMC002590299351" passwd="ajcheng" power_wait="5"/>
    <fencedevice agent="fence_ipmilan" ipaddr="192.168.1.94" lanplus="1" login="ADMIN" name="SMC00259029934F" passwd="ajcheng" power_wait="5"/>
  </fencedevices>
  <clusternodes>
    <clusternode name="KSCLOUD-K1" nodeid="1" votes="1">
      <fence>
        <method name="1">
          <device name="SMC002590299352"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="KSCLOUD-K2" nodeid="2" votes="1">
      <fence>
        <method name="1">
          <device name="SMC002590299350"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="KSCLOUD-K3" nodeid="3" votes="1">
      <fence>
        <method name="1">
          <device name="SMC002590299351"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="KSCLOUD-K4" nodeid="4" votes="1">
      <fence>
        <method name="1">
          <device name="SMC00259029934F"/>
        </method>
      </fence>
    </clusternode>
  </clusternodes>
  <rm>
    <pvevm autostart="1" vmid="100"/>
    <pvevm autostart="1" vmid="103"/>
    <pvevm autostart="1" vmid="101"/>
    <pvevm autostart="1" vmid="102"/>
  </rm>
</cluster>

my fence device
2_1346676280ZuH9.jpg


sorry ,my English is poor and thanks a lot!
 
same problem here.....

fence_node node1 -vv
fence node1 dev 0.0 agent none result: error no method
agent args:
fence node1 undefined


This works : fence_apc -x -l hpapc -p 12345678 -a 192.168.2.30 -o status -n 1 -v

any ideas?
 
Be sure you are specifying the node by the name as defined in /etc/cluster/cluster.conf, not its DNS name or IP address.

The correct command for the original post is:
Code:
  fence_node KSCLOUD-K1 -vv

The second poster needs to use the value identified in the above file located on this line:
Code:
<clusternode name="useThisName" nodeid="1" votes="1">


Regarding the error: Maybe it did fence the node, but returned an error. For details see /var/log/syslog.
 

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!