Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-29 Thread Zdenek Kabelac
Dne 28. 09. 23 v 14:23 Jean-Marc Saffroy napsal(a): On Wed, Sep 27, 2023 at 5:41 PM Zdenek Kabelac wrote: What is the role of "dmsetup suspend"? I am having trouble finding decent documentation about its purpose and how it's related to snapshots. I did not need it in my experiments, so I am

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-29 Thread Roberto Fastec
What an awful idea to encrypt data on an hardware accelerator SSD is everything but an affordable storage for keeping safely your data and as soon some cells will fail , and with LVM , the first ones will be where LVM tables are sitting (and being heavily modified) .. you'll loose ALL the

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-28 Thread Jean-Marc Saffroy
On Wed, Sep 27, 2023 at 5:41 PM Zdenek Kabelac wrote: > > > What is the role of "dmsetup suspend"? I am having trouble finding > > decent documentation about its purpose and how it's related to > > snapshots. I did not need it in my experiments, so I am curious. > > > > > Suspend is freezing

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-27 Thread Jean-Marc Saffroy
Wow, that was very harsh AND very wrong. All storage devices die eventually, that's why we have backups (and RAID, off-site replication, etc). HDDs and SSDs are the same in this respect. SSDs do NOT die just from repeated writes to the same sector: this can happen with raw flash cells, but SSDs

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-27 Thread Zdenek Kabelac
Dne 27. 09. 23 v 15:45 Jean-Marc Saffroy napsal(a): On Wed, Sep 27, 2023 at 11:58 AM Zdenek Kabelac wrote: Dne 27. 09. 23 v 1:10 Jean-Marc Saffroy napsal(a): Hi, On Tue, Sep 26, 2023 at 10:00 PM Zdenek Kabelac wrote: Yep typical usage is to encrypt underlying PV - and then create LVs and

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-27 Thread Jean-Marc Saffroy
On Wed, Sep 27, 2023 at 11:58 AM Zdenek Kabelac wrote: > > Dne 27. 09. 23 v 1:10 Jean-Marc Saffroy napsal(a): > > Hi, > > > > On Tue, Sep 26, 2023 at 10:00 PM Zdenek Kabelac > > wrote: > >> Yep typical usage is to encrypt underlying PV - and then create LVs and its > >> snapshots on encrypted

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-27 Thread Zdenek Kabelac
Dne 27. 09. 23 v 1:10 Jean-Marc Saffroy napsal(a): Hi, On Tue, Sep 26, 2023 at 10:00 PM Zdenek Kabelac wrote: Yep typical usage is to encrypt underlying PV - and then create LVs and its snapshots on encrypted device. Sure, I'd do that in other circumstances. But in my case it would just be

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-27 Thread Harald Dunkel
What about encrypting the physical volumes, and creating the volume groups and logical volumes on top of it? Regards Harri ___ linux-lvm mailing list linux-lvm@redhat.com https://listman.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-26 Thread Demi Marie Obenour
On Wed, Sep 27, 2023 at 01:10:10AM +0200, Jean-Marc Saffroy wrote: > Hi, > > On Tue, Sep 26, 2023 at 10:00 PM Zdenek Kabelac > wrote: > > Yep typical usage is to encrypt underlying PV - and then create LVs and its > > snapshots on encrypted device. > > Sure, I'd do that in other circumstances.

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-26 Thread Stuart D Gathman
On Wed, 27 Sep 2023, Jean-Marc Saffroy wrote: So I prefer to manage available raw (un-encrypted) space with LVM. Now, I also need to do backups of /home, and that's why I want snapshots. But that first layer of LVM would only show a snapshot of an encrypted volume, and the backup job shouldn't

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-26 Thread Jean-Marc Saffroy
Hi, On Tue, Sep 26, 2023 at 10:00 PM Zdenek Kabelac wrote: > Yep typical usage is to encrypt underlying PV - and then create LVs and its > snapshots on encrypted device. Sure, I'd do that in other circumstances. But in my case it would just be a waste: I am replacing several disks on a desktop

Re: [linux-lvm] Can I combine LUKS and LVM to achieve encryption and snapshots?

2023-09-26 Thread Zdenek Kabelac
Dne 25. 09. 23 v 0:09 Jean-Marc Saffroy napsal(a): Hello LVM experts, I am trying to create a volume with the following properties: - the volume can be resized - the volume is encrypted - the volume can be snapshotted (for online backups) So I thought I'd create the volume with LVM, encrypt it