[PVE-User] Custom fencing scripts

Angel Docampo adocampo at dltec.net
Wed Oct 2 13:09:31 CEST 2013


Oh, I see a typo on the p02 node definition, it should be like this.

<clusternode name="p02" votes="1" nodeid="2">
    <fence>
      <method name="power">
        <device port="9" name="fencebladecenter"/>
      </method>
    </fence>
</clusternode>

On mié, 2 de oct 2013 a las 1:05 , Angel Docampo <adocampo at dltec.net> 
wrote:
> Hi there, 
> 
> I wrote two scripts in order to turn off the nodes with my fence 
> devices, two APC smart-ups 1400, accessible only via telnet or web 
> and each connected to one node, and IBM bladecenter which blade9 is 
> my third node.
> 
> Those scripts have been tested and works in the command line. My 
> question could be pretty dumb, but I didn't found it on the wiki or 
> the forums. It's my first attempt to make fencing work, so I have 
> some doubts you may resolve...
> 
> Those two scripts are named fence_apc_expect and 
> fence_bladecenter_expect, the first will have only one parameter, the 
> IP of the mangement network interface of the UPS, and the second 
> script, two parameters, the management network IP of the bladecenter 
> and the number of the blade we want to turn off. I won't pass the 
> user and password of the UPS/Bladecenter because they are embedded on 
> the script.
> 
> To make work them, must I place them on /usr/sbin/ and call them like 
> if they were a normal fence agent? 
> 
> For example:
> 
> <fencedevices>
>     <fencedevice agent="fence_apc_expect" ipaddr="192.168.200.82" 
> name="fenceap01"/>
>     <fencedevice agent="fence_apc_expect" ipaddr="192.168.200.85" 
> name="fenceap03"/>
>     <fencedevice agent="fence_bladecenter_expect" 
> ipaddr="192.168.199.106" name="fencebladecenter">
> </fencedevices>
> 
> <clusternode name="p01" votes="1" nodeid="1">
>     <fence>
>       <method name="power">
>         <device name="fenceap01"/>
>       </method>
>     </fence>
> </clusternode>
> 
> <clusternode name="p02" votes="1" nodeid="2">
>     <fence>
>       <method name="power">
>         <device port="9" name="chassis_fence"/>
>       </method>
>     </fence>
> </clusternode>
> 
> <clusternode name="p03" votes="1" nodeid="3">
>     <fence>
>       <method name="power">
>         <device name="fencep03"/>
>       </method>
>     </fence>
> </clusternode>
> 
> 
> That configuration will be ok?
> 
> Thank you very much,
> --
> Angel Docampo
> 
> Nota Legal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-user/attachments/20131002/6f38873a/attachment.htm>


More information about the pve-user mailing list