[HowTo] SnapRAID in OMV

    • Offizieller Beitrag

    You are welcome to submit a pull request to add those. I don't have time to implement those (not sure what the touch feature does either). Extra emails don't bother me either.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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 will try. I haven't done any coding since college.


    The snapraid doesn't like files without a sub-second time stamp. When I upload photos from my phone they don't have a sub-second timestamp so snapraid complains. The touch command will add a sub-second timetstamp to any files found on the last sync to not have one.

  • Hello :)


    I switched / replaced 2 disks. Purged snapraid and removed the 2 config files in /etc/


    After reinstalling and trying to do a sync I get the warning:


    Code
    Too many disks have UUID changed from the latest 'sync'.
    If this happens because you really replaced them,
    you can 'sync' anyway, using 'snapraid --force-uuid sync'.


    If I run snapraid --force-uuid sync:


    Code
    All the files previously present in disk [...]
    are now missing or rewritten!
    This could happen when some disks are not mounted
    in the expected directory.
    If you want to 'sync' anyway, use 'snapraid --force-empty sync'.


    If I run snapraid --force-empty sync it says that I should use --fore-uuid sync instead. ^^ So I am finding myself in an endless loop.


    Does anyone know how to fix this?

    • Offizieller Beitrag

    Did you try the snapraid forum?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • No not yet.


    I thought there are maybe some additional snapraid related files I simply need to delete. Don't know where this UUID information is comfing from.


    I will try to remove the snapraid.content files in /media/*/snapraid.content



    €dit: I guess this was the solution. :) It's syncing now.

    • Offizieller Beitrag

    You configure the script in the plugin's settings tab. Then just add /usr/sbin/omv-snapraid-diff as the command in the Scheduled Job you create and have it start at boot. That's it.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    Doesnt matter. It runs until you shutdown. Setting it to start at boot just means you dont have to remember to start it.


    You should update it once in a while tho...

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    Update OMV. That is why there is an update tab :)

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    Are there any plans on upgrading it in OMV?

    You mean like the packages I built a month ago and put in the test repo? :)


    https://bintray.com/openmediav…iles/pool/main/s/snapraid

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • You configure the script in the plugin's settings tab. Then just add /usr/sbin/omv-snapraid-diff as the command in the Scheduled Job you create and have it start at boot. That's it.

    Hi Ryan


    Just for those of us who are totally numb after xmas..


    I've set the snapraid and run the sync (and a few diff's) manually..


    I've set the scheduled task to boot as you recommended...
    but does this mean that it will only run at boot? I want to make completely sure that I understand this since I want it to run the diff once a day...



    This is my config:



    and this os my diff file:



    Please let me know if I need to do anything to make sure it runs once a day (or dynamically or whatever is possible)
    And also if there's anything in the config you think I need to change or add.


    And.. is there anywhere I can check when it ran last?

    • Offizieller Beitrag

    does this mean that it will only run at boot? I want to make completely sure that I understand this since I want it to run the diff once a day...

    Yes it only runs on boot but the script does not exit. So, this is what you want. The script does the scheduling for you and that is what the settings in the plugin configure.


    If you want to run it on a scheduled basis (for example every night), you set it to 'Certain date' and you specify an hour.

    This script just needs to be started. It will take care of the rest.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Yes it only runs on boot but the script does not exit. So, this is what you want. The script does the scheduling for you and that is what the settings in the plugin configure.

    This script just needs to be started. It will take care of the rest.

    Anywhere to verify that it is running/activating?
    and where do I see how often?

    • Offizieller Beitrag

    Anywhere to verify that it is running/activating?

    Look for the omv-snapraid-diff process in Diagnostics -> System Information -> Processes


    and where do I see how often?

    Look at the snapraid log in Diagnostics -> System Logs.


    I may have been wrong about how the scheduled task should be scheduled. I was thinking it looped but that is just for the drives. I think it should be scheduled daily.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

Jetzt mitmachen!

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