On Oct 19, 2010, at 9:18 AM, Dan Frincu wrote:

> 
> 
> Vadym Chepkov wrote:
>> 
>> 
>> On Oct 19, 2010, at 3:42 AM, Pavlos Parissis wrote:
>> 
>>> 
>>> 
>>> On 19 October 2010 01:18, Vadym Chepkov <vchep...@gmail.com> wrote:
>>> Hi,
>>> 
>>> What is the crm shell command to move drbd master to a different node?
>>> 
>>> 
>>> take a look at this 
>>> http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg06300.html
>>> _______________________________________________
>> 
>> Wow, not the friendliest command I would say. Maybe "move" command can be 
>> enhanced to provide something similar?
>> 
>> Thanks,
>> Vadym
> The crm resource move/migrate <rsc> provides/creates the location constraint 
> within the crm shell. 
> 
> In the example I gave:
> 
> 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
> 
> The warning message appears in the console after executing the command in the 
> crm shell, running a crm configure show reveals the following:
> 
> location cli-standby-ms_drbd_storage ms_drbd_storage \
>         rule $id="cli-standby-rule-ms_drbd_storage" -inf: #uname eq cluster1
> 
> The example in the UEL above has been done manually to (probably) provide an 
> advisory placement constraint, the one set by crm resource move <rsc> is a 
> mandatory placement constraint.
> 


It misses $role=Master and doesn't work because of that.

Vadym

_______________________________________________
Pacemaker mailing list: Pacemaker@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

Reply via email to