[ClusterLabs] Vagrantfile for Clusters_from_Scratch 1.1-pcs tutorial
Andrew Beekhof
andrew at beekhof.net
Wed Aug 5 01:58:16 CEST 2015
> On 5 Aug 2015, at 3:52 am, Andrei Borzenkov <arvidjaar at gmail.com> wrote:
>
> В Tue, 4 Aug 2015 14:26:32 +1000
> Andrew Beekhof <andrew at beekhof.net> пишет:
>
>>
>> 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.
>>
>
> Hmm ... am I right that this won't work with 2 node cluster as it cannot
> retain quorum on node failure?
Nope. The fedora code correctly observes no-quorum-policy and there is also the two-node and wait-for-all quorum options in corosync.conf
So there are definitely ways for it to work sanely for the 2-node case.
More information about the Users
mailing list