[ClusterLabs] Fence agent for VirtualBox

Klaus Wenninger kwenning at redhat.com
Tue Feb 7 02:33:01 EST 2017


Maybe you need some mapping between vbox-guest-names and pacemaker
node-names? (attribute pcmk_host_map)

That you are writing that you added the script as fence_virtual is probably
a typo in the mail ... and would probably create a different error
message ...

On 02/06/2017 07:06 PM, Jihed M'selmi wrote:
> Tahnks for the share. I tried to implement it by adding the script
> fence_virtual  under /usr/sbin (chmod +x).
>
> I configure the stonith on both nodes but, I can't fence nodes. any
> thoughts ?
>
>  Resource: fence_vbox2 (class=stonith type=fence_virtualbox)
>   Attributes: ipaddr=192.168.1.77
>   Operations: monitor interval=60s (fence_vbox2-monitor-interval-60s)
>  Resource: fence_vbox1 (class=stonith type=fence_virtualbox)
>   Attributes: ipaddr=192.168.1.77
>   Operations: monitor interval=60s (fence_vbox1-monitor-interval-60s)
> [root at node1 ~]# pcs stonith fence node2
> Error: unable to fence 'node2'
> Command failed: No such device
>
>
> Cluster name: mycluster
> Stack: corosync
> Current DC: node1 (version 1.1.15-11.el7-e174ec8) - partition with quorum
> Last updated: Mon Feb  6 19:03:50 2017        Last change: Mon Feb  6
> 18:56:19 2017 by root via cibadmin on node1
>
> 2 nodes and 2 resources configured
>
> Online: [ node1 node2 ]
>
> Full list of resources:
>
>  fence_vbox2    (stonith:fence_virtualbox):    Started node1
>  fence_vbox1    (stonith:fence_virtualbox):    Started node2
>
> Daemon Status:
>   corosync: active/enabled
>   pacemaker: active/enabled
>   pcsd: active/enabled
>
>
>
>
>
>
>
> Jihed MSELMI
> RHCE, RHCSA, VCP4
> 10 Villa Stendhal, 75020 Paris France
> Mobile: +33 (0) 753768653
>
>
> On Mon, Feb 6, 2017 at 5:50 PM, Jehan-Guillaume de Rorthais
> <jgdr at dalibo.com <mailto:jgdr at dalibo.com>> wrote:
>
>     Hi,
>
>     On Mon, 6 Feb 2017 14:20:45 +0100
>     Marek Grac <mgrac at redhat.com <mailto:mgrac at redhat.com>> wrote:
>
>     > I don't have one. But I see a lot of question about fence_vbox
>     in last
>     > days, is there any new material that references it?
>
>     Here is a script a colleague of mine wrote (based on fence_virsh)
>     to be able to
>     fence a vbox VM:
>
>       https://gist.github.com/marco44/2a4e5213a328829acee60015bf9b5671
>     <https://gist.github.com/marco44/2a4e5213a328829acee60015bf9b5671>
>
>     He wrote it to be able to build PoC cluster using vbox. It has not
>     been tested
>     in production, but it worked like a charm during some workshops so
>     far.
>
>     Regards,
>     --
>     Jehan-Guillaume de Rorthais
>     Dalibo
>
>     _______________________________________________
>     Users mailing list: Users at clusterlabs.org
>     <mailto:Users at clusterlabs.org>
>     http://lists.clusterlabs.org/mailman/listinfo/users
>     <http://lists.clusterlabs.org/mailman/listinfo/users>
>
>     Project Home: http://www.clusterlabs.org
>     Getting started:
>     http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>     <http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
>     Bugs: http://bugs.clusterlabs.org
>
>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org






More information about the Users mailing list