On Tue, Nov 15, 2011 at 8:36 AM, dyna <[email protected]> wrote: > Hi, > > I have a 2 node cluster using cman and pacemaker. It was working great > with meatware, so i decided to get myself an AP7920 hardware fencing > device, however i can't seem to get it working from pacemaker using > apcmastersnmp. > > (Both apcmaster and external/rackpdu do not work for me. apcmaster has > some telnet string identification problem and can't connect. rackpdu has > some parsing problems, device list is returned by the device (with > errors), but only the first port can be controlled). > > > Calling stonith itself seems to work, using 2 different types of parameters: > > root@pcp-svr008hatest1:~# stonith -l -t apcmastersnmp -p "192.168.90.9 161 > private" > pcp-svr008hatest1 > pcp-svr009hatest2 > outlet 3 > outlet 4 > outlet 5 > outlet 6 > outlet 7 > test > > root@pcp-svr008hatest1:~# stonith -l -t apcmastersnmp > ipaddr="192.168.90.9" port="161" community="private" > pcp-svr008hatest1 > pcp-svr009hatest2 > outlet 3 > outlet 4 > outlet 5 > outlet 6 > outlet 7 > test > > root@pcp-svr008hatest1:~# stonith -t apcmastersnmp -p "192.168.90.9 161 > private" pcp-svr009hatest2 > > root@pcp-svr008hatest1:~# stonith -t apcmastersnmp -T reset > ipaddr="192.168.90.9" port="161" community="private" pcp-svr009hatest2 > > (Port resets confirmed both visually and by the ap7920 webgui). > > > If i configure pacemaker without any pcmk_host parameters: > primitive st_apcmastersnmp stonith:apcmastersnmp \ > params community="private" port="161" ipaddr="192.168.90.9" > clone cl_st_apcmastersnmp st_apcmastersnmp > > i get the following errors: > Nov 14 16:07:51 pcp-svr008hatest1 stonith: [16045]: ERROR: Could not list > hosts for apcmaster. > Nov 14 16:31:34 pcp-svr008hatest1 stonith-ng: [1659]: info: > can_fence_host_with_device: st_apcmastersnmp:1 can not fence > pcp-svr009hatest2: dynamic-list > > I found somewhere to "make sure your device works with -l", but -l works > fine with my device.
I think you want to set pcmk_host_map. This tells pacemaker how to map between node names (which it knows about) and port numbers (which your device knows about). "man stonithd" should have more details > > > If i configure pacmaker with some pcmk_host parameters: > primitive st_apcmastersnmp stonith:apcmastersnmp \ > params community="private" port="161" ipaddr="192.168.90.9" \ > pcmk_host_check="static-list" \ > pcmk_host_list="pcp-svr008hatest1 pcp-svr009hatest2" > clone cl_st_apcmastersnmp st_apcmastersnmp > > I get the following error: > Nov 14 16:37:12 pcp-svr008hatest1 stonith-ng: [1659]: info: > process_remote_stonith_exec: ExecResult <st-reply > st_origin="stonith_construct_async_reply" t="stonith-ng" st_op="st_notify" > st_remote_op="6ef05851-8bfa-4171-a1e4-d05b9e60646f" st_callid="0" > st_callopt="0" st_rc="-2" st_output="Performing: stonith -t apcmastersnmp > -T reset 161#012Invalid config info for apcmastersnmp device#012failed: > 161 3#012" src="pcp-svr008hatest1" seq="23" /> > > > I have upgraded to pacemaker 1.1.6, cluster-glue 1.0.8, libstonith1 1.0.8, > libstonithd 1.1.6 without any result. > > > Am i doing something wrong/missing something, or is something just bugged > somewhere? > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
