[Linux-cluster] two fencing problems
dillo at seas.upenn.edu
Tue Dec 6 03:42:51 UTC 2005
On Mon, Dec 05, 2005 at 07:40:16PM -0500, Greg Forte wrote:
> two (probably related) questions concerning fencing and APC AP7900 units:
> 1) fence_apc doesn't appear to be compatible with these units - when I run:
> sudo /sbin/fence_apc -a <ipaddy> -l <usr> -p <pwd> -n1 -T -v
> it comes back with:
> failed: unrecognised menu response
> The output file shows that it's getting as far as the "Outlet
> Control/Configuration" menu, but never selects the specified port.
> This is on RHEL ES4 update 2 with fence-1.32.6-0 installed.
> Does anyone have this working with AP7900s, and if so did you have to
> hack the fence_apc script or is there just something I'm missing?
I'm in the process of testing the attached patch, basically
just had to remove a portion of the match for the `Control
> 2) in the cluster configuration tool (GUI), there's no place to
> specify the port to cycle for an "APC Power Device". I tried adding
> "port=#" to the <fencedevice ...> tags in the cluster.conf file, but the
> cluster configuration tool didn't like that. And of course, I was
> unable to test if this actually works anyway because of problem #1 :-(
> Anyway, assuming I get fence_apc to work, how do I specify ports in the
> cluster configuration tool? or is this not supported? In which case
> can I add the port option in the cluster.conf like I'm trying to do and
> have it work? I have system-config-cluster-1.0.16-1.0 installed.
here is the clusternode elem I'm using, with the port
specified, and seems to work so far. as far as I know, this
must be specified in the cluster.conf manually.
<clusternode name="node1" votes="1">
<device name="pdu" port="1"/>
hope this helps.
Penn Bioinformatics Core
University of Pennsylvania
-------------- next part --------------
--- /sbin/fence_apc 2005-10-27 16:12:19.000000000 -0400
+++ fence_apc 2005-12-05 22:33:04.000000000 -0500
@@ -247,7 +247,7 @@
/--\s*Outlet Control.*(\d+)\s*-\s+Outlet\s+$opt_n\D[^\n]*\s(?-i:ON|OFF)\*?\s/ism ||
# Administrator Outlet Control menu
- /--\s*Outlet $opt_n\D.*(\d+)\s*-\s*control outlet\s+$opt_n\D/ism
+ /--\s*Outlet $opt_n\D.*(\d+)\s*-\s*control outlet/ism
More information about the Linux-cluster