openmediavault-snapraid-aio

    • Official Post

    I am acutely aware of AI limitations. As it seems, AI is not good for anything "original" but it seems to be a somewhat useful tool for polish. In any case, AI still has a long way to go.

    I use AI for lots of things but it hallucinates with OMV coding quite often.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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

    I use AI for lots of things but it hallucinates with OMV coding quite often.

    I've notice this as well, not with OMV coding but with other things that are detail oriented, but should still be simple, such as "forgetting" a required absolute path. (That one bowled me over.) Inexplicably dropping such details can make even minor shell scripting problematic. As it was explained by one AI, things like that can happen when AI's try to summarize or compress a context, while still within the same context..??

    Again, while useful, AI has a long way to go.

    • Official Post

    Feedbacks:

    So, I spent the last 4 hours pretty much rewriting the plugin - https://github.com/OpenMediaVa…86ab3dff45313d349e5a733dc


    You can get it here


    sudo dpkg -P openmediavault-snapraid-aio # the old version will NOT upgrade properly to this new version. So purge the old one.

    wget https://omv-extras.org/testing/openmediavault-snapraid-aio_8.0_all.deb -O openmediavault-snapraid-aio_8.0_all.deb

    sudo apt install ./openmediavault-snapraid-aio_8.0_all.deb


    I'm sure there is still a ton wrong but that is all I can handle today.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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 a lot of work, I have finally pushed the v3.4 stable release for the AIO script.

    I can now take on the task to work on this plugin! Thanks ryecoaaron for the initial work.

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • Hello, long time no see!

    In the meantime I have gained some decent experience with Claude Code, and started working on the plugin.


    I use AI for lots of things but it hallucinates with OMV coding quite often.

    Heck yes: in the beginning I was spending more time fixing bugs introduced by Claude, rather than being productive.
    I found my way out of this madness, by creating a ton of "Project Memory" based on the OMV documentation for developers (grateful for its existence).

    I've extended the plug-in a lot, below there's a sneak peak.

    I think I'm satisfied with the current UX and functionality. Now I have to validate the configs produced by the plug-in, for this I will need some time.


    It's in my github repo, forked from ryecoaaron's. When ready, I'll do a PR.


    We also need to decide what is the future of this plugin: will it be standalone, but relies on main SnapRAID functionality for arrays, or we integrate it in the main one, deprecating/removing the old script?





    Per-config scheduling

    • Each configuration now has its own Schedule button directly on the config list. No more global enable toggle — schedule each array independently with a dedicated cron entry.
    • The schedule form defaults to a custom midnight run so you can adjust the time immediately without switching modes.
    • The "Scheduled" column in the config list shows at a glance which configs have an active schedule. If a schedule was manually deleted from the system, the plugin detects this and reflects it.

    Improved notifications

    • Native OMV email is now a toggleable option per config. Sender and receiver are pulled automatically from OMV's notification settings — no manual entry needed.
    • Apprise notifications are fully wired up, including support for attaching the full report on warnings. Works independently from native email.
    • Apprise Email (SMTP via Apprise URL) is available as a separate option for setups that want email without configuring OMV's native mail.

    Cleaner UI

    • All form fields now have clear labels and descriptions. Ambiguous labels (Apprise, SMART log, SnapRAID status, verbosity, spindown, etc.) have been rewritten.
    • The ignore_pattern field is flagged as advanced with a misuse warning.
    • A link to the official AIO Script project page is shown at the top of the config form for quick reference.
    • Remote Docker management has been removed from the UI (advanced feature, unlikely for a OMV user). Docker container management for local containers remains fully functional

    Quality of life

    • Saving or cancelling a config or schedule now redirects back to the config list automatically.
    • The SnapRAID array selector shows the array name (from /etc/snapraid/ symlinks) instead of the raw config file path.

    Bundled script

    • Ships with snapraid-aio-script v3.4 stable.

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    We also need to decide what is the future of this plugin: will it be standalone, but relies on main SnapRAID functionality for arrays, or we integrate it in the main one, deprecating/removing the old script?

    I don't think this decision is important right now. The snapraid-aio plugin can depend on the snapraid plugin. This is how the cterm plugin works with the compose plugin. I do want to remove the old script stuff from the snapraid plugin.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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!

  • Full steam ahead, I also added some commands.



    A couple of questions for you ryecoaaron


    - Apprise handling Apprise is needed for service notifications, but not strictly required for a bare-bone run. I know users do use it. Its binary is not in `debian/control` Depends/Recommends; enabling Apprise without it fails mid-run with a cryptic error. Should it be added to Recommends? I believe it's needed.
    - postrm cleanup Should we delete /etc/snapraid-aio-*.conf files left on disk after plugin removal?

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    Should it be added to Recommends? I believe it's needed

    OMV doesn't install recommends but putting it there with no package in the debian repo makes little sense. Either the plugin should install it or fail with a message to install it when the script wants it.

    Should we delete /etc/snapraid-aio-*.conf files left on disk after plugin removal?

    Yes.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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!

  • Alright. The script already handles dependencies via apt, so we're covered.

    I implemented deletion of /etc/snapraid-aio-*.conf files on package purge.


    One side question: how the snapraid binary is compiled for the main plugin? There's a little issue that bugs me that I want to solve, but the "snapraid" repo is archived.

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    how the snapraid binary is compiled for the main plugin? There's a little issue that bugs me that I want to solve

    Why does it bug you? What are you trying to solve? The plugin is using snapraid 12.4 from the Debian repo. https://packages.debian.org/trixie/snapraid

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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!

  • Why does it bug you? What are you trying to solve? The plugin is using snapraid 12.4 from the Debian repo. https://packages.debian.org/trixie/snapraid

    It's just cosmetic, but my script uses it: snapraid -v does not print the snapraid binary version, just prints "none".


    I discovered that this issue is actually fixed in Debian Repo for forky which has the 13.0 Snapraid binary.

    13.0 is just a bugfix version, we could backport that. Are backports available already?


    (14.x is moving quite fast and I would not go on that)

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    just prints "none".

    This was your concern? haha. It has been that way for a long time on my binaries and Debian's. Just use the package version


    $ dpkg-query -W -f='${Version}' snapraid

    12.4-1

    we could backport that.

    No. Not have to maintain packages like I did in the past it MUCH better than getting a version number out of snapraid -v.

    Are backports available already?

    No, snapraid is unlikely to ever be in backports.

    (14.x is moving quite fast and I would not go on that)

    Well aware. I follow the github repo and have 14 installed on my dev system. I have no plans to not use the Debian provided version.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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!

  • A quick update.


    I've finished adding functionalities: I believe the plugin is feature complete.

    I'll be testing the plugin on real hardware for a while, then I'll prepare the PR on the GitHub repo.


    I've also prepared a draft documentation for the Wiki.


    A couple of highlights:


    - Added a "Last Run" column to show last execution result, which is parsed from /var/log/snapraid.log



    - Added Apprise test button for notifications and emails.


    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • Development was completed a couple of weeks ago, since then I've tested the plugin on my real OMV NAS.

    No issues to report, will open a PR now on GitHub.


    Please let me know how to contribute to the Wiki, I have a draft for that as well.

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    Please let me know how to contribute to the Wiki, I have a draft for that as well.

    You have an account on the wiki already.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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

    Please let me know how to contribute to the Wiki, I have a draft for that as well.

    This link really helped me learn how to post on the wiki --> https://www.dokuwiki.org/es:dokuwiki

    It's simple, but if you need help, feel free to send me a private message and ask whatever you need. You can also ask crashtest ; I'm sure he'd be happy to help you, just like me.

    • Official Post

    Please let me know how to contribute to the Wiki, I have a draft for that as well.

    There's a template that acts as rough guide for a plugin doc.
    It's -> here.

    It might be easier to copy the existing OMV7 snapraid document (which has yet to be updated for OMV8) into a draft doc, and edit or rewrite the automation section.

    Copy the contents of the above into a new document like the following (for example):
    https://wiki.omv-extras.org/doku.php?id=docs_in_draft:snapraid

    Note that most documents on the wiki are in a basic "walk through" format. If you get too technical, you'll lose readers. On the other hand, sometimes it's necessary to introduce a concept new users are unlikely to know. In that case, you'd need to teach it.

    PM me if you need help or, maybe, just some pointers.


  • You have an account on the wiki already.

    Strange, I don't have a password for it. I sent a request to reset it, but never received anything. Can you please reset it for me?

    OMV BUILD - MY NAS KILLER - OMV 8.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 1TB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

    • Official Post

    I sent a request to reset it, but never received anything

    It doesn't have a real email setup. I will PM the password. Change it right away.

    omv 8.5.8-1 synchrony | 7.0 proxmox kernel

    plugins:

    omvextrasorg 8.0.3 | kvm 8.3.2 | compose 8.1.24 | cterm 8.0.2 | borgbackup 8.2.1 | tempmon 8.0.5 |

    mergerfs 8.0.2 | scripts 8.0.6 | writecache 8.2.4 | backup 8.1 | kernel 8.0.16


    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!