[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] New fencing method



On Tue, May 20, 2008 at 08:41:41AM +0200, Darek Skorupa wrote:
> >However, I'm having trouble finding how to integrate my script into
> >the fence_node system.  Is there a config file somewhere, or will I
> >need to build a custom version of fence_node?
> >
> >  
> I think, you should copy fence_snmp script to /sbin folder and if script 
> will exit with '0' status fencing is successful in otherwise is 
> unsuccessful.
> 
> Am I understand it in good way ??

Yep - I was wondering if there was additional ways to teach the
cluster utilities how to setup the parameters.

Then I assume I would write something like this in cluster.conf:

<clusternodes>
	<clusternode name="sensor01.dc3" nodeid="1" votes="1">
		<fence>
			<method name="1">
				<device name="switch1" ifIndex="10020"/>
			</method>
		</fence>
	</clusternode>
	<clusternode name="sensor02.dc3" nodeid="2" votes="1">
		<fence>
			<method name="1">
				<device name="switch2" ifIndex="10021"/>
			</method>
		</fence>
	</clusternode>
</clusternodes>
<fencedevices>
	<fencedevice agent="fence_snmp" ipaddr="10.0.0.1" comm="sw1comm" name="switch1" version="2c"/>
	<fencedevice agent="fence_snmp" ipaddr="10.0.0.2" comm="sw2comm" name="switch2" version="1"/>
</fencedevices>




But how does fence_node know to call these like:

fence_snmp -o down -v 2c -a 10.0.0.1 -c sw1comm -i 10020
fence_snmp -o down -v  1 -a 10.0.0.2 -c sw2comm -i 10021




-- 
Ross Vandegrift
ross kallisti us

"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
	--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]