LUKS + UnionFS

  • Hello everybody,


    im runnin Debian 10 on a Helios64 NAS.


    My goal is it to create an expandable pool of various disks.

    Therefore JBOD and RAID0 is out of the picture and the only practicable option is to use UnionFS.


    But im having an issue, when i encrypt all of the disks individually with LUKS and create the pool its fine, but after a reboot, the entire system doesnt come up anymore.


    Do anybody have an idea how to fix that and create the pool with encryption?


    Thank you in advance.


    Regards

    Vin

  • Do anybody have an idea how to fix that and create the pool with encryption?

    There are a few threads about this. Basically, don't use LUKS unless you have auto-unlock setup. Because the device doesn't exist until it is unlocked, mergerfs can't mount and the system goes to recovery mode. You could try the mergerfsfolders plugin because it is just using folders. I haven't tried though.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I have created a pool of 5 disks, each encrypted separately. After reboot I have to manually unlock each disk in the OMV GUI.

    After unlocking, they get automatically mounted and are part of my mergerfs Pool.

    I also have a Snapraid array on top of the disks which works well.

    OMV4 on ProLiant N54L + 5 x 3.5'' WD/Seagate HDs

    OMV5 on Raspberry Pi4

  • how did you manage to get it work?

    as ryecoaaron wrote, the disks arent available untill they are unlocked and my system couldnt boot anymore.

  • Try adding nofail to the options. Something changed with mergerfs where nofail is passed to the kernel. i will be adding it back to the plugin but you can add it manually in the options.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I am booting from USB stick / SSD card. The disks are exclusive for omv data.

    Once omv has booted, I unlock the disks and they are automatically mounted and available.

    OMV4 on ProLiant N54L + 5 x 3.5'' WD/Seagate HDs

    OMV5 on Raspberry Pi4

  • Try adding nofail to the options. Something changed with mergerfs where nofail is passed to the kernel. i will be adding it back to the plugin but you can add it manually in the options.

    Thanks for your explaination, but i dont quite understand in which options? directly in fstab, or somewhere in OMV?

    I am booting from USB stick / SSD card. The disks are exclusive for omv data.

    Once omv has booted, I unlock the disks and they are automatically mounted and available.

    Same for me, i booted from the eMMC storage, therefore no data was lying on the disks, yet as described the system seemed to crash.

    ryecoaarons suggestions probably solves that as the states will be forwarded to the kernel


    How did you setup your system? i used the current OMV and just his unionfilesystem plugin without any raid system on it

  • Same here. OMV5 and Union Plugin, no RAID.

    I use Snapraid on top but that works on file level and is only active once per day so does not interfere.

    OMV4 on ProLiant N54L + 5 x 3.5'' WD/Seagate HDs

    OMV5 on Raspberry Pi4

  • i dont quite understand in which options? directly in fstab, or somewhere in OMV?

    each mergerfs pool in the plugin has an options box when you set it up. You can add it there.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Just tried with LUKS enabled, still doesnt boot up

    As I mentioned before, I don't know if it will every work with LUKS without auto-unlock because the device doesn't exist until it is unlocked. Even if I re-wrote the entire plugin, I'm not sure it would help. Did you try the mergerfsfolders plugin?

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • i tried mergerfs folders but getting an error message



    And this is my fstab


  • Try removing the nofail option. It should work but doesn't seem to on your system.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Ah, I think I see what you did. You had a space between the comma and nofail. There can be no spaces. I guess I will have the plugin remove any spaces.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • unfortunately did not help to remove the space



  • Post of a screenshot of your mergerfs config.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • rv4haydp.png


  • That isn't really the config. Can you take a screenshot of what you see when you edit your pool?

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

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