Revision f5e6a62c man/gnt-instance.rst

b/man/gnt-instance.rst
1318 1318
GROW-DISK
1319 1319
^^^^^^^^^
1320 1320

  
1321
| **grow-disk** [\--no-wait-for-sync] [\--submit] {*instance*} {*disk*}
1322
| {*amount*}
1321
| **grow-disk** [\--no-wait-for-sync] [\--submit] [\--absolute]
1322
| {*instance*} {*disk*} {*amount*}
1323 1323

  
1324 1324
Grows an instance's disk. This is only possible for instances having a
1325 1325
plain, drbd or rbd disk template.
......
1337 1337
   the partition table on the disk
1338 1338

  
1339 1339
The *disk* argument is the index of the instance disk to grow. The
1340
*amount* argument is given either as a number (and it represents the
1341
amount to increase the disk with in mebibytes) or can be given similar
1342
to the arguments in the create instance operation, with a suffix
1343
denoting the unit.
1340
*amount* argument is given as a number which can have a suffix (like the
1341
disk size in instance create); if the suffix is missing, the value will
1342
be interpreted as mebibytes.
1343

  
1344
By default, the *amount* value represents the desired increase in the
1345
disk size (e.g. an amount of 1G will take a disk of size 3G to 4G). If
1346
the optional ``--absolute`` parameter is passed, then the *amount*
1347
argument doesn't represent the delta, but instead the desired final disk
1348
size (e.g. an amount of 8G will take a disk of size 4G to 8G).
1344 1349

  
1345 1350
For instances with a drbd template, note that the disk grow operation
1346 1351
might complete on one node but fail on the other; this will leave the
......
1357 1362

  
1358 1363
    # gnt-instance grow-disk instance1.example.com 0 16g
1359 1364

  
1365
Example for increasing the disk size to a certain size::
1366

  
1367
   # gnt-instance grow-disk --absolute instance1.example.com 0 32g
1360 1368

  
1361 1369
Also note that disk shrinking is not supported; use **gnt-backup
1362 1370
export** and then **gnt-backup import** to reduce the disk size of an

Also available in: Unified diff