[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1064624: Hard to short-stroke an encrypted drive



Matthew Wilcox <willy@infradead.org> writes:

> Package: debian-installer
>
> The partitioner "guided partitioning" offers me:
>
>  - use the largest continuous free space
>  - use entire disk
>  - use entire disk and set up LVM
>  - use entire disk and set up encrypted LVM
>
> I want "use largest contiguous space and set up encrypted LVM".
> That would let me reserve 200GB of my SSD as unencrypted free space,
> which will improve the write endurance of my SSD.

Can one achieve this by telling LVM to allocate less than the full size
of the device to the PV one puts on it?

If one does that, I would guess that one could later extend the PV to
use more/all of the disk using pvresize, so that those that prefer space
over endurance could make that decission when they are running out of
space.

If that's all true, we could have a couple of preseed variables to set
the percentage and maximum amount that would be left fallow for this
purpose, and (eventually) set non-zero defaults when installing to SSD.

Is that something like what you're after?

Cheers, Phil.
-- 
Philip Hands -- https://hands.com/~phil

Attachment: signature.asc
Description: PGP signature


Reply to: