Commit eb65d354 authored by Iustin Pop's avatar Iustin Pop
Browse files

Manpage updates for the new grow-disk command

The patch documents the steps needed to complete a user-visible grow
(i.e. not only grow-disk, but also filesystem resize is needed, etc.)

Reviewed-by: imsnah
parent c6e911bc
......@@ -1084,6 +1084,80 @@
<arg choice="req"><replaceable>instance</replaceable></arg>
<arg choice="req"><replaceable>disk</replaceable></arg>
<arg choice="req"><replaceable>amount</replaceable></arg>
Grows an instance's disk. This is only possible for
instances having a <literal>plain</literal> or
<literal>drbd</literal> disk template.
Note that this command only change the block device size; it
will not grow the actual filesystems, partitions, etc. that
live on that disk. Usually, you will need to:
<simpara>use <command>gnt-instance grow-disk</command></simpara>
<simpara>reboot the instance (later, at a convenient
<simpara>use a filesystem resizer, such as
<citerefentry> <refentrytitle>ext2online</refentrytitle>
<manvolnum>8</manvolnum> </citerefentry> or
<citerefentry> <refentrytitle>xfs_growfs</refentrytitle>
<manvolnum>8</manvolnum> </citerefentry> to resize the
filesystem, or use <citerefentry>
<manvolnum>8</manvolnum> </citerefentry> to change the
partition table on the disk
The <replaceable>disk</replaceable> argument is either
<literal>sda</literal> or <literal>sdb</literal>. The
<replaceable>amount</replaceable> argument is given either
as a number (and it represents the amount to increase the
disk with in mebibytes) or can be given similar to the
arguments in the create instance operation, with a suffix
denoting the unit.
Note that the disk grow operation might complete on one node
but fail on the other; this will leave the instance with
different-sized LVs on the two nodes, but this will not
create problems (except for unused space).
<para>Example (increasing sda for instance1 with 16GiB):
# gnt-instance grow-disk sda 16g
Also note that disk shrinking will not be supported; use
<command>gnt-backup export</command> and then
<command>gnt-backup import</command> to reduce the disk size
of an instance.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment