Hello Dejan, As I am trying to use the patch that you pointed, I have got the following:
[root@server1 ~]# patch < /usr/src/apcmaster.c.patch can't find file to patch at input line 3 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |--- apcmaster_orig.c 2007-12-21 09:32:27.000000000 -0600 |+++ apcmaster.c 2008-02-19 18:24:48.000000000 -0600 -------------------------- File to patch: [root@server1~]# Could you tell me which file I am trying to patch? The closet file that I can find which may need patching is: /usr/lib/stonith/plugins/stonith2/apcmaster.so Thank you in advance for your help, Dejan. Avestan Dejan Muhamedagic wrote: > > Hi, > > On Wed, Feb 23, 2011 at 06:44:02PM -0800, Avestan wrote: >> >> Hello everyone, >> >> I have been trying to get STONITH work with the MasterSwitch Plus (AP9225 >> + >> AP9617) with very little success. >> >> I have to mention that I am able to access the MasterSwitch Plus via >> either >> serial port or Ethernet port with no issue. But when I try the stonith >> command, it appears that there is some issue with the login. >> >> [root@server1 ~]# stonith -d 1 -t apcmaster -p "192.168.1.50 apc apc" -l >> ** (process:4930): DEBUG: NewPILPluginUniv(0xa03b008) >> ** (process:4930): DEBUG: PILS: Plugin path = >> /usr/lib/stonith/plugins:/usr/lib/pils/plugins >> ** (process:4930): DEBUG: NewPILInterfaceUniv(0xa03c910) >> ** (process:4930): DEBUG: NewPILPlugintype(0xa03ca68) >> ** (process:4930): DEBUG: NewPILPlugin(0xa03cdc8) >> ** (process:4930): DEBUG: NewPILInterface(0xa03cb00) >> ** (process:4930): DEBUG: >> NewPILInterface(0xa03cb00:InterfaceMgr/InterfaceMgr)*** user_data: 0x0 >> ******* >> ** (process:4930): DEBUG: >> InterfaceManager_plugin_init(0xa03cb00/InterfaceMgr) >> ** (process:4930): DEBUG: Registering Implementation manager for >> Interface >> type 'InterfaceMgr' >> ** (process:4930): DEBUG: PILS: Looking for InterfaceMgr/generic => >> [/usr/lib/stonith/plugins/InterfaceMgr/generic.so] >> ** (process:4930): DEBUG: Plugin file >> /usr/lib/stonith/plugins/InterfaceMgr/generic.so does not exist >> ** (process:4930): DEBUG: PILS: Looking for InterfaceMgr/generic => >> [/usr/lib/pils/plugins/InterfaceMgr/generic.so] >> ** (process:4930): DEBUG: Plugin path for InterfaceMgr/generic => >> [/usr/lib/pils/plugins/InterfaceMgr/generic.so] >> ** (process:4930): DEBUG: PluginType InterfaceMgr already present >> ** (process:4930): DEBUG: Plugin InterfaceMgr/generic init function: >> InterfaceMgr_LTX_generic_pil_plugin_init >> ** (process:4930): DEBUG: NewPILPlugin(0xa03d690) >> ** (process:4930): DEBUG: Plugin InterfaceMgr/generic loaded and >> constructed. >> ** (process:4930): DEBUG: Calling init function in plugin >> InterfaceMgr/generic. >> ** (process:4930): DEBUG: NewPILInterface(0xa03d630) >> ** (process:4930): DEBUG: >> NewPILInterface(0xa03d630:InterfaceMgr/stonith2)*** user_data: 0xa03ce80 >> ******* >> ** (process:4930): DEBUG: Registering Implementation manager for >> Interface >> type 'stonith2' >> ** (process:4930): DEBUG: IfIncrRefCount(1 + 1 ) >> ** (process:4930): DEBUG: PluginIncrRefCount(0 + 1 ) >> ** (process:4930): DEBUG: IfIncrRefCount(1 + 100 ) >> ** (process:4930): DEBUG: PILS: Looking for stonith2/apcmaster => >> [/usr/lib/stonith/plugins/stonith2/apcmaster.so] >> ** (process:4930): DEBUG: Plugin path for stonith2/apcmaster => >> [/usr/lib/stonith/plugins/stonith2/apcmaster.so] >> ** (process:4930): DEBUG: Creating PluginType for stonith2 >> ** (process:4930): DEBUG: NewPILPlugintype(0xa03db70) >> ** (process:4930): DEBUG: Plugin stonith2/apcmaster init function: >> stonith2_LTX_apcmaster_pil_plugin_init >> ** (process:4930): DEBUG: NewPILPlugin(0xa03dcf0) >> ** (process:4930): DEBUG: Plugin stonith2/apcmaster loaded and >> constructed. >> ** (process:4930): DEBUG: Calling init function in plugin >> stonith2/apcmaster. >> ** (process:4930): DEBUG: NewPILInterface(0xa03dc38) >> ** (process:4930): DEBUG: >> NewPILInterface(0xa03dc38:stonith2/apcmaster)*** >> user_data: 0x26da2c ******* >> ** (process:4930): DEBUG: IfIncrRefCount(101 + 1 ) >> ** (process:4930): DEBUG: PluginIncrRefCount(0 + 1 ) >> ** (process:4930): DEBUG: Got '\xff' >> ** (process:4930): DEBUG: Got '\xfb' >> ** (process:4930): DEBUG: Got '\u0001' >> ** (process:4930): DEBUG: Got ' >> ' >> ** (process:4930): DEBUG: Got '\u000d' >> ** (process:4930): DEBUG: Got 'U' >> ** (process:4930): DEBUG: Got 's' >> ** (process:4930): DEBUG: Got 'e' >> ** (process:4930): DEBUG: Got 'r' >> ** (process:4930): DEBUG: Got ' ' >> ** (process:4930): DEBUG: Got 'N' >> ** (process:4930): DEBUG: Got 'a' >> ** (process:4930): DEBUG: Got 'm' >> ** (process:4930): DEBUG: Got 'e' >> ** (process:4930): DEBUG: Got ' ' >> ** (process:4930): DEBUG: Got ':' >> ** (process:4930): DEBUG: Got ' ' >> >> ** (process:4930): CRITICAL **: Did not find string Escape character is >> '^]'. from APC MasterSwitch. >> >> ** (process:4930): CRITICAL **: Received [\xff\xfb\u0001 >> \u000dUser Name : ] >> >> ** (process:4930): CRITICAL **: Did not find string Escape character is >> '^]'. from APC MasterSwitch. >> >> ** (process:4930): CRITICAL **: Received [] >> >> ** (process:4930): CRITICAL **: Did not find string Escape character is >> '^]'. from APC MasterSwitch. >> >> ** (process:4930): CRITICAL **: Received [] >> >> [root@server1 ~]# >> >> The package stonith which is installed is: stonith - 2.0.8-1.fc7.i386 > > Hmm, this looks ancient. > >> I have been searching for a solution and it appears that there is some >> complication with string Escape character is '^]' which is not issued. >> >> Can someone help me out or point me to the right direction in order to >> get >> this issue fixed? > > There's a patch which fixes this issue, but it has never been > applied for Dave feared it could break some installations. Patch > attached here: > > http://developerbugs.linux-foundation.org/show_bug.cgi?id=1891 > > Thanks, > > Dejan > >> Thanks, >> >> Avestan >> >> -- >> View this message in context: >> http://old.nabble.com/stonith-%2B-APC-Masterswitch-%28AP9225-%2B-AP9616%29-tp31000780p31000780.html >> Sent from the Linux-HA mailing list archive at Nabble.com. >> >> _______________________________________________ >> Linux-HA mailing list >> Linux-HA@lists.linux-ha.org >> http://lists.linux-ha.org/mailman/listinfo/linux-ha >> See also: http://linux-ha.org/ReportingProblems > _______________________________________________ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > > -- View this message in context: http://old.nabble.com/stonith-%2B-APC-MasterSwitch-%28AP9225-%2B-AP9617%29-tp31000780p31009505.html Sent from the Linux-HA mailing list archive at Nabble.com. _______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems