I want to remove my
swap LVM LV out of its current LUKS container, and have it unencrypted instead.
I want to avoid something like
gparted to have control of every step in the process.
pvmoveto get contiguous PV extents, how do I work out the minimum size to pass to
Given the now shrunken PV, how do I work out exactly how many sectors or MiB the LUKS container should contain, so I can shrink the LUKS partition to match?
Am I right in thinking that a LUKS container doesn't have a length, and is shrunk by simply shrinking the partition?
Is there a way of checking at the LVM level that the final extents of the PV are still accessible, ie, that they are indeed inside the shrunken partition's addressable sectors?