7 Апрель 2008

RACKPDU Stonith plugin

External/rackpdu STONITH plugin operates with APC Switched Rack PDU devices

It’s perfect solution to fencing your cluster nodes.

Download rackpdu plugin

In order to PDU device can determine outlet number for each node, you should set names of outlets,
otherwise you should use configuration file and outlet_config parameter.

Required parameters

hostlist – The list of hosts that the STONITH device controls (comma or space separated).
If you set value of this parameter to AUTO, list of hosts will be get from Rack PDU device.

pduip - Name or IP address of Rack PDU device.

community -  Name of write SNMP community.

Optionally parameters

oid - The SNMP OID for the PDU. minus the outlet number.
Try .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4 (default value)
or use mib from ftp://ftp.apcc.com/apc/public/software/pnetmib/mib/
Varies on different APC hardware and firmware.
Warning! No dot at the end of OID

names_oid – The SNMP OID for geting names of outlets.
It is required to recognize outlet number by name of node.
Try “.1.3.6.1.4.1.318.1.1.12.3.3.1.1.2″ (default value)
or use mib from ftp://ftp.apcc.com/apc/public/software/pnetmib/mib/
Names of nodes must be equal names of outlets, in other way use outlet_config parameter.
If you set ‘names_oid’ parameter then parameter outlet_config must not be use.
Varies on different APC hardware and firmware.
Warning! No dot at the end of OID.

outlet_config - Configuration file. Other way to recognize outlet number by nodename.
Configuration file which contains
node_name=outlet_number
strings.

Example:
server1=1
server2=2

If you use outlet_config parameter then names_oid parameter can have any value and it is not in use.

external/rackpdu STONITH plugin configuration example for Heartbeat V1

in file ha.cf

stonith_host * external/rackpdu AUTO 10.0.0.10 private

external/rackpdu STONITH plugin configuration example for Heartbeat V2

Download rackpdu sample configuration

Add this configuration to cluster
> cibadmin -C -o resources -x rackpdu.xml

after that, you can see this resource in GUI
> hb_gui &

or yon can use crm_mon to check this.

Blogroll

    about NetApp Блог о технологиях NetApp
    IT-community Сообщество специалистов по технологиям Microsoft
    Linux-HA Бюджетный высокодоступный кластер на Linux
    NetApp Производитель лучших по моему мнению СХД
    Opennet Тусовка фанатов Open-Source
    VMware The best виртуализация (проверено)

Meta