[HowTo] SnapRAID in OMV
-
-
I'm unsure who's the dev behind the plugin for OMV but since you created the thread I'm pinging you
Would it be possible to either add an "extra arguments" variable or alternatively add stuff like:
SYNC_WARN_THRESHOLD and other snapraid options?
I am the dev. I guess I could add that but I don't see it in the snapraid manual? What other options are you looking at?
-
I am the dev. I guess I could add that but I don't see it in the snapraid manual? What other options are you looking at?
Hi
I never thought to look if the variable was a native snapraid command.. I found it here:
https://zackreed.me/snapraid-split-parity-sync-script/
and thought it'd be a great addition :-|
-
-
I never thought to look if the variable was a native snapraid command.. I found it here:
zackreed.me/snapraid-split-parity-sync-script/
and thought it'd be a great addition :-|
That is a parameter of that script not snapraid itself. There has been talk of updating the current snapraid diff script to this but someone who uses snapraid would need to do it.
-
Ok. So this is just a different diff script?
Maybe someone will look into adding it.. I feel it's above my skill level.
-
I am the dev. I guess I could add that but I don't see it in the snapraid manual? What other options are you looking at?
Hi, is it "safe" to manually update/install SnapRAID (to 11.2). I'm assuming it will be fine as long as there are no breaking changes in snap itself.
I browsed the plugin code on github but didn't find the parts that actually install snap, so I'm unsure of the logic when this plugin has an update. Thanks!p.s. I actually created a thread SnapRAID - Plugin Version is old?
-
-
Quick question. Is there any way to automate daily sync beyond writing your own script and schedualing it with a cron job?
-
Quick question. Is there any way to automate daily sync beyond writing your own script and schedualing it with a cron job?
There are numerous already written SnapRaid scripts available. The one bundled with OMV is just one of them. I use this one on cron:
Google for more scripts. -
What is the snapraid-diff.conf for?
I want to set up my scrubs to run on specific days and not 100% every 7 days.
Does this run automatically or can I just set up my scrubs via cron?
-
-
snapraid-diff.conf holds the settings for the script that is provided by OMV.
The settings come from what is entered in OMV Services | SnapRAID | Diff Script Settings, but the script does not run automatically unless scheduled as a task or via a manual cron entry.
You can schedule whatever you want via cron or OMV's built in task scheduler - either OMV's provided script, or another freely available one, or something you write yourself.
-
I see, thank you.
In your opinion is a weekly whole array scrub best practice or should I schedule a lower percentage to run every few days?
How stressfuly for a drive is a scrub?
-
It depends on how many drives and how much they hold, but for me, a 100% scrub would be impractical. It would take far too long to complete. I have no idea how stressful this would be.
I diff, sync, and scrub 10% every other day.
-
-
Do you use a script that you'd be willing to share?
-
Do you use a script that you'd be willing to share?
See post # 508
-
I have the following array set up in SnapRAID:
1 x disk of 2TB (parity)
5 x HDDs of varied sizes (data)
1 x SSD (data)I created this before I'd really got to grips with SnapRAID and it needs a bit of tweaking now I've had some more time to think things through. I want to remove the SSD from the array, because 1) the files on it change too often for SnapRAID to be useful and 2) they are covered by another form of backup. I also want to add a new 2TB parity drive.
I'm having difficulty getting SnapRAID to accept me removing the drive from the array. If I remove it via the plugin (see pic 1 - the SSD is the last drive in the list) and then try to run the sync command, I get an error message stating that the drive has been removed from the config, and asking me to restore it (see pic 2). If I try to remove it by manually editing the snapraid.conf file via SSH and then forcing a sync, as per the instructions here, then I succeed in altering the snapraid.conf file as shown in my SSH window (pic 3), but it does not update the config as shown in the plugin (pic 4), and therefore I'm stuck with the same problem.
What am I doing wrong here? What's the best way to permanently remove the SSD from the array? (I'll leave adding a new parity disk as I think that I know how to do that!
Thanks!
-
-
You must remove the drive via the plugin gui. Like many things in OMV, the plugin edits the .conf so manually editing the .conf doesn't work.
So, remove the drive using the plugin, then through a terminal force a sync.
-
OK, thank you @jollyrogr.
So the correct procedure would be:
- Delete the SSD from the drive list within the plugin
- Then go to a terminal window and execute the command:
Do I have that right? Or would it be the same command with the modifiers -FV?Thanks!
-
OK, thank you @jollyrogr.
So the correct procedure would be:
[*]Delete the SSD from the drive list within the plugin
[*]Then go to a terminal window and execute the command:
[/list]Do I have that right? Or would it be the same command with the modifiers -FV?
Thanks!
Should be snapraid -e sync
-f would force a full rebuild of parity which you would need to do if you added a parity drive.
-
-
-
Thanks. From my reading of the manual, -e only applies to the 'fix' command.
Should I use -E (upper case), or am I misunderstanding the manual?
Sorry - just want to be clear before setting this running.
Thanks.
You're right, my mistake. Should be snapraid -E sync
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!