Resizing LVM LVs is great, but how to do this with an encrypted partition?
umount /myfs
fsck.ext3 -C 0 -f /dev/mapper/myfs
cryptsetup luksClose myfs
lvextend -l+10 /dev/myvg/mylv
cryptsetup luksOpen /dev/myvg/mylv myfs
cryptsetup --verbose resize myfs
mount /dev/mapper/myfs /myfs
umount /myfs
fsck.ext3 -f /dev/mapper/myfs
resize2fs /dev/mapper/myfs
fsck.ext2 -f /dev/mapper/myfs
mount /dev/mapper/myfs /myfs
via linux.kernel.device-mapper.dm-crypt.
More
Support this project and others with 1-click micro-donations
