[Pacemaker] Move DRBD master

Dan Frincu dfrincu at streamwide.ro
Tue Oct 19 07:13:06 UTC 2010


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.

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





More information about the Pacemaker mailing list