[HowTo] SnapRAID in OMV

  • had the same error with the line 370 .


    tried than treshhold set to 0 (from 1000) and than back- now i get:


    /usr/sbin/omv-snapraid-diff: Zeile 365: [: Zu viele Argumente.

  • Please change line 370 from

    Code
    if [ $DEL_COUNT -gt $DEL_THRESHOLD && $DEL_THRESHOLD -gt 0 ]; then


    to

    Code
    if [ $DEL_COUNT -gt $DEL_THRESHOLD -a $DEL_THRESHOLD -gt 0 ]; then


    ^^ replace && with -a
    and try again. I don't have time to test, unfortunately, but the change should work.

    • Offizieller Beitrag

    1.3 in repo with fix.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    It will when eventually. I don't use snapraid and I haven't had time to look in depth at the new features. I don't know if any of the syntax has changed. I wouldn't recommend upgrading manually. Is there a specific feature that is desperately needed?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    Working on the plugin now. By the way, he is started to add items to the changelog for 8.1 but it has not been released yet.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    snapraid 8.0 and openmediavault-snapraid 1.4 in the repo now.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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 would like to propose some UI buttons for more or less frequent commands:
    1. Undelete files:

    Code
    snapraid fix -m [-f %FILENAME%]

    fix -m recovers all files, deleted since the last Sync, and -f allows to specify file or directory to recover. I see it as a dialog window prompting to enter filename. If the filename is empty - then -f parameter is omitted.


    2. Fix known silent errors.

    Code
    snapraid -e fix && snapraid scrub -p0

    No input parameters here. The first command fixes known silent errors, and the second checks if they are actually gone and marks the blocks as correct (-p 0 means zero percent of data scrubbed, but blocks with silent errors are checked anyway).

    OMV 1.0, Pentium G2120 3.1 GHz, 8 Gb RAM, SnapRAID+aufs 3x4Tb Ext4 + 1x1Tb Ext4, boot ssd 32Gb ADATA

    • Offizieller Beitrag

    It is in the testing repo. Enable the testing repo in omv-extras repo tab.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    I would like to propose some UI buttons for more or less frequent commands:
    1. Undelete files:

    Code
    snapraid fix -m [-f %FILENAME%]

    fix -m recovers all files, deleted since the last Sync, and -f allows to specify file or directory to recover. I see it as a dialog window prompting to enter filename. If the filename is empty - then -f parameter is omitted.


    2. Fix known silent errors.

    Code
    snapraid -e fix && snapraid scrub -p0

    No input parameters here. The first command fixes known silent errors, and the second checks if they are actually gone and marks the blocks as correct (-p 0 means zero percent of data scrubbed, but blocks with silent errors are checked anyway).


    Features added to 1.5 which is in the regular repo now.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Hi, i received email from my NAS:



    What mean this?:
    The following packages have been kept back:
    openmediavault-snapraid


    My OMV is 1.19, OMV-Extras 1.25 and Kernel 3.16

    • Offizieller Beitrag

    Try the apt clean button in omv-extras.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

    • Offizieller Beitrag

    I didn't have the snapraid 8 package in the regular repo and you didn't have testing enabled. I moved it to the regular repo. So, you should be ok after another apt clean.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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 apologize if these are very basic questions, but not only am I new to OMV, I am also new to SnapRAID. Some of the plugin's default settings confuse me. My brother uses SnapRAID on his own Windows-based server, so I had him take a look as well, but he is also not certain about some things. Is there a simple tutorial anywhere that I've missed? I read the guide, but this only tells you how to create an array and repair one with a damaged disk, and doesn't really explain any of the settings in the plugin.


    First, what is the Diff Script? Is this an automatic sync? Or do I need to schedule one myself in the "Scheduled Jobs?"


    Does the "Scrub Frequency" setting literally determine how often an automatic scrub runs? If so, doesn't it make more sense to have an automated sync than a scrub? Or does this setting instead correlate with the "-o" parameter? My brother has mentioned that parameter has a default setting of 10, so the plugin's setting of 7 doesn't seem too far off. As I understand it, a file less than 7 days old will not be scrubbed.


    Then, for the "Scrub Percentage" setting, is this the "-p" parameter? If so, isn't SnapRAID's default setting only 12? At a setting of 100, that means the entire array will be checked every time a scrub is executed, which could take more than a full day to run. Am I completely off base with how I am interpreting these settings?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!