[Linux-HA] Stonith and WTI IPS

Dave Blaschke debltc at us.ibm.com
Wed Feb 7 10:28:55 MST 2007


Rob wrote:
> ----- Original Message ----
> From: Dave Blaschke <debltc at us.ibm.com>
> To: General Linux-HA mailing list <linux-ha at lists.linux-ha.org>
> Sent: Wednesday, January 31, 2007 5:03:59 AM
> Subject: Re: [Linux-HA] Stonith and WTI IPS
>
> Rob wrote:
>   
>> We've purchased a WTI IPS-800 for use with STONITH. The RPS-10s are discontinued and the IPS is the replacement.
>>
>> Has anyone configured stonith to control the IPS series network power switches?
>>
>> They have three options, 4, 8 and 16 port. We are using the 8 port switch. 
>>
>> When you telnet to the IPS, you get the following screen:
>>
>> Internet Power Switch v1.41h    Site ID: (undefined)
>>
>> Plug | Name             | Password    | Status | Boot/Seq. Delay | Default |
>> -----+------------------+-------------+--------+-----------------+---------+
>>  1   | XNET4-ps1        | (undefined) |   ON   |     0.5 Secs    |   ON    |
>>  2   | XNET3-ps1        | (undefined) |   ON   |     0.5 Secs    |   ON    |
>>  3   | (undefined)      | (undefined) |   ON   |     0.5 Secs    |   ON    |
>>  4   | (undefined)      | (undefined) |   ON   |     0.5 Secs    |   ON    |
>>  5   | XNET4-ps2        | (undefined) |   ON   |     0.5 Secs    |   ON    | 
>>  6   | XNET3-ps2        | (undefined) |   ON   |     0.5 Secs    |   ON    |
>>  7   | (undefined)      | (undefined) |   ON   |     0.5 Secs    |   ON    |
>>  8   | (undefined)      | (undefined) |   ON   |     0.5 Secs    |   ON    |
>> -----+------------------+-------------+--------+-----------------+---------+
>>
>>
>> "/H" for help.
>>
>> IPS> 
>>
>>
>> I do not know how best to utilize the IPS with Stonith. The interface is definitely going to differ from the WTI NPS series and I don't know of anything similar.
>>   
>>     
> Have you tried the wti_nps plugin?  It keys off words like "Power 
> Switch" (instead of Network Power Switch) and "PS>" (instead of NPS>) so 
> it may just be compatible.  Try something like:
>
> stonith -t wti_nps -p "IPS_ipaddr IPS_password" -l
>
> and see if you get a list of outlets (add -d option for debug info).
>
> ______________________________________________________________________________
>
> Ok, I ran the following command line:
> [root at xnet3 ha.d]# stonith -v -t wti_nps -p "ipaddr=172.16.9.37 password=secret" -T off XNET3
>
> And it just hangs.
>
> I re-ran with the debug:
> [root at xnet3 ha.d]# stonith -d -t wti_nps -p "ipaddr=172.16.12.37 password=xpance" -T off XNET3
> ** (process:22505): DEBUG: NewPILPluginUniv(0x92da008)
> ** (process:22505): DEBUG: PILS: Plugin path = /usr/lib/stonith/plugins:/usr/lib/pils/plugins
> ** (process:22505): DEBUG: NewPILInterfaceUniv(0x92da030)
> ** (process:22505): DEBUG: NewPILPlugintype(0x92dc4f0)
> ** (process:22505): DEBUG: NewPILPlugin(0x92dc530)
> ** (process:22505): DEBUG: NewPILInterface(0x92dc400)
> ** (process:22505): DEBUG: NewPILInterface(0x92dc400:InterfaceMgr/InterfaceMgr)*** user_data: 0x0 *******
> ** (process:22505): DEBUG: InterfaceManager_plugin_init(0x92dc400/InterfaceMgr)
> ** (process:22505): DEBUG: Registering Implementation manager for Interface type 'InterfaceMgr'
> ** (process:22505): DEBUG: PILS: Looking for InterfaceMgr/generic => [/usr/lib/stonith/plugins/InterfaceMgr/generic.so]
> ** (process:22505): DEBUG: Plugin file /usr/lib/stonith/plugins/InterfaceMgr/generic.so does not exist
> ** (process:22505): DEBUG: PILS: Looking for InterfaceMgr/generic => [/usr/lib/pils/plugins/InterfaceMgr/generic.so]
> ** (process:22505): DEBUG: Plugin path for InterfaceMgr/generic => [/usr/lib/pils/plugins/InterfaceMgr/generic.so]
> ** (process:22505): DEBUG: PluginType InterfaceMgr already present
> ** (process:22505): DEBUG: Plugin InterfaceMgr/generic  init function: InterfaceMgr_LTX_generic_pil_plugin_init
> ** (process:22505): DEBUG: NewPILPlugin(0x92dc508)
> ** (process:22505): DEBUG: Plugin InterfaceMgr/generic loaded and constructed.
> ** (process:22505): DEBUG: Calling init function in plugin InterfaceMgr/generic.
> ** (process:22505): DEBUG: NewPILInterface(0x92dcb38)
> ** (process:22505): DEBUG: NewPILInterface(0x92dcb38:InterfaceMgr/stonith2)*** user_data: 0x92dbc80 *******
> ** (process:22505): DEBUG: Registering Implementation manager for Interface type 'stonith2'
> ** (process:22505): DEBUG: IfIncrRefCount(1 + 1 )
> ** (process:22505): DEBUG: PluginIncrRefCount(0 + 1 )
> ** (process:22505): DEBUG: IfIncrRefCount(1 + 100 )
> ** (process:22505): DEBUG: PILS: Looking for stonith2/wti_nps => [/usr/lib/stonith/plugins/stonith2/wti_nps.so]
> ** (process:22505): DEBUG: Plugin path for stonith2/wti_nps => [/usr/lib/stonith/plugins/stonith2/wti_nps.so]
> ** (process:22505): DEBUG: Creating PluginType for stonith2
> ** (process:22505): DEBUG: NewPILPlugintype(0x92dcc58)
> ** (process:22505): DEBUG: Plugin stonith2/wti_nps  init function: stonith2_LTX_wti_nps_pil_plugin_init
> ** (process:22505): DEBUG: NewPILPlugin(0x92dcc70)
> ** (process:22505): DEBUG: Plugin stonith2/wti_nps loaded and constructed.
> ** (process:22505): DEBUG: Calling init function in plugin stonith2/wti_nps.
> ** (process:22505): DEBUG: NewPILInterface(0x92dcd20)
> ** (process:22505): DEBUG: NewPILInterface(0x92dcd20:stonith2/wti_nps)*** user_data: 0x37c588 *******
> ** (process:22505): DEBUG: IfIncrRefCount(101 + 1 )
> ** (process:22505): DEBUG: PluginIncrRefCount(0 + 1 )
> ** (process:22505): DEBUG: wti_nps_get_confignames: called.
> ** (process:22505): DEBUG: wti_nps_set_config: called.
>
> ** (process:22505): DEBUG: wti_nps_status:called.
> ** (process:22505): DEBUG: NPSRobustLogin:called.
>
>
> That's where it hangs. I suspect the NPS plugin just isn't going to work for the IPS eh?
>   
Hmmm.  NPSRobustLogin() prints that it is being called, then calls 
NPS_connect_device() and if that is successful, calls NPSLogin().  The 
first thing NPSLogin() does is print that it is being called so, because 
that is not showing up in the logs, it looks like NPS_connect_device() 
is hanging while attempting to telnet to the IPS device.  I'm pretty 
sure that the -p option just takes the options positionally (ipaddr 
first string, password second), I don't think it also parses out 
name/value pairs, so your line above is attempting to telnet to device 
ipaddr=172.16.9.37, which probably won't have very successful results.  
Don't use the -f or -p options if you are going to use name/value pairs 
on the stonith command line.  So, either try:

stonith -d -t wti_nps -p "172.16.12.37 xpance" -T off XNET3

or

stonith -d -t wti_nps ipaddr=172.16.12.37 password=xpance -T off XNET3


and see if that gets you any farther...
> -Rob
>
>
>
>
>
>  
> ____________________________________________________________________________________
> We won't tell. Get more on shows you hate to love 
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> http://tv.yahoo.com/collections/265 
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>   




More information about the Linux-HA mailing list