[Pacemaker] [Patch] Optional and message change of the "crm migrate" command.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Wed Jun 15 01:47:09 EDT 2011


Hi all,

There is the message which does not comply with real operation by the message of the crm command.

When an operator executes "migrate" command, crm should display "unmigrate" in a message.
In addition, the crm command does not have the option corresponding to the Q option of the crm_resource command.

(snip)
crm(live)resource# move 
usage: migrate <rsc> [<node>] [<lifetime>] [force]
crm(live)resource# move grpDummy srv01 P3S force
Migration will take effect until: 2011-06-15 13:47:39Z
WARNING: Creating rsc_location constraint 'cli-standby-grpDummy' with a score of -INFINITY for resource grpDummy on srv02.
        This will prevent grpDummy from running on srv02 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin
        This will be the case even if srv02 is the last node in the cluster
        This message can be disabled with -Q
(snip)

I contribute a patch to add message and Q option to.(quiet option)


(snip)
crm(live)resource# migrate
usage: migrate <rsc> [<node>] [<lifetime>] [force] [quiet]
crm(live)resource# migrate grpDummy srv02 P3S force quiet
crm(live)resource# unmigrate grpDummy
crm(live)resource# migrate grpDummy srv01 P3S force
WARNING: Creating rsc_location constraint 'cli-standby-grpDummy' with a score of -INFINITY for resource grpDummy on srv02.
        This will prevent grpDummy from running on srv02 until the constraint is removed using the 'crm resource unmigrate' command or manually with cibadmin
        This will be the case even if srv02 is the last node in the cluster
        This message can be disabled with quiet

crm(live)resource# move grpDummy srv02 P3S force 
WARNING: Creating rsc_location constraint 'cli-standby-grpDummy' with a score of -INFINITY for resource grpDummy on srv02.
        This will prevent grpDummy from running on srv02 until the constraint is removed using the 'crm resource unmove' command or manually with cibadmin
        This will be the case even if srv02 is the last node in the cluster
        This message can be disabled with quiet
(snip)

I am going to contribute the patch functionalizing Q option to other crm commands later.

I do not yet revise crm_cli.txt.
I intend to send it with the patch of other Q options.

Best Regards,
Hideo Yamauchi.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.1518.01
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110615/1eca373f/attachment-0002.ksh>


More information about the Pacemaker mailing list