617 |
617 |
|
618 |
618 |
gnt-instance add -O dhcp=yes ...
|
619 |
619 |
|
620 |
|
The ``-I (--iallocator)`` option specifies the instance allocator
|
621 |
|
plugin to use. If you pass in this option the allocator will select
|
622 |
|
nodes for this instance automatically, so you don't need to pass them
|
623 |
|
with the ``-n`` option. For more information please refer to the
|
624 |
|
instance allocator documentation.
|
|
620 |
The ``-I (--iallocator)`` option specifies the instance allocator plugin
|
|
621 |
to use (``.`` means the default allocator). If you pass in this option
|
|
622 |
the allocator will select nodes for this instance automatically, so you
|
|
623 |
don't need to pass them with the ``-n`` option. For more information
|
|
624 |
please refer to the instance allocator documentation.
|
625 |
625 |
|
626 |
626 |
The ``-t (--disk-template)`` options specifies the disk layout type
|
627 |
627 |
for the instance. The available choices are:
|
... | ... | |
1283 |
1283 |
the first and third disks.
|
1284 |
1284 |
|
1285 |
1285 |
The third form (when passing either the ``--iallocator`` or the
|
1286 |
|
``--new-secondary`` option) is designed to change secondary node of
|
1287 |
|
the instance. Specifying ``--iallocator`` makes the new secondary be
|
1288 |
|
selected automatically by the specified allocator plugin, otherwise
|
1289 |
|
the new secondary node will be the one chosen manually via the
|
1290 |
|
``--new-secondary`` option.
|
|
1286 |
``--new-secondary`` option) is designed to change secondary node of the
|
|
1287 |
instance. Specifying ``--iallocator`` makes the new secondary be
|
|
1288 |
selected automatically by the specified allocator plugin (use ``.`` to
|
|
1289 |
indicate the default allocator), otherwise the new secondary node will
|
|
1290 |
be the one chosen manually via the ``--new-secondary`` option.
|
1291 |
1291 |
|
1292 |
1292 |
Note that it is not possible to select an offline or drained node as a
|
1293 |
1293 |
new secondary.
|
... | ... | |
1458 |
1458 |
has. Note that changing nodes is only allowed when all disks are
|
1459 |
1459 |
replaced, e.g. when no ``--disk`` option is passed.
|
1460 |
1460 |
|
1461 |
|
Another method of chosing which nodes to place the instance on is by
|
|
1461 |
Another method of choosing which nodes to place the instance on is by
|
1462 |
1462 |
using the specified iallocator, passing the ``--iallocator`` option.
|
1463 |
1463 |
The primary and secondary nodes will be chosen by the specified
|
1464 |
|
iallocator plugin.
|
|
1464 |
iallocator plugin, or by the default allocator if ``.`` is specified.
|
1465 |
1465 |
|
1466 |
1466 |
See **ganeti(7)** for a description of ``--submit`` and other common
|
1467 |
1467 |
options.
|
... | ... | |
1535 |
1535 |
``-n`` or ``--target-node`` option, or specify an iallocator plugin
|
1536 |
1536 |
using the ``-I`` or ``--iallocator`` option. If you omit both, the
|
1537 |
1537 |
default iallocator will be used to specify the target node.
|
|
1538 |
Alternatively, the default iallocator can be requested by specifying
|
|
1539 |
``.`` as the name of the plugin.
|
1538 |
1540 |
|
1539 |
1541 |
The migration command needs a perfectly healthy instance, as we rely
|
1540 |
1542 |
on the dual-master capability of drbd8 and the disks of the instance
|