[linux-lvm] lvm protected against crypt/luks

f-lvm at media.mit.edu f-lvm at media.mit.edu
Mon Mar 7 20:29:20 UTC 2016

    > Date: Mon, 7 Mar 2016 17:31:36 +0000
    > From: lejeczek <peljasz at yahoo.co.uk>

    > hi there

    > would you know if kernel/lvm protects PVs (or any other 
    > parts for that matter) from being encrypted?

Not that I've ever seen.

    > Do I need to wipe block devices clean off any LVM traces in 
    > order to encrypt them?


    > BTW, LVs cannot be luks encrypted, can they?

Yes, they can.  I do this routinely.

LVM is agnostic about what's inside any LV.  They're just blocks.

I often build filesystems with either bare disk or RAID on the bottom,
with LVM on top of that, LUKS on top of that, and ext4fs (for example)
on top of that.  By using LVM under LUKS, I can make a single FS that
spans multiple disks but is entirely encrypted with a single key.

More information about the linux-lvm mailing list