[ClusterLabs] Antw: crm shell: "help migrate" is somewhat "thin"...

Kristoffer Grönlund kgronlund at suse.com
Mon Jan 4 13:41:40 UTC 2016


Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de> writes:

>>>> Ulrich Windl schrieb am 28.12.2015 um 09:17 in Nachricht <5680F025.9B2 : 161 :
> 60728>:
>> Hi!
>> 
>> When trying to migrate a clone resource I got this (SLES11 SP4 with 
>> crmsh-2.1.2+git49.g2e3fa0e-1.32):
>> # crm resource migrate cln_ctdb PT5M
>> Resource 'cln_ctdb' not moved: active in 2 locations.
>> You can prevent 'cln_ctdb' from running on a specific location with: --ban 
>> --host <name>
>> Error performing operation: Invalid argument
>
> An update: When I try "crm resource migrate --ban --host h02 cln_rksaps02_ctdb PT5M", I get an error message, also: "ERROR: resource.migrate: Not our node: --host"
>

Hi,

The above error is reported by the pacemaker tools which take a
different set of arguments compared to crmsh itself.

The migrate <resource> <host> form is not applicable to cloned
resources. I agree that the help text could be clearer about this.

Cheers,
Kristoffer

>> 
>> So when I tried "help migrate" in interactive crm shell, I only get this:
>> ---
>> crm(live)resource# help migrate
>> Migrate a resource to another node
>> 
>> 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>] [force]
>> ---
>> 
>> My guess is that the help is incomplete!
>> Can you temporarily provide a corrected usage text?
>> 
>> Regards,
>> Ulrich
>> 
>> 
>
>
>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>

-- 
// Kristoffer Grönlund
// kgronlund at suse.com




More information about the Users mailing list