Re: Shrinking encrypted LVM partition
Aaron Toponce <aaron.toponce@gmail.com> writes:
> I have gathered that /dev/sda1 is mounted on /boot, and /dev/sda5 is a
> physical volume. With that, how many logical volumes do you have from that
> volume group, and where are they mounted? Are you using LUKS for your
> encrypted volumes?
I have / and /home as LVM volumes. I don't have each volume encrypted
separately; sda5 is an encrypted partition, and LVM is on top of that.
> The general order of the steps you will be taking is this:
>
> 0) BACKUP ALL DATA
> 1) Find the logical volume(s) with the most space you can give up
> 2) Reduce the filesystem of each logical volume to the desired size
> with resize2fs(8) (assuming it's an ext-based filesystem)
> 3) Reduce each logical volume with lvreduce(8)
> 4) Reduce each encrypted filesystem with cryptsetup(8) (assuming you're
> using LUKS)
>
> [snip]
Great, thanks for that! I'll try following your instructions this
weekend.
Thanks,
Aidan Gauland
Reply to: