OMV Server with ZFS+Encryption

  • Dear all,


    I am new to the forum. As this is my first post, I would like to thank the community for their hard work on OMV.


    After years of using Synology NASes (DS1817+, DS1821+, etc), I am migrating to OMV + ZFS, because I am really interested in RAIDZ3. My setup is below in the signature. I chose to use OpenMediaVault because I am familiar with Debian and I trust Debian to be around in 10 years. Also, I like OMV philosophy and web interface.


    My question is about OMV ZFS encryption. My ZFS pool was created with an encryption passphrase. After booting, I need to unlock the ZFS pool:

    Code
    sudo zpool import tank 
    sudo zfs load-key tank 
    sudo zfs mount -a 

    Problem: On OMV boot, zfs pool is automatically imported without encryption, so OMV is not aware of encryption. After unlocking the ZFS pool, I need to manually restart applications via systemctl restart (example: Docker).


    OMV is used for secondary backup, do I don't run many applications. Currently Syncthing and Borgbackup, but I may add Docker applications now and then.


    OMV is not well integrated with encryption. What do you recommend in my case?


    Kind regards,

    R2-D2

    1 x Dell R720XD PowerEdge, with Debian 13+OpenMediaVault

    2 x 1TB nvme for raid1+btrfs system

    10Gbit network (SFP+)

    11 x 10Tb SAS drives + 1 spare drive (running) in zraid3 + 3 additional spares (not running)

    2 x 800GB SSD drives (unused)

    1 x LSI SAS2308 PCI-Express Fusion-MPT SAS-2 controller card in mini-mono format

    256Go RAM

    1 x APC RT2000XL UPS with 1 x SNMP APC 9631 card
    3 x Rpi 5-CM with nvme systems

    Edited 3 times, last by C-3PO ().

    • Official Post

    OMV is not well integrated with encryption.

    Not with zfs (yet) but the luksencryption plugin offers auto-unlock now.

    omv 8.2.6-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.2.4 | compose 8.1.12 | cterm 8.0 | borgbackup 8.1.9 | tempmon 8.0.3 | mergerfs 8.0.1 | scripts 8.0.3 | writecache 8.1.10


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • C-3PO

    Added the Label OMV 8.x
  • Thanks. I am quite familiar with luksencryption but the reason why I am migrating to Debian+OMV is raidz3.

    I am aware that I can use a private key for zfs encryption and load it on startup, but I prefer passphrase key.

    My server is located in my summer house, so it is rather unsafe.


    I don't want to unlock the ZFS key automatically, but rather unlock it manually and then start other services.


    I would like to do it in a clean way, therefore I am enquiring here.

    1 x Dell R720XD PowerEdge, with Debian 13+OpenMediaVault

    2 x 1TB nvme for raid1+btrfs system

    10Gbit network (SFP+)

    11 x 10Tb SAS drives + 1 spare drive (running) in zraid3 + 3 additional spares (not running)

    2 x 800GB SSD drives (unused)

    1 x LSI SAS2308 PCI-Express Fusion-MPT SAS-2 controller card in mini-mono format

    256Go RAM

    1 x APC RT2000XL UPS with 1 x SNMP APC 9631 card
    3 x Rpi 5-CM with nvme systems

    Edited once, last by C-3PO ().

  • Hello, Could you migrate this post to RAID subforum please ?

    1 x Dell R720XD PowerEdge, with Debian 13+OpenMediaVault

    2 x 1TB nvme for raid1+btrfs system

    10Gbit network (SFP+)

    11 x 10Tb SAS drives + 1 spare drive (running) in zraid3 + 3 additional spares (not running)

    2 x 800GB SSD drives (unused)

    1 x LSI SAS2308 PCI-Express Fusion-MPT SAS-2 controller card in mini-mono format

    256Go RAM

    1 x APC RT2000XL UPS with 1 x SNMP APC 9631 card
    3 x Rpi 5-CM with nvme systems

    • Official Post

    I am quite familiar with luksencryption but the reason why I am migrating to Debian+OMV is raidz3.

    I mentioned it because you said OMV is not well integrated with encryption and that is not the case. The zfs plugin doesn't support encryption yet. I am working on it.


    but rather unlock it manually and then start other services.


    I would like to do it in a clean way, therefore I am enquiring here.

    What do you mean by "clean"? The plan I had for zfs encryption in the zfs plugin is the same as the luks plugin - you enter a password/passphrase by default. You can enable auto-unlock if you want. But there is no way to have services owned by OMV or a plugin not start on boot if the plugin is enabled. You could unlock and restart the service though. If you are using docker, you can set the restart policy and the containers won't start on boot.

    Could you migrate this post to RAID subforum please ?

    Sure.

    omv 8.2.6-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.2.4 | compose 8.1.12 | cterm 8.0 | borgbackup 8.1.9 | tempmon 8.0.3 | mergerfs 8.0.1 | scripts 8.0.3 | writecache 8.1.10


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • What do you mean by "clean"? The plan I had for zfs encryption in the zfs plugin is the same as the luks plugin - you enter a password/passphrase by default. You can enable auto-unlock if you want. But there is no way to have services owned by OMV or a plugin not start on boot if the plugin is enabled. You could unlock and restart the service though. If you are using docker, you can set the restart policy and the containers won't start on boot.

    Sure.

    Okay, understood. My Docker containers restart policy is set to "unless-stopped". SyncThing sometimes fails and restarts this way. I will set the policy to "on-failure", which restarts only when the container fails., which is what I want. Thanks!


    I am not sure to be interested in auto-unlock. If my NAS is stolen and it auto-unlocks on startup, this might be counter-productive.

    1 x Dell R720XD PowerEdge, with Debian 13+OpenMediaVault

    2 x 1TB nvme for raid1+btrfs system

    10Gbit network (SFP+)

    11 x 10Tb SAS drives + 1 spare drive (running) in zraid3 + 3 additional spares (not running)

    2 x 800GB SSD drives (unused)

    1 x LSI SAS2308 PCI-Express Fusion-MPT SAS-2 controller card in mini-mono format

    256Go RAM

    1 x APC RT2000XL UPS with 1 x SNMP APC 9631 card
    3 x Rpi 5-CM with nvme systems

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!