[Linux-cluster] Fwd: [Linux-HA] fence_nut fencing agent - use NUT to fence via UPS
andrew at beekhof.net
Tue Apr 17 01:02:58 UTC 2012
William has updated the fence_nut agent, maybe someone wants to review
---------- Forwarded message ----------
From: William Seligman <seligman at nevis.columbia.edu>
Date: Sat, Apr 14, 2012 at 7:51 AM
Subject: Re: [Linux-HA] fence_nut fencing agent - use NUT to fence via UPS
To: General Linux-HA mailing list <linux-ha at lists.linux-ha.org>
On 3/1/12 5:37 PM, William Seligman wrote:
> After days spent debugging a fencing issue with my cluster, I know for certain
> that this fencing agent works, at least for me. I'd like to contribute it to the
> Linux HA community.
> In my cluster, the fencing mechanism is to use NUT (Network UPS Tools;
> <http://www.networkupstools.org/> to turn off power to a node. About 1.5 years
> ago, I contributed a NUT-based fencing agent for Pacemaker 1.0:
> That script doesn't work for stonith-ng. So here's a new agent, written in perl,
> and tested under pacemaker-1.1.6 and nut-2.4.3.
> I know there's a fence_apc_snmp agent that already in resource-agents. However,
> that agent only works with APC devices with multiple outlet control; it displays
> an error messages when used with my UPSes. This script is for those who'd rather
> use NUT than play with SNMP MIBs.
I've made some improvements to the NUT-based fencing agent I contributed before.
The changes are:
- A more rigorous approach to the error codes returned by the agent.
- Added options to delay the times between issuing a poweron/poweroff command
and verifying that the UPS responds.
The revised fence_nut agent is at <http://pastebin.com/sQdqWKQq>.
Bill Seligman | Phone: (914) 591-2823
Nevis Labs, Columbia Univ | mailto://email@example.com
PO Box 137 |
Irvington NY 10533 USA | http://www.nevis.columbia.edu/~seligman/
Linux-HA mailing list
Linux-HA at lists.linux-ha.org
See also: http://linux-ha.org/ReportingProblems
More information about the Linux-cluster