summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
57cc217)
The documentation was previously very intimidating. Bring some
common, simple examples up to the top of the page in a separate
section.
L<virt-df(1)>,
we recommend you go and read those manual pages first.
L<virt-df(1)>,
we recommend you go and read those manual pages first.
+=head1 EXAMPLES
+
+Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions
+to fill the extra 5GB of space.
+
+ truncate -r olddisk newdisk; truncate -s +5G newdisk
+ virt-list-partitions -lht olddisk
+ # Note "/dev/sda2" is a partition inside the "olddisk" file.
+ virt-resize --expand /dev/sda2 olddisk newdisk
+
+As above, but make the /boot partition 200MB bigger, while giving the
+remaining space to /dev/sda2:
+
+ virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk
+
+=head1 DETAILED USAGE
=head2 EXPANDING A VIRTUAL MACHINE DISK
=head2 EXPANDING A VIRTUAL MACHINE DISK