Skip to content
Snippets Groups Projects
Unverified Commit 3fbff9a3 authored by anarcat's avatar anarcat
Browse files

note more ... exotic resize cases

parent e308f669
No related branches found
No related tags found
No related merge requests found
......@@ -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
======
......
......@@ -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
......
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