[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] problem with fencing



Hi there

I'm trying to set up gfs for work with a SAN ... and I want to use a
script for fencing, instead of fence_manual, but it doesnt works :/

to try that, I do a "ifconfig eth0 down" in gfstest2, and gfstest1's syslog says:
Aug  5 16:51:13 gfstest1 fenced: gfstest2 not a cluster member after 0 sec post_fail_delay
Aug  5 16:51:13 gfstest1 fenced: fencing node "gfstest2"
Aug  5 16:51:13 gfstest1 fence_manual: Node 192.168.1.2 needs to be reset before recovery can procede.  Waiting for 192.168.1.2 to rejoin the cluster or for manual acknowledgement that it has been reset (i.e. fence_ack_manual -n 192.168.1.2)

I want it to be automatic, and I modified fence_sanbox2.pl so it fits
our switch commands. (I attached it on another mail some days ago)

the script works fine if I run it manually:
gfstest1:~# fence_IBMswitch -a 10.1.1.1 -l admin -p tangerine -n 4      
portDisable 4 
success: disable 4
gfstest1:~# fence_IBMswitch -a 10.1.1.1 -l admin -p tangerine -n 4 -o enable
portEnable 4 
success: enable 4
gfstest1:~# 

could anybody give me a hint?
I'm using lock_dlm

this is my cluster.conf:

<?xml version="1.0"?>
<cluster name="test_cluster" config_version="4">

        <fencedevices>
          <fencedevice name="human" agent="fence_manual"/>
          <fencedevice name="san" agent="fence_IBM" ipaddr="10.1.1.1" login="admin" passwd="tangerine"/>
        </fencedevices>

        <fence_daemon clean_start="0">
        </fence_daemon>

        <cman>
        </cman>

        <clusternodes>
          <clusternode name="gfstest1" nodeid="1" votes="1">
             <fence>
               <method name="fibre">
                 <device name="san" port="5"/>
               </method>
               <method name="single">
                 <device name="human" ipaddr="192.168.1.1"/>
               </method>
             </fence>
          </clusternode>

          <clusternode name="gfstest2" nodeid="2" votes="1">
             <fence>
               <method name="fibre">
                 <device name="san" port="4"/>
               </method>
               <method name="single">
                 <device name="human" ipaddr="192.168.1.2"/>
               </method>
             </fence>
          </clusternode>

          <clusternode name="gfstest3" nodeid="3" votes="1">
             <fence>
               <method name="fibre">
                 <device name="san" port="3"/>
               </method>
               <method name="single">
                 <device name="human" ipaddr="192.168.1.3"/>
               </method>
             </fence>
          </clusternode>
        </clusternodes>

</cluster>

-- 
Javier Polo @ Datagrama
902 136 126


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]