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@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 <[email protected] > wrote: > Hi, > > On Mon, 6 Feb 2017 14:20:45 +0100 > Marek Grac <[email protected]> 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 > > 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: [email protected] > 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 >
_______________________________________________ Users mailing list: [email protected] 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
