omv-extras plugins - porting progress to OMV 6.x (done)

  • Regarding this, maybe this thread will be useful for you RE: Easy Active Directory integration of OMV 5 with PBIS Open

    Cool thanks for that! I actually went searching through these forums about a week ago and didn't come across that one so I'll definitely look into it tomorrow. Brief skim through it has given me a little motivation at least!
    I think my biggest annoyance with how I have it set up in OMV5 currently with sssd was android devices weren't authenticating against it to get into SMB shares because android didn't support the auth method or something dumb which I gave up on trying to fix long ago cause whenever I did fix it, it broke the shares for windows clients 😠 lol
    That was like a year ago so I'm pretty sure I just gave up and told myself that I would wait until OMV6 came out and then look into reconfiguring it differently to avoid that problem

    • Official Post

    I actually went searching through these forums about a week ago and didn't come across that one

    Yes, unfortunately the forum search engine is not very efficient. Sometimes it is easier to find the threads with google.

    Brief skim through it has given me a little motivation at least!

    It would be very useful if you post your solutions later.

    • Official Post

    When trying to create a shared folder I encounter the following error:

    The backend is probably doing the wrong "thing" when an entry is in fstab vs systemd. I will look at that.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

    • Official Post

    openmediavault-mergerfs 6.0.12 is in the repo now. It should fix the sharedfolder uuid error.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • Is there any way to have omv/the mergerfs plugin handle already in-use mounts more gracefully?

    I had 1 test mount configured (Test01) and I created some shared folders on it which are in use by SMB/NFS/TFTP.
    When trying to add more mergerfs mounts, they get successfully created / edited but omv wants to unmount it to apply the changes which leads to an error if any mount is already in use

    SMB was definitely a big culprit here, TFTP as well. I imagine docker would be the worst one of the lot if you have containers that use a mergerfs share (which I don't have any set up just yet on the test VM). So basically I had to stop the TFTP service / disable the "busy" shares (or just disable smb to make sure any open files were closed) and apply the changes in OMV and check lsof /srv/mergerfs/Test01 was empty before adding mergerfs mounts and applying the changes again.

    Maybe we could have it apply the systemd changes but ignore restarting the already in use mounts in a way that gets around this error. This way the changes are applied, we just need to alert the user that as the mount is busy, it couldn't be unmounted, so a reboot would be required before we see the applied change? Or restart the services (which may not always work depending on different user configurations) Probably a better way to handle it than that but either way, needed to annoy ryecoaaron some more with yet another mergerfs related thing 😉😆

    (I stripped out some stuff, full pastebin here: https://pastebin.com/1UCJApin)

    • Official Post

    Why did I port this plugin..............


    No output needed. I know what it is doing.


    The plugin restarts the systemd mounts (not fstab) to avoid a reboot. On my servers, I create pools and never touch the plugin again. So, this isn't really an issue for me (evidently I use a server unlike anyone else in the world). I will have to try to figure out in salt code what pool needs to be restarted and leave the others alone. I really don't like this but... This will be the last change I make in 2021. I need a break from OMV plugins.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • I need a break from OMV plugins.

    Haha, I don't blame you! Thank you for putting in the effort that you have though!


    On my servers, I create pools and never touch the plugin again.

    This is typically exactly what I do as well, it's exceptionally rare for me to ever update or even add new mounts, just happened to have occurred while trying to cover testing everything before I migrate from omv5 to 6!

    • Official Post

    mergerfs 6.0.13 is in the repo. It will not restart the pool unless the pool is not mounted. I also added a button to restart the pool. So, if you edit a pool, you can choose to restart it to get the changes instead of rebooting.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • openmediavault-mergerfs - done

    So I am in Wisconsin for a while and am back at it. I did a fresh install of 6.0.5-3 (Shaitan) on my server. I want to merge the file systems of a few of my drives as I've done before. I just don't understand how to do it with the current plug-in interface.


    Do I place something like this in 'Paths' field:
    /dev/disk/by-uuid/ffd38b91-901e-47e5-a388-e58632a7b2c9-part1

    /dev/disk/by-uuid/f41eded5-63d6-4b9c-8bfc-2a909e6331ec-part1


    Version7.1.0-2 (Sandworm)
    ProcessorAMD EPYC 7302P 16-Core Processor :evil:
    KernelLinux 6.1.15-1-pve
    HardwareDell R7515
  • Yes.

    exactly like that. you can even select from the pull down menu.

    • Official Post

    So I am in Wisconsin for a while

    Me too : ) Where at?

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • after restarting my server again my mergerfs volume failed to mount with error Couldn't extract an UUID from the provided path '/srv/mergerfs/Data_all'.. Adding the nonempty option solved it. Is there a reason why not to enable it by default?

    SuperMicro CSE-825, X11SSH-F, Xeon E3-1240v6, 32 GB ECC RAM, LSI 9211-8i HBA controller, 2x 8 TB, 1x 4 TB, 1x3TB, MergerFS+SnapRAID

    Powered by Proxmox VE

    • Official Post

    after restarting my server again my mergerfs volume failed to mount with error Couldn't extract an UUID from the provided path '/srv/mergerfs/Data_all'.. Adding the nonempty option solved it. Is there a reason why not to enable it by default?

    nonempty is dangerous because you can fill the root filesystem. You can add it to your options but it should not be a default. The "couldn't extract uuid" error is just a web interface error because the filesystem was not mounted. You could use the restart button to fix it. As for why it didn't mount on boot, hard to say but that is what I was hoping to fix with systemd mount files. The created mount file must not have the correct dependency for your system and/or you have a drive that takes longer than expected to mount.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

    • Official Post

    openmediavault-downloader 6.0 in the repo.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • So I've officially switched my main VM to OMV6, everything has been pretty flawless. Decided to just use winbind for the domain for now, drawbacks are worth it for less hassle till I decide what to do with it.
    In the process of switching over I only have a single gripe, my ZFS pools add about 90 seconds to the boot process.
    It was noticeable on OMV5 as well but seems to be a even slower with OMV6.
    I noticed that it was definitely not this slow when I was just using 3x32GB virtual disks for ZFS in the test VM's
    It's not a huge deal as OMV doesn't get rebooted very often but other VM's do rely on the ZFS storage shared via OMV

    Any tips on making this faster?
    Not sure how relevant this info is but if there's any other info that's needed to find the source of the slowness, I'm happy to provide


    VM/Hardware Details:

    8 CPU cores / 32GB of RAM assigned from a dual CPU Xeon E5-2650 v2 / 256GB RAM host

    2x Dell MD1200 enclosures attached with a Broadcom / LSI SAS2308 PCI-Express Fusion-MPT SAS-2

    I don't think the hardware has anything to do with it as back when I had OMV5 running in a separate dedicated machine that had 16 disks split into 2 ZFS pools, it had the same delay as when I migrated it into the rackmount servers (I seem to recall always waiting on the "mounting zfs from cache file" or whatever it was along those lines a fair bit whenever it had to boot)

    Code
    zpool list
    NAME      SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
    LocalFS   119G  41.6G  77.4G        -         -    29%    34%  1.00x    ONLINE  -
    ZFS01    16.4T  14.2T  2.18T        -         -    16%    86%  1.00x    ONLINE  -
    ZFS02    10.9T  7.89T  3.01T        -         -    19%    72%  1.00x    ONLINE  -
    ZFS03    32.7T  23.4T  9.32T        -         -     2%    71%  1.00x    ONLINE  -
    ZFS04    32.7T  23.4T  9.35T        -         -     2%    71%  1.00x    ONLINE  -
  • Sorry if I wasn't clear, I already know exactly what is causing it which is ZFS. Specifically the initial ZFS import at boot (zfs-import-cache.service) taking around 90 seconds
    The part I'm not sure on is the why (seems due to the amount of disks I have as it's a lot faster with 3 disks vs almost 30) and if anything can be done to make this process quicker

    • Official Post

    Even though I said I wasn't going to change anything, I like to spend my day off working on plugins (/sarcasm). openmediavault-mergerfs 6.0.14 in repo. Adds filesystem selector since this feature is easier than adding paths I guess. So, you can use filesystems, shared folders, and/or paths now.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

Participate now!

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