Revision 893e8f49
b/lib/client/gnt_instance.py | ||
---|---|---|
750 | 750 |
op = opcodes.OpInstanceReplaceDisks(instance_name=args[0], disks=disks, |
751 | 751 |
remote_node=new_2ndary, mode=mode, |
752 | 752 |
iallocator=iallocator, |
753 |
early_release=opts.early_release) |
|
753 |
early_release=opts.early_release, |
|
754 |
ignore_ipolicy=opts.ignore_ipolicy) |
|
754 | 755 |
SubmitOrSend(op, opts) |
755 | 756 |
return 0 |
756 | 757 |
|
... | ... | |
1501 | 1502 |
ReplaceDisks, ARGS_ONE_INSTANCE, |
1502 | 1503 |
[AUTO_REPLACE_OPT, DISKIDX_OPT, IALLOCATOR_OPT, EARLY_RELEASE_OPT, |
1503 | 1504 |
NEW_SECONDARY_OPT, ON_PRIMARY_OPT, ON_SECONDARY_OPT, SUBMIT_OPT, |
1504 |
DRY_RUN_OPT, PRIORITY_OPT], |
|
1505 |
DRY_RUN_OPT, PRIORITY_OPT, IGNORE_IPOLICY_OPT],
|
|
1505 | 1506 |
"[-s|-p|-n NODE|-I NAME] <instance>", |
1506 | 1507 |
"Replaces all disks for the instance"), |
1507 | 1508 |
"modify": ( |
b/man/gnt-instance.rst | ||
---|---|---|
1200 | 1200 |
REPLACE-DISKS |
1201 | 1201 |
^^^^^^^^^^^^^ |
1202 | 1202 |
|
1203 |
**replace-disks** [--submit] [--early-release] {-p} [--disks *idx*]
|
|
1204 |
{*instance*} |
|
1203 |
**replace-disks** [--submit] [--early-release] [--ignore-ipolicy] {-p}
|
|
1204 |
[--disks *idx*] {*instance*}
|
|
1205 | 1205 |
|
1206 |
**replace-disks** [--submit] [--early-release] {-s} [--disks *idx*]
|
|
1207 |
{*instance*} |
|
1206 |
**replace-disks** [--submit] [--early-release] [--ignore-ipolicy] {-s}
|
|
1207 |
[--disks *idx*] {*instance*}
|
|
1208 | 1208 |
|
1209 |
**replace-disks** [--submit] [--early-release] {--iallocator *name*
|
|
1210 |
\| --new-secondary *NODE*} {*instance*}
|
|
1209 |
**replace-disks** [--submit] [--early-release] [--ignore-ipolicy]
|
|
1210 |
{--iallocator *name* \| -- {*instance*}
|
|
1211 | 1211 |
|
1212 |
**replace-disks** [--submit] [--early-release] {--auto}
|
|
1213 |
{*instance*} |
|
1212 |
**replace-disks** [--submit] [--early-release] [--ignore-ipolicy]
|
|
1213 |
{--auto} {*instance*}
|
|
1214 | 1214 |
|
1215 | 1215 |
This command is a generalized form for replacing disks. It is |
1216 | 1216 |
currently only valid for the mirrored (DRBD) disk template. |
... | ... | |
1249 | 1249 |
broken) or when the storage on the primary node is known to be fine |
1250 | 1250 |
(thus we won't need the old storage for potential recovery). |
1251 | 1251 |
|
1252 |
The ``--ignore-ipolicy`` let the command ignore instance policy |
|
1253 |
violations if replace-disks changes groups and the instance would |
|
1254 |
violate the new groups instance policy. |
|
1255 |
|
|
1252 | 1256 |
Note that it is not possible to select an offline or drained node as a |
1253 | 1257 |
new secondary. |
1254 | 1258 |
|
Also available in: Unified diff