[Pacemaker] Move DRBD master

Dan Frincu dfrincu at streamwide.ro
Tue Oct 19 12:48:28 UTC 2010


Vadym Chepkov wrote:
> On Oct 19, 2010, at 3:13 AM, Dan Frincu wrote:
>
>   
>> Vadym Chepkov wrote:
>>     
>>> Hi,
>>>
>>> What is the crm shell command to move drbd master to a different node?
>>>  
>>>       
>> # crm resource help migrate
>>
>> Migrate a resource to a different node. If node is left out, the
>> resource is migrated by creating a constraint which prevents it from
>> running on the current node. Additionally, you may specify a
>> lifetime for the constraint---once it expires, the location
>> constraint will no longer be active.
>>
>> Usage:
>> ...............
>>       migrate <rsc> [<node>] [<lifetime>]
>>
>> crm resource migrate ms_drbd_storage
>>
>> WARNING: Creating rsc_location constraint 'cli-standby-ms_drbd_storage' with a score of -INFINITY for resource ms_drbd_storage on cluster1.
>>       This will prevent ms_drbd_storage from running on cluster1 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin
>>       This will be the case even if cluster1 is the last node in the cluster
>>       This message can be disabled with -Q
>>
>>
>> This also made me to remind that I was wondering, is there a way to
>> demote one instance of multi-master ms resource away from particular
>> node (forcibly switch it to a slave state on that node). I didn't find
>> the answer too. Is it possible with crm shell?
>>
>> Same as above, just specify the node in the command.
>>
>>     
>
> Have you actually tried it? This command doesn't work for this case.
>
>   
To be honest, no, I actually don't think it's viable since in a 
multi-master architecture you have a one-to-one relationship on the DRBD 
side. There's a thread related to this over on the DRBD mailing list, 
still no reply yet, might want to check it out over the next couple of 
days for progress.

Regards,

Dan
>> Regards,
>>
>> Dan
>>     
>>> Thank you,
>>> Vadym
>>>
>>> _______________________________________________
>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>
>>> Project Home: http://www.clusterlabs.org
>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>>>  
>>>       
>> -- 
>> Dan FRINCU
>> Systems Engineer
>> CCNA, RHCE
>> Streamwide Romania
>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>>     
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>   

-- 
Dan FRINCU
Systems Engineer
CCNA, RHCE
Streamwide Romania

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101019/c68657b4/attachment-0002.htm>


More information about the Pacemaker mailing list