[linux-lvm] LVM cache/dm-cache questions.

lejeczek peljasz at yahoo.co.uk
Fri Aug 26 12:45:45 UTC 2016


well, I prefer to encrypt LV itself, and I'm trying the same 
what worked always with my "regular" LVs, yet - "cache pools 
LVs" fail to encrypt with: Command failed with code 22.



On 25/08/16 15:47, Xen wrote:
> lejeczek schreef op 25-08-2016 13:51:
>> question I'd like to ask is: how to LUKS encrypt cache 
>> pool LV ?
>>
>> many thanks.
>> L.
>
> In general without being any expert here you will need to 
> encrypt the origin device (PV) on which it resides and 
> likely also the PV of the cache pool itself. It's no 
> different from any other volume you would use.
>
> You can allow LUKS to pass-through discards if you open 
> the volume with --allow-discards on the cryptsetup prompt 
> (command).
>
> In case you have an SSD underneath. It was said that the 
> cache itself does not utilize discards just yet, but that 
> it was in the planning.
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/




More information about the linux-lvm mailing list