Unverified Commit 3fbff9a3 authored by anarcat's avatar anarcat
Browse files

note more ... exotic resize cases

parent e308f669
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -43,6 +43,11 @@ To *shrink* an image, you need to use the `--shrink` option but, be
careful: the underlying partitions and filesystems need to first be
resized otherwise you will have data loss.

Note that this only resizes the disk as seen from the VM. The VM
itself might have some partitionning on top of that, and you might
need to do filesystem resizes underneath there, including LVM if
that's setup there as well. See [[lvm]] for details.

Design
======

+9 −0
Original line number Diff line number Diff line
@@ -69,6 +69,15 @@ extend the physical volume:

    pvextend /dev/sdb

Note that if there's an underlying crypto layer, it needs to be
resized as well:

    cryptsetup resize $DEVICE_LABEL

In this case, the `$DEVICE_LABEL` is the device's name in
`/etc/crypttab`, *not* the device name. For example, it would be
`/dev/mapper/crypt_sdb`, not `/dev/sdb`.

See also the [upstream documentation][].

[upstream documentation]: http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html