Skip to content
Snippets Groups Projects
Commit f1dff7ec authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix explanation of gnt-node evacuate --primaries-only


Furthermore, correct the --help display on evacuate.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent c22341e6
No related branches found
No related tags found
No related merge requests found
# #
# #
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Google Inc. # Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -865,8 +865,7 @@ commands = { ...@@ -865,8 +865,7 @@ commands = {
[FORCE_OPT, IALLOCATOR_OPT, NEW_SECONDARY_OPT, EARLY_RELEASE_OPT, [FORCE_OPT, IALLOCATOR_OPT, NEW_SECONDARY_OPT, EARLY_RELEASE_OPT,
PRIORITY_OPT, PRIMARY_ONLY_OPT, SECONDARY_ONLY_OPT], PRIORITY_OPT, PRIMARY_ONLY_OPT, SECONDARY_ONLY_OPT],
"[-f] {-I <iallocator> | -n <dst>} <node>", "[-f] {-I <iallocator> | -n <dst>} <node>",
"Relocate the secondary instances from a node" "Relocate the primary and/or secondary instances from a node"),
" to other nodes"),
"failover": ( "failover": (
FailoverNode, ARGS_ONE_NODE, [FORCE_OPT, IGNORE_CONSIST_OPT, FailoverNode, ARGS_ONE_NODE, [FORCE_OPT, IGNORE_CONSIST_OPT,
IALLOCATOR_OPT, PRIORITY_OPT], IALLOCATOR_OPT, PRIORITY_OPT],
......
...@@ -118,7 +118,12 @@ potential recovery). ...@@ -118,7 +118,12 @@ potential recovery).
Note that this command is equivalent to using per-instance commands for Note that this command is equivalent to using per-instance commands for
each affected instance individually: each affected instance individually:
- ``--primary-only`` is equivalent to ``gnt-instance failover/migration`` - ``--primary-only`` is equivalent to ``gnt-instance
failover/migration`` for non-DRBD instances, but for DRBD instances
it's different, and usually is a slow process (it will change the
primary to another node while keeping the secondary, this requiring
data copies, whereas failover/migrate will only toggle the
primary/secondary roles, a fast process)
- ``--secondary-only`` is equivalent to ``gnt-instance replace-disks`` - ``--secondary-only`` is equivalent to ``gnt-instance replace-disks``
in the secondary node change mode (only valid for DRBD instances) in the secondary node change mode (only valid for DRBD instances)
- when neither of the above is done a combination of the two cases is run - when neither of the above is done a combination of the two cases is run
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment