Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users
Re: cman+pacemaker+dual-primary drbd does not promote
 

Index | Next | Previous | View Flat


seligman at nevis

Jan 31, 2012, 12:54 PM


Views: 1491
Permalink
Re: cman+pacemaker+dual-primary drbd does not promote [In reply to]

On 1/31/12 3:47 PM, emmanuel segura wrote:

> William try to follow the suggestion of Arnold
>
> In my case it's different because we don't use drbd we are using SAN with
> ocfs2
>
> But i think for drbd in dual primary you need the attribute master-max="2"

I did, or thought I did. Have I missed something? Again, from "crm configure show":

primitive AdminDrbd ocf:linbit:drbd \
params drbd_resource="admin" \
op monitor interval="60s" role="Master" \
op monitor interval="59s" role="Slave" \
op stop interval="0" timeout="320" \
op start interval="0" timeout="240"

ms AdminClone AdminDrbd \
meta master-max="2" master-node-max="1" clone-max="2" clone-node-max="1"

Still no promotion to primary on either node.

>
> 2012/1/31 William Seligman <seligman [at] nevis>
>
>> On Tue, 31 Jan 2012 00:36:23 Arnold Krille wrote:
>>
>>> On Tuesday 31 January 2012 00:12:52 emmanuel segura wrote:
>>
>>>> But if you wanna implement dual primary i think you don't nee promote
>>>> for your drbd Try to use clone without master/slave
>>
>>> At least when you use the linbit-ra, using it without a master-clone will
>>> give you one(!) slave only. When you use a normal clone with two clones,
>>> you will get two slaves. The RA only goes primary on "promote", that is
>>> when its in master-state. => You need a master-clone of two clones with
>>> 1-2 masters to use drbd in the cluster.
>>
>> If I understand Emmanual's suggestion: The only way I know how to implement
>> this is to create a simple clone group with lsb::drbd instead of Linbit's
>> drbd resource, and put "become-primary-on" for both my nodes in drbd.conf.
>>
>> This might work in the short term, but I think it's risky in the long term.
>> For example: Something goes wrong and node A stoniths node B. I bring node
>> B back up, disabling cman+pacemaker before I do so, and want to re-sync
>> node B's DRBD partition with A. If I'm stupid (occupational hazard), I
>> won't remember to edit drbd.conf before I do this, node B will
>> automatically try to become primary, and probably get stonith'ed again.>>
>>
>> Arnold: I thought that was what I was doing with these statements:
>>
>> primitive AdminDrbd ocf:linbit:drbd \
>> params drbd_resource="admin" \
>> op monitor interval="60s" role="Master" \
>> op stop interval="0" timeout="320" \
>> op start interval="0" timeout="240"
>>
>> ms AdminClone AdminDrbd \
>> meta master-max="2" master-node-max="1" clone-max="2"
>> clone-node-max="1"
>>
>>
>> That is, master-max="2" means to promote two instances to master. Did I get
>> it wrong?

--
Bill Seligman | Phone: (914) 591-2823
Nevis Labs, Columbia Univ | mailto://seligman [at] nevis
PO Box 137 |
Irvington NY 10533 USA | http://www.nevis.columbia.edu/~seligman/
Attachments: smime.p7s (4.39 KB)

Subject User Time
cman+pacemaker+dual-primary drbd does not promote seligman at nevis Jan 30, 2012, 2:42 PM
    Re: cman+pacemaker+dual-primary drbd does not promote emi2fast at gmail Jan 30, 2012, 3:12 PM
    Re: cman+pacemaker+dual-primary drbd does not promote arnold at arnoldarts Jan 30, 2012, 3:36 PM
    Re: cman+pacemaker+dual-primary drbd does not promote lars.ellenberg at linbit Jan 31, 2012, 2:47 AM
    Re: cman+pacemaker+dual-primary drbd does not promote seligman at nevis Jan 31, 2012, 9:08 AM
        Re: cman+pacemaker+dual-primary drbd does not promote emi2fast at gmail Jan 31, 2012, 12:47 PM
    Re: cman+pacemaker+dual-primary drbd does not promote seligman at nevis Jan 31, 2012, 9:55 AM
    Re: cman+pacemaker+dual-primary drbd does not promote seligman at nevis Jan 31, 2012, 12:54 PM
        Re: cman+pacemaker+dual-primary drbd does not promote emi2fast at gmail Jan 31, 2012, 1:11 PM
        Re: cman+pacemaker+dual-primary drbd does not promote arnold at arnoldarts Jan 31, 2012, 3:01 PM
    Re: cman+pacemaker+dual-primary drbd does not promote lars.ellenberg at linbit Jan 31, 2012, 1:17 PM
    Re: cman+pacemaker+dual-primary drbd does not promote seligman at nevis Jan 31, 2012, 1:26 PM
        Re: cman+pacemaker+dual-primary drbd does not promote lars.ellenberg at linbit Jan 31, 2012, 1:42 PM
            Re: cman+pacemaker+dual-primary drbd does not promote seligman at nevis Jan 31, 2012, 2:04 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.