On 1/31/12 4:11 PM, emmanuel segura wrote:
> William can you try like this
> 
> primitive AdminDrbd ocf:linbit:drbd \
>   params drbd_resource="admin" \
>   op monitor interval="60s" role="Master"
> 
> clone Adming AdminDrbd

Both Arnold and Lars said this wouldn't work. I just tried it. They were right.

Is there anything at all to the log message:

Jan 31 16:20:54 orestes-tb lrmd: [12231]: info: RA output:
(AdminDrbd:1:monitor:stderr) Could not map uname=orestes-tb.nevis.columbia.edu
to a UUID: The object/attribute does not exist

That's been syslog'ed every 59 seconds since I updated AdminDrbd as Lars 
suggested:

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"


> 2012/1/31 William Seligman <[email protected]>
> 
>> 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 <[email protected]>
>>>
>>>> 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://[email protected]
PO Box 137                |
Irvington NY 10533 USA    | http://www.nevis.columbia.edu/~seligman/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to