[ClusterLabs] Vagrantfile for Clusters_from_Scratch 1.1-pcs tutorial
Andrew Beekhof
andrew at beekhof.net
Tue Aug 4 04:26:32 UTC 2015
> On 5 May 2015, at 12:57 am, Marcin Dulak <marcin.dulak at gmail.com> wrote:
>
> Hi,
>
> i started working on converting http://clusterlabs.org/doc/en-US/Pacemaker/1.1-pcs/html-single/Clusters_from_Scratch into a Vagrantfile:
> https://github.com/marcindulak/Clusters_From_Scratch-1.1-pcs
> I got stopped at the STONITH configuration (Chapter 8): http://bugs.clusterlabs.org/show_bug.cgi?id=5241
>
> I'm trying out SBD for STONITH, which i plan to handle by VirtualBox shareable hard disks (https://www.virtualbox.org/manual/ch05.html#hdimagewrites)
> I'm using primarily these two documents https://www.suse.com/documentation/sle-ha-12/book_sleha/data/sec_ha_storage_protect_fencing.html
> and http://www.linux-ha.org/wiki/SBD_Fencing but many things are different on Fedora 21.
TBH, the shared disk side of things might not even be being built on fedora yet.
No-one on the RH team has had a chance to test it yet so its a bit of an unknown.
Having said that, you don’t need the shared disk side of things to get some benefit from sbd (yes, i know how strange that sounds).
On Fedora/RHEL/CentOS (speaking of which, CentOS 7 would be a much better target than Fedora) you just need a functioning watchdog device (most virt frameworks offer one).
Then on each node:
- stop the cluster
- install the sbd package
- configure the following in /etc/sysconfig/sbd
SBD_DELAY_START=no
SBD_PACEMAKER=yes
SBD_STARTMODE=clean
SBD_WATCHDOG_DEV=/dev/watchdog
- if 'uname -n’ is not the same as the name by which the cluster knows your node, add:
SBD_OPTS=“-n ${the_uname_from_cib}”
- enable sbd to start: systemctl enable sbd
Once this is complete on all nodes, start that cluster again.
>
> Before I invest too much time:
> - is SBD on a VirtualBox shareable hard disk a good idea?
> - if so could you point me to a working example of SBD on modern Fedora + pcs?
> - i have experience in packaging RPMS so if there is any work related to sbd RPM needed I can contribute.
> For example there is currently no sbd RPM on Fedora 21, 22 and I'm using the package from Rawhide's (23) koji.
>
> Best regards,
>
> Marcin
>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://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