diff --git a/lib/client/gnt_node.py b/lib/client/gnt_node.py index e8312211a8111ed7df03ae5f62f82b05fa4c301a..38251f42bb72351a3571e8f2f84c39a4a75a87fe 100644 --- a/lib/client/gnt_node.py +++ b/lib/client/gnt_node.py @@ -889,7 +889,7 @@ commands = { EvacuateNode, ARGS_ONE_NODE, [FORCE_OPT, IALLOCATOR_OPT, NEW_SECONDARY_OPT, EARLY_RELEASE_OPT, PRIORITY_OPT, PRIMARY_ONLY_OPT, SECONDARY_ONLY_OPT], - "[-f] {-I <iallocator> | -n <dst>} <node>", + "[-f] {-I <iallocator> | -n <dst>} [-p | -s] [options...] <node>", "Relocate the primary and/or secondary instances from a node"), "failover": ( FailoverNode, ARGS_ONE_NODE, [FORCE_OPT, IGNORE_CONSIST_OPT, diff --git a/man/gnt-node.rst b/man/gnt-node.rst index b8cc2affb60747106ee353ee5944d329771f7e48..4065737636991c282398f299a194c2f5298a5f0f 100644 --- a/man/gnt-node.rst +++ b/man/gnt-node.rst @@ -95,9 +95,10 @@ interpreted as stdin. EVACUATE ~~~~~~~~ -**evacuate** [-f] [\--early-release] [\--iallocator *NAME* \| -\--new-secondary *destination\_node*] -[\--primary-only \| \--secondary-only] [\--early-release] {*node*} +| **evacuate** [-f] [\--early-release] +| [{-I|\--iallocator} *NAME* \| {-n|\--new-secondary} *destination\_node*] +| [{-p|\--primary-only} \| {-s|\--secondary-only} ] +| {*node*} This command will move instances away from the given node. If ``--primary-only`` is given, only primary instances are evacuated, with