[HowTo] SnapRAID in OMV

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    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 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?

  • 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.

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    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!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    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!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    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!

  • 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?

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    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!

  • 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 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    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!