[Linux-cluster] Two node cluster without quorum disk

Gordan Bobic gordan at bobich.net
Wed Apr 22 11:40:39 UTC 2009


On Wed, 22 Apr 2009 12:09:26 +0100, Ralph Zukeb <ralphzukeb at gmail.com>
wrote:
> 2009/4/22 Gordan Bobic <gordan at bobich.net>:
>> On Wed, 22 Apr 2009 11:14:49 +0100, Ralph Zukeb <ralphzukeb at gmail.com>
>> wrote:
>>> 2009/4/22 Mrugesh Karnik <mrugeshkarnik at gmail.com>:
>>>> On Wednesday 22 Apr 2009 15:25:32 Ralph Zukeb wrote:
>>>>> Hello again! Thanks for the tips so far.
>>>>>
>>>>> How can I ensure that the node holding the services and resources in
a
>>>>> two node cluster keeps holding them if the two nodes cannot see each
>>>>> other?
>>>>>
>>>>> I am not using a quorum disk.
>>>>
>>>> <cman two_nodes="1" expected_votes="1"/>
>>>>
>>>> Make sure you configure fencing properly though. Also, getting rid of
>> the
>>>> two_node attribute requires a full cluster restart.
>>>>
>>>> Mrugesh
>>>>
>>>
>>> I tried this, but when I killed the switch for the cluster traffic,
>>> BOTH nodes got fenced! Can I avoid this?
>>
>> One option would be to edit the fencing agents to include a different
>> delay on both nodes. (e.g. put something like sleep 10 in the fencing
>> agent on the secondary node). That will make sure that the secondary
>> node loses the fencing shootout.
>>
> 
> Thanks. How do I ensure a certain node is secondary?

You don't. You arbitrarily pick with one you want to be the primary
and doctor the fencing agent to add a delay on the other one, which
will thus be made to lose a fencing shootout.

Gordan




More information about the Linux-cluster mailing list