ZFS + LUKS

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Hello. I'm going to be converting my current setup to ZFS in the very near future. Is it possible to use LUKS in conjunction with ZFS? I'm currently running 3 drives in spanning mode, so I'm going to add an additional 5 drives and set those five up with ZFS Raid-Z2. Then I'll migrate my data with rsync or something and once that process completes, wipe the 3 drives running in spanning and add them to the ZFS pool. Will this work? I'll be using (8) 8TB drives in total for this setup.
      Case: U-NAS NSC-810
      Motherboard: ASRock - C236 WSI Mini ITX
      CPU: Core i7-6700
      Memory: 32GB Crucial DDR4-2133
    • Technically it will work since zfs can use a block device that LUKS creates. Not sure about boot issues due to timing since LUKS won't be unlocked at boot. Try it in a VM.
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • kalleyne wrote:

      I understand that ZFS now has native encryption but I have not tried it myself.
      I don't think the Debian packages have that compiled in since it is still experimental. Someone correct me if I am wrong.
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • The pr has been merged but distros haven’t pushed packages at least not Debian. You can try an build your own zfs packages. The plugin of course doesn’t have support for decrypting this.

      github.com/zfsonlinux/zfs/pull/5769

      Takes a while to load the page is a big thread.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • elastic wrote:

      Hello. I'm going to be converting my current setup to ZFS in the very near future. Is it possible to use LUKS in conjunction with ZFS? I'm currently running 3 drives in spanning mode, so I'm going to add an additional 5 drives and set those five up with ZFS Raid-Z2. Then I'll migrate my data with rsync or something and once that process completes, wipe the 3 drives running in spanning and add them to the ZFS pool. Will this work? I'll be using (8) 8TB drives in total for this setup.
      You cannot add some disks to a previous created pool. ZFS RAIDZ2 is not like RAID5. You can make a first RAIZ2 pool with your 5 disks, and later another pool (RAIDZ1 or RAIDZ2) with the 3 other disks. After, I think you could merge those two pool togeter, but with the lost of some disks compare to a 8 disks pool.
      If you want an 8 disks pool, you have to create it at once. From ZFS dev submit last year, this should be added in the next 2 years.

      So I think you have to do it like I'm dong it at the moment. Extract all your datas to external disks, create your ZFS pool, and copy back the datas. Long way home... :(
      Lian Li PC-V354 with Be Quiet fans | Gigabyte GA-G33M-DS2R | Intel E8400@3,6Ghz | 6GB DDR2 RAM
      1x500MB SSD for System/Backup | 7x2To HDD with ZFS RAIDz2 for Datas/Snapshots
      Powered by OMV v4.1.7 / Kernel 4.16.x / ZFS 0.7.9

      The post was edited 1 time, last by sbocquet ().

    • sbocquet wrote:

      elastic wrote:

      Hello. I'm going to be converting my current setup to ZFS in the very near future. Is it possible to use LUKS in conjunction with ZFS? I'm currently running 3 drives in spanning mode, so I'm going to add an additional 5 drives and set those five up with ZFS Raid-Z2. Then I'll migrate my data with rsync or something and once that process completes, wipe the 3 drives running in spanning and add them to the ZFS pool. Will this work? I'll be using (8) 8TB drives in total for this setup.
      You cannot add some disks to a previous created pool. ZFS RAIDZ2 is not like RAID5. You can make a first RAIZ2 pool with your 5 disks, and later another pool (RAIDZ1 or RAIDZ2) with the 3 other disks. After, I think you could merge those two pool togeter, but with the lost of some disks compare to a 8 disks pool.If you want an 8 disks pool, you have to create it at once. From ZFS dev submit last year, this should be added in the next 2 years.

      So I think you have to do it like I'm dong it at the moment. Extract all your datas to external disks, create your ZFS pool, and copy back the datas. Long way home... :(
      Thanks for this bit of info. I wasn't aware of this unfortunately :( I might just delete my current pool and just make the one giant ZFS pool. Pain in the rear end, but it'll only be a one time thing. All of my data is backed up elsewhere so no big deal other than some time lost. Will give it a go this weekend.

      Also, guys please tell me I'll be OK running ZFS with non ECC Ram...
      Case: U-NAS NSC-810
      Motherboard: ASRock - C236 WSI Mini ITX
      CPU: Core i7-6700
      Memory: 32GB Crucial DDR4-2133