Revision f1dff7ec

b/lib/client/gnt_node.py
1 1
#
2 2
#
3 3

  
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Google Inc.
4
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
5 5
#
6 6
# This program is free software; you can redistribute it and/or modify
7 7
# it under the terms of the GNU General Public License as published by
......
865 865
    [FORCE_OPT, IALLOCATOR_OPT, NEW_SECONDARY_OPT, EARLY_RELEASE_OPT,
866 866
     PRIORITY_OPT, PRIMARY_ONLY_OPT, SECONDARY_ONLY_OPT],
867 867
    "[-f] {-I <iallocator> | -n <dst>} <node>",
868
    "Relocate the secondary instances from a node"
869
    " to other nodes"),
868
    "Relocate the primary and/or secondary instances from a node"),
870 869
  "failover": (
871 870
    FailoverNode, ARGS_ONE_NODE, [FORCE_OPT, IGNORE_CONSIST_OPT,
872 871
                                  IALLOCATOR_OPT, PRIORITY_OPT],
b/man/gnt-node.rst
118 118
Note that this command is equivalent to using per-instance commands for
119 119
each affected instance individually:
120 120

  
121
- ``--primary-only`` is equivalent to ``gnt-instance failover/migration``
121
- ``--primary-only`` is equivalent to ``gnt-instance
122
  failover/migration`` for non-DRBD instances, but for DRBD instances
123
  it's different, and usually is a slow process (it will change the
124
  primary to another node while keeping the secondary, this requiring
125
  data copies, whereas failover/migrate will only toggle the
126
  primary/secondary roles, a fast process)
122 127
- ``--secondary-only`` is equivalent to ``gnt-instance replace-disks``
123 128
  in the secondary node change mode (only valid for DRBD instances)
124 129
- when neither of the above is done a combination of the two cases is run

Also available in: Unified diff