Revision 456798ab
b/lib/client/gnt_instance.py | ||
---|---|---|
1302 | 1302 |
os_name=opts.os, |
1303 | 1303 |
osparams=opts.osparams, |
1304 | 1304 |
force_variant=opts.force_variant, |
1305 |
force=opts.force) |
|
1305 |
force=opts.force, |
|
1306 |
wait_for_sync=opts.wait_for_sync) |
|
1306 | 1307 |
|
1307 | 1308 |
# even if here we process the result, we allow submit only |
1308 | 1309 |
result = SubmitOrSend(op, opts) |
... | ... | |
1448 | 1449 |
SetInstanceParams, ARGS_ONE_INSTANCE, |
1449 | 1450 |
[BACKEND_OPT, DISK_OPT, FORCE_OPT, HVOPTS_OPT, NET_OPT, SUBMIT_OPT, |
1450 | 1451 |
DISK_TEMPLATE_OPT, SINGLE_NODE_OPT, OS_OPT, FORCE_VARIANT_OPT, |
1451 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT], |
|
1452 |
OSPARAMS_OPT, DRY_RUN_OPT, PRIORITY_OPT, NWSYNC_OPT],
|
|
1452 | 1453 |
"<instance>", "Alters the parameters of an instance"), |
1453 | 1454 |
'shutdown': ( |
1454 | 1455 |
GenericManyOps("shutdown", _ShutdownInstance), [ArgInstance()], |
b/lib/cmdlib.py | ||
---|---|---|
9601 | 9601 |
self.cfg.Update(instance, feedback_fn) |
9602 | 9602 |
|
9603 | 9603 |
# disks are created, waiting for sync |
9604 |
disk_abort = not _WaitForSync(self, instance) |
|
9604 |
disk_abort = not _WaitForSync(self, instance, |
|
9605 |
oneshot=not self.op.wait_for_sync) |
|
9605 | 9606 |
if disk_abort: |
9606 | 9607 |
raise errors.OpExecError("There are some degraded disks for" |
9607 | 9608 |
" this instance, please cleanup manually") |
b/lib/opcodes.py | ||
---|---|---|
989 | 989 |
("os_name", None, ht.TMaybeString), |
990 | 990 |
("force_variant", False, ht.TBool), |
991 | 991 |
("osparams", None, ht.TMaybeDict), |
992 |
("wait_for_sync", True, ht.TBool), |
|
992 | 993 |
] |
993 | 994 |
|
994 | 995 |
|
b/man/gnt-instance.rst | ||
---|---|---|
876 | 876 |
| [--net add*[:options]* \| --net remove \| --net *N:options*] |
877 | 877 |
| [--disk add:size=*SIZE*[,vg=*VG*][,metavg=*VG*] \| --disk remove \| |
878 | 878 |
| --disk *N*:mode=*MODE*] |
879 |
| [-t plain | -t drbd -n *new_secondary*] |
|
879 |
| [-t plain | -t drbd -n *new_secondary*] [--no-wait-for-sync]
|
|
880 | 880 |
| [--os-type=*OS* [--force-variant]] |
881 | 881 |
| [-O, --os-parameters *param*=*value*... ] |
882 | 882 |
| [--submit] |
... | ... | |
895 | 895 |
Currently only conversions between the plain and drbd disk templates |
896 | 896 |
are supported, and the instance must be stopped before attempting the |
897 | 897 |
conversion. When changing from the plain to the drbd disk template, a |
898 |
new secondary node must be specified via the ``-n`` option. |
|
898 |
new secondary node must be specified via the ``-n`` option. The option |
|
899 |
``--no-wait-for-sync`` can be used when converting to the ``drbd`` |
|
900 |
template in order to make the instance available for startup before |
|
901 |
DRBD has finished resyncing. |
|
899 | 902 |
|
900 | 903 |
The ``--disk add:size=``*SIZE* option adds a disk to the instance. The |
901 | 904 |
optional ``vg=``*VG* option specifies LVM volume group other than |
Also available in: Unified diff