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.
[HowTo] SnapRAID in OMV
-
-
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:
CodeToo 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:CodeAll 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?
-
Did you try the snapraid forum?
-
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.
-
I am planning to reinstall OMV on a new disk.
What do I do in regards to snapraid?
If It's already setup on the old with all my disks? -
Any guide to setting up Cron for sync etc?
there's writing about scripts but unsure if there are specific scripts that should be used together with OMV plugin?
a nice laymen's guide would be nice!
-
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.
-
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.
Thx Ryan...
Though.. I NEVER boot my OMV... not unless I have to -
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...
-
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...
Thx.. perfect..
What do you mean by : You should update it once in a while tho .. ?
Update what? -
Update OMV. That is why there is an update tab
-
Update OMV. That is why there is an update tab
of course! I don't "set it and forget it" THAT much
-
Snapraid 11 was released: http://www.snapraid.it/download
Are there any plans on upgrading it in OMV?
-
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?
-
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:
Code
Alles anzeigen# this file was automatically generated from # openmediavault Erasmus 3.0.57 # and 'openmediavault-snapraid' 3.3 block_size 256 autosave 0 ##################################################################### # OMV-Name: disk3 Drive Label: disk3 content /media/839a13c3-226d-4310-9334-b5247d752e0e/snapraid.content disk disk3 /media/839a13c3-226d-4310-9334-b5247d752e0e ##################################################################### # OMV-Name: disk1 Drive Label: disk1 content /media/485b08ca-744d-47e9-a8d1-160befd8fcd9/snapraid.content disk disk1 /media/485b08ca-744d-47e9-a8d1-160befd8fcd9 ##################################################################### # OMV-Name: dock0 Drive Label: disk0 content /media/3309d85f-9234-4602-a74f-74deaefd24bf/snapraid.content disk dock0 /media/3309d85f-9234-4602-a74f-74deaefd24bf ##################################################################### # OMV-Name: disk7 Drive Label: disk7 content /media/e5adbd23-b3ca-4800-9953-aefb673a25ed/snapraid.content disk disk7 /media/e5adbd23-b3ca-4800-9953-aefb673a25ed ##################################################################### # OMV-Name: disk6 Drive Label: disk6 content /media/d6dc9bfe-627b-4451-9cfa-1dac9befe814/snapraid.content disk disk6 /media/d6dc9bfe-627b-4451-9cfa-1dac9befe814 ##################################################################### # OMV-Name: disk5 Drive Label: disk5 content /media/dd4c0215-d78c-47e3-b8ba-37d5398bb216/snapraid.content disk disk5 /media/dd4c0215-d78c-47e3-b8ba-37d5398bb216 ##################################################################### # OMV-Name: disk4 Drive Label: disk4 content /media/eaa42b18-cf0f-41aa-b8ef-8ac6bf31244e/snapraid.content disk disk4 /media/eaa42b18-cf0f-41aa-b8ef-8ac6bf31244e ##################################################################### # OMV-Name: disk2 Drive Label: disk2 content /media/4e9a7f7f-f1b1-4ddd-a9c8-72439414a880/snapraid.content disk disk2 /media/4e9a7f7f-f1b1-4ddd-a9c8-72439414a880 ##################################################################### # OMV-Name: disk9 Drive Label: disk9 content /media/f332d8d5-a07a-4542-a935-83d518faef10/snapraid.content parity /media/f332d8d5-a07a-4542-a935-83d518faef10/snapraid.parity exclude *.bak exclude *.unrecoverable exclude /tmp/ exclude lost+found/ exclude .content exclude aquota.group exclude aquota.user exclude snapraid.conf* # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude @eadir # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /media/*/*.jpg # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /media/*/*/*.jpg # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /media/*/*/*/*.jpg # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /media/*/*/*/*/*.jpg # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /media/*/*/*/*/*.jpg # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /docker/dockers/plex/ # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /downloads/incoming/ # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /downloads/temp/ # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /downloads/torrents/ # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /downloads/ # Rule selected from /media/6a874986-7a03-4fe8-b9fb-3fbfc6cc3e95 exclude /docker/dockers/crashplan/
and this os my diff file:Code
Alles anzeigen# this file was automatically generated from # openmediavault Erasmus 3.0.57 # and 'openmediavault-snapraid' 3.3 SYSLOG="true" DEBUG="false" SENDMAIL="false" RUN_SCRUB="true" SCRUB_FREQUENCY_IN_DAYS=10 DEL_THRESHOLD=50 SCRUB_PERCENT=5
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?
-
'At reboot' will only run when the computer restarts.
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. -
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.
-
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? -
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.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!