Revision eb65d354 man/gnt-instance.sgml
b/man/gnt-instance.sgml | ||
---|---|---|
1084 | 1084 |
|
1085 | 1085 |
</refsect3> |
1086 | 1086 |
|
1087 |
<refsect3> |
|
1088 |
<title>GROW-DISK</title> |
|
1089 |
<cmdsynopsis> |
|
1090 |
<command>grow-disk</command> |
|
1091 |
<arg choice="req"><replaceable>instance</replaceable></arg> |
|
1092 |
<arg choice="req"><replaceable>disk</replaceable></arg> |
|
1093 |
<arg choice="req"><replaceable>amount</replaceable></arg> |
|
1094 |
</cmdsynopsis> |
|
1095 |
|
|
1096 |
<para> |
|
1097 |
Grows an instance's disk. This is only possible for |
|
1098 |
instances having a <literal>plain</literal> or |
|
1099 |
<literal>drbd</literal> disk template. |
|
1100 |
</para> |
|
1101 |
|
|
1102 |
<para> |
|
1103 |
Note that this command only change the block device size; it |
|
1104 |
will not grow the actual filesystems, partitions, etc. that |
|
1105 |
live on that disk. Usually, you will need to: |
|
1106 |
<orderedlist> |
|
1107 |
<listitem> |
|
1108 |
<simpara>use <command>gnt-instance grow-disk</command></simpara> |
|
1109 |
</listitem> |
|
1110 |
<listitem> |
|
1111 |
<simpara>reboot the instance (later, at a convenient |
|
1112 |
time)</simpara> |
|
1113 |
</listitem> |
|
1114 |
<listitem> |
|
1115 |
<simpara>use a filesystem resizer, such as |
|
1116 |
<citerefentry> <refentrytitle>ext2online</refentrytitle> |
|
1117 |
<manvolnum>8</manvolnum> </citerefentry> or |
|
1118 |
<citerefentry> <refentrytitle>xfs_growfs</refentrytitle> |
|
1119 |
<manvolnum>8</manvolnum> </citerefentry> to resize the |
|
1120 |
filesystem, or use <citerefentry> |
|
1121 |
<refentrytitle>fdisk</refentrytitle> |
|
1122 |
<manvolnum>8</manvolnum> </citerefentry> to change the |
|
1123 |
partition table on the disk |
|
1124 |
</simpara> |
|
1125 |
</listitem> |
|
1126 |
</orderedlist> |
|
1127 |
</para> |
|
1128 |
|
|
1129 |
|
|
1130 |
<para> |
|
1131 |
The <replaceable>disk</replaceable> argument is either |
|
1132 |
<literal>sda</literal> or <literal>sdb</literal>. The |
|
1133 |
<replaceable>amount</replaceable> argument is given either |
|
1134 |
as a number (and it represents the amount to increase the |
|
1135 |
disk with in mebibytes) or can be given similar to the |
|
1136 |
arguments in the create instance operation, with a suffix |
|
1137 |
denoting the unit. |
|
1138 |
</para> |
|
1139 |
|
|
1140 |
<para> |
|
1141 |
Note that the disk grow operation might complete on one node |
|
1142 |
but fail on the other; this will leave the instance with |
|
1143 |
different-sized LVs on the two nodes, but this will not |
|
1144 |
create problems (except for unused space). |
|
1145 |
</para> |
|
1146 |
|
|
1147 |
<para>Example (increasing sda for instance1 with 16GiB): |
|
1148 |
<screen> |
|
1149 |
# gnt-instance grow-disk instance1.example.com sda 16g |
|
1150 |
</screen> |
|
1151 |
</para> |
|
1152 |
|
|
1153 |
<para> |
|
1154 |
Also note that disk shrinking will not be supported; use |
|
1155 |
<command>gnt-backup export</command> and then |
|
1156 |
<command>gnt-backup import</command> to reduce the disk size |
|
1157 |
of an instance. |
|
1158 |
</para> |
|
1159 |
</refsect3> |
|
1160 |
|
|
1087 | 1161 |
</refsect2> |
1088 | 1162 |
|
1089 | 1163 |
<refsect2> |
Also available in: Unified diff