Skip to content
Snippets Groups Projects
Commit f5e6a62c authored by Iustin Pop's avatar Iustin Pop
Browse files

Man page update for grow-disk


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 26a5056d
No related branches found
No related tags found
No related merge requests found
...@@ -1318,8 +1318,8 @@ options. ...@@ -1318,8 +1318,8 @@ options.
GROW-DISK GROW-DISK
^^^^^^^^^ ^^^^^^^^^
| **grow-disk** [\--no-wait-for-sync] [\--submit] {*instance*} {*disk*} | **grow-disk** [\--no-wait-for-sync] [\--submit] [\--absolute]
| {*amount*} | {*instance*} {*disk*} {*amount*}
Grows an instance's disk. This is only possible for instances having a Grows an instance's disk. This is only possible for instances having a
plain, drbd or rbd disk template. plain, drbd or rbd disk template.
...@@ -1337,10 +1337,15 @@ disk. Usually, you will need to: ...@@ -1337,10 +1337,15 @@ disk. Usually, you will need to:
the partition table on the disk the partition table on the disk
The *disk* argument is the index of the instance disk to grow. The The *disk* argument is the index of the instance disk to grow. The
*amount* argument is given either as a number (and it represents the *amount* argument is given as a number which can have a suffix (like the
amount to increase the disk with in mebibytes) or can be given similar disk size in instance create); if the suffix is missing, the value will
to the arguments in the create instance operation, with a suffix be interpreted as mebibytes.
denoting the unit.
By default, the *amount* value represents the desired increase in the
disk size (e.g. an amount of 1G will take a disk of size 3G to 4G). If
the optional ``--absolute`` parameter is passed, then the *amount*
argument doesn't represent the delta, but instead the desired final disk
size (e.g. an amount of 8G will take a disk of size 4G to 8G).
For instances with a drbd template, note that the disk grow operation For instances with a drbd template, note that the disk grow operation
might complete on one node but fail on the other; this will leave the might complete on one node but fail on the other; this will leave the
...@@ -1357,6 +1362,9 @@ Example (increase the first disk for instance1 by 16GiB):: ...@@ -1357,6 +1362,9 @@ Example (increase the first disk for instance1 by 16GiB)::
# gnt-instance grow-disk instance1.example.com 0 16g # gnt-instance grow-disk instance1.example.com 0 16g
Example for increasing the disk size to a certain size::
# gnt-instance grow-disk --absolute instance1.example.com 0 32g
Also note that disk shrinking is not supported; use **gnt-backup Also note that disk shrinking is not supported; use **gnt-backup
export** and then **gnt-backup import** to reduce the disk size of an export** and then **gnt-backup import** to reduce the disk size of an
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment