~ampelbein/ubuntu/oneiric/heartbeat/lp-770743

« back to all changes in this revision

Viewing changes to lib/plugins/stonith/README.bladehpi

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2010-02-17 21:59:18 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100217215918-06paxph5do4saw8v
Tags: 3.0.2-0ubuntu1
* New upstream release
* Drop hard dep on pacemaker for heartbet; moved to Recommends
* debian/heartbeat.install:
  - follow upstream changes
* debian/control:
  - added docbook-xsl and xsltproc to build depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
STONITH module for IBM BladeCenter via OpenHPI
3
 
----------------------------------------------
4
 
 
5
 
Requirements:
6
 
        Linux-HA bladehpi STONITH plugin requires OpenHPI 2.6+
7
 
        OpenHPI requires Net-SNMP 5.0+
8
 
        OpenHPI requires BladeCenter Management Module 1.08+
9
 
 
10
 
This STONITH module talks to IBM BladeCenters via SNMP through use of
11
 
the OpenHPI BladeCenter plugin (snmp_bc).  For more information about
12
 
installing OpenHPI, setting up the BladeCenter SNMP agent, etc. please
13
 
visit http://www.openhpi.org/.  Once OpenHPI is installed properly,
14
 
the STONITH plugin will automatically be built the next time Linux-HA
15
 
is built.
16
 
 
17
 
Use the OpenHPI configuration file (i.e. /etc/openhpi/openhpi.conf)
18
 
to configure the BladeCenters of interest to STONITH.  For example, 
19
 
the following excerpt:
20
 
 
21
 
        plugin libsnmp_bc
22
 
 
23
 
        handler libsnmp_bc {
24
 
                entity_root = "{SYSTEM_CHASSIS,1}" # Required
25
 
                host = "9.254.253.252" # Required
26
 
                community = "community" # Version 1 Required.
27
 
                version = "3" # Required. SNMP protocol version (1|3)
28
 
                security_name = "userid" # Version 3 Required.
29
 
                passphrase = "userpass" # Version 3. Required if security_level is authNoPriv or authPriv.
30
 
                auth_type = "MD5" # Version 3. Passphrase encoding (MD5|SHA)
31
 
                security_level = "authNoPriv" # Version 3. (noAuthNoPriv|authNoPriv|authPriv)
32
 
        }
33
 
 
34
 
defines how to access the BladeCenter at 9.254.253.252 using SNMPV3
35
 
with an ID/password of userid/userpass.  The entity_root must be
36
 
passed to the STONITH bladehpi plugin as its single required parameter.
37
 
For example, to query the list of blades present in the BladeCenter
38
 
configured above, run:
39
 
 
40
 
        stonith -t bladehpi -p "{SYSTEM_CHASSIS,1}" -l
41
 
 
42
 
which is the same as:
43
 
 
44
 
        stonith -t bladehpi "entity_root={SYSTEM_CHASSIS,1}" -l
45
 
 
46
 
Use the BladeCenter Management Module web interface to set the Blade
47
 
Information to match "uname -n" for each blade in the cluster.  For
48
 
example, with the BladeCeter configured above use a brower to access 
49
 
http://9.254.253.252, login with userid/userpass, and then go to
50
 
Blade Tasks -> Configuration -> Blade Information, enter the proper
51
 
names, and select Save.  Be aware that heartbeat must be restarted
52
 
before these changes take effect or, if using the OpenHPI daemon,
53
 
the daemon must be restarted.
54
 
 
55
 
More than one BladeCenter can be placed in the OpenHPI configuration
56
 
file by using different numbers with the entity_root.  For example,
57
 
 
58
 
        plugin libsnmp_bc
59
 
 
60
 
        handler libsnmp_bc {
61
 
                entity_root = "{SYSTEM_CHASSIS,1}" # Required
62
 
                host = "9.254.253.252" # Required
63
 
                :
64
 
        }
65
 
        handler libsnmp_bc {
66
 
                entity_root = "{SYSTEM_CHASSIS,2}" # Required
67
 
                host = "9.254.253.251" # Required
68
 
                :
69
 
        }
70
 
 
71
 
There is an optional parameter, soft_reset, that is true|1 if bladehpi
72
 
should use soft reset (power cycle) to reset nodes or false|0 if it
73
 
should use hard reset (power off, wait, power on); the default is
74
 
false.  As an example, to override the default value the above stonith
75
 
command would become:
76
 
 
77
 
        stonith -t bladehpi -p "{SYSTEM_CHASSIS,1} true" -l
78
 
 
79
 
which is the same as:
80
 
 
81
 
        stonith -t bladehpi "entity_root={SYSTEM_CHASSIS,1} soft_reset=true" -l
82
 
 
83
 
The difference between the two is that a soft reset is much quicker
84
 
but may return before the node has been reset because bladehpi relies
85
 
on BladeCenter firmware to cycle the node's power, while a hard reset
86
 
is slower but guaranteed not to return until the node is dead because
87
 
bladehpi powers off the node, waits until it is off, then powers it
88
 
on again.
89
 
 
90
 
NOTE: Set the OPENHPI_CONF environment variable to contain the
91
 
fully-qualified path of the OpenHPI configuration file, for example:
92
 
 
93
 
        export OPENHPI_CONF=/etc/openhpi/openhpi.conf
94
 
 
95
 
NOTE: If OpenHPI is not configured with --disable-daemon before being
96
 
built and installed, make sure that the OpenHPI daemon is running
97
 
before using the bladehpi plugin.
98
 
 
99
 
NOTE: If debugging of the environment is needed, configure OpenHPI 
100
 
with --enable-debuggable and rebuild/reinstall, export 
101
 
OPENHPI_DEBUG=YES, and run stonith commands with the -d option.