Not sure why. It seems to work on my system. The changes I made should execute the sync no matter what your setting is. Can you enable debug mode on the settings tab and post the output?
[HowTo] SnapRAID in OMV
-
-
here you go
Code
Alles anzeigen[2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'OMV_CONTENT_FILES: /media/a3934a90-3256-466e-8a14-6782ec50d72e/snapraid.content /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87/snapraid.content /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.content /media/7f1e3c5e-31e5-4013-b066-dc7fd4bd235e/snapraid.content' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'PARITY_FILE: /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.parity' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'OMV_SNAPRAID_DISKS: /media/a3934a90-3256-466e-8a14-6782ec50d72e /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'TMP_OUTPUT: /tmp/snapraid/snapraid.out' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'RUN_SCRUB: true' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'SCRUB_FREQUENCY_IN_DAYS: 7' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'SCRUB_PERCENT: 10' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'SCRUB_OLDER_THAN_DAYS: ' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'DEL_THRESHOLD: 50' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/a3934a90-3256-466e-8a14-6782ec50d72e/snapraid.content' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87/snapraid.content' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.content' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/7f1e3c5e-31e5-4013-b066-dc7fd4bd235e/snapraid.content' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: PARITY_FILE: /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.parity' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'SCRUB_OLDER_THAN_DAYS not set in '/etc/snapraid-diff.conf'' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'set it to 0' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'SnapRAID Job started - Script-version: 1.0.8' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'SnapRAID-Version: 11.0 by Andrea Mazzoleni, http://www.snapraid.it' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'Checking 'disks' in '/etc/snapraid.conf'' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: OMV_DISK: /media/a3934a90-3256-466e-8a14-6782ec50d72e' [2017-03-13 00:12:47] omv-snapraid-diff: DEBUG: 'found: OMV_DISK: /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87' [2017-03-13 00:12:47] omv-snapraid-diff: INFO: 'SnapRAID DIFF started' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'SnapRAID DIFF finished' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: '----------------------------------------' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'SUMMARY of changes since last sync:' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'Added: [2] - Deleted: [0] - Moved: [0] - Copied: [0] - Updated: [0]' [2017-03-13 00:12:49] omv-snapraid-diff: DEBUG: 'Pre-Hash option: --prehash ' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'Changes detected [A-2,D-0,M-0,C-0,U-0] -> deleted files ( T) is below threshold (50). Running SYNC Command.' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'SnapRAID SYNC Job started' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: '----------------------------------------' Unknown option '?' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: '----------------------------------------' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'SnapRAID SYNC Job finished' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'SnapRAID SCRUB-Cycle count (7) not met (3). No scrub was run.' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'Full statusreport sent to '/var/mail/root'' [2017-03-13 00:12:49] omv-snapraid-diff: INFO: 'SnapRAID Job ended.'
-
I tried disabling the prehash button and then the cron job works
Code
Alles anzeigen[2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'OMV_CONTENT_FILES: /media/a3934a90-3256-466e-8a14-6782ec50d72e/snapraid.content /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87/snapraid.content /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.content /media/7f1e3c5e-31e5-4013-b066-dc7fd4bd235e/snapraid.content' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'PARITY_FILE: /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.parity' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'OMV_SNAPRAID_DISKS: /media/a3934a90-3256-466e-8a14-6782ec50d72e /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'TMP_OUTPUT: /tmp/snapraid/snapraid.out' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'RUN_SCRUB: true' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'SCRUB_FREQUENCY_IN_DAYS: 7' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'SCRUB_PERCENT: 10' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'SCRUB_OLDER_THAN_DAYS: ' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'DEL_THRESHOLD: 50' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/a3934a90-3256-466e-8a14-6782ec50d72e/snapraid.content' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87/snapraid.content' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.content' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: SINGLE_CONTENT_FILE: /media/7f1e3c5e-31e5-4013-b066-dc7fd4bd235e/snapraid.content' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: PARITY_FILE: /media/3c4e6274-be6d-4ee7-8ea3-f86c2fdc14d2/snapraid.parity' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'SCRUB_OLDER_THAN_DAYS not set in '/etc/snapraid-diff.conf'' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'set it to 0' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'SnapRAID Job started - Script-version: 1.0.8' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'SnapRAID-Version: 11.0 by Andrea Mazzoleni, http://www.snapraid.it' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'Checking 'disks' in '/etc/snapraid.conf'' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: OMV_DISK: /media/a3934a90-3256-466e-8a14-6782ec50d72e' [2017-03-13 00:18:03] omv-snapraid-diff: DEBUG: 'found: OMV_DISK: /media/d7962c63-c6ee-4cce-85d1-da3bac1bcb87' [2017-03-13 00:18:03] omv-snapraid-diff: INFO: 'SnapRAID DIFF started' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: 'SnapRAID DIFF finished' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: '----------------------------------------' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: 'SUMMARY of changes since last sync:' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: 'Added: [2] - Deleted: [0] - Moved: [0] - Copied: [0] - Updated: [0]' [2017-03-13 00:18:05] omv-snapraid-diff: DEBUG: 'Pre-Hash option: ' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: 'Changes detected [A-2,D-0,M-0,C-0,U-0] -> deleted files ( T) is below threshold (50). Running SYNC Command.' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: 'SnapRAID SYNC Job started' [2017-03-13 00:18:05] omv-snapraid-diff: INFO: '----------------------------------------' [2017-03-13 00:18:45] omv-snapraid-diff: INFO: '----------------------------------------' [2017-03-13 00:18:45] omv-snapraid-diff: INFO: 'SnapRAID SYNC Job finished' [2017-03-13 00:18:45] omv-snapraid-diff: INFO: 'SnapRAID SCRUB-Cycle count (7) not met (4). No scrub was run.' [2017-03-13 00:18:45] omv-snapraid-diff: INFO: 'Full statusreport sent to '/var/mail/root'' [2017-03-13 00:18:45] omv-snapraid-diff: INFO: 'SnapRAID Job ended.'
-
Looking at the debug output, the parameter is being set correctly.
According to the manual, you can use -h or --pre-hash in the form snapraid -h sync or snapraid --pre-hash sync. The button on the drives tab actually uses snapraid sync -h which is the format that the snapraid binary tells you to use.
I changed it to what the binary says in 3.6.4 in the repo now.
-
-
ahh. Looks like maybe you were missing the "-" in "--pre-hash"?
Thanks. Didn't even notice that for some reason. Fixed in 3.6.5.
-
Thanks. Didn't even notice that for some reason. Fixed in 3.6.5.It's the little things that'll get ya.
-
Will you backport this change to the OMV 2.x plugin?
-
Still having an error here on my fresh install (OMV 3.x and Snapraid 3.6.4 plugin
Coderoot@OpenMediaVault:/usr/sbin# omv-snapraid-diff /usr/sbin/omv-snapraid-diff: line 365: [: -eq: unary operator expected
Same error from cron window and command lineLine 365-366
Edit: If i disable the pre-hash setting it works fine
-
Will you backport this change to the OMV 2.x plugin?
I wasn't planning on it.
Still having an error here on my fresh install (OMV 3.x and Snapraid 3.6.4 plugin
I fixed that shortly after I released 3.6.4. Look up a few posts and you will see 3.6.5 was released.
-
verified prehash works fine with diffscript on 3.6.5 here
-
Quick questions before I plan and use SnapRAID:
1. Does SnapRAID see HDDs merged using mergefs as one big HDD or separate HDDs?
2. To add the content files to these HDDs, if the HDD is considered full by mergefs, is it still possible to make the content file there even though it has 16GB of space left (I have set mergefs such that it will switch to another HDD when current HDD has 16GB of space left)?
3. How long do syncing or scrubbing take? Is there a way to calculate rough estimates?Thanks!
-
Does SnapRAID see HDDs merged using mergefs as one big HDD or separate HDDs?
Both. When setting up snapraid, pretend you don't have mergerfs installed and don't use the mergerfs anywhere in snapraid.
To add the content files to these HDDs, if the HDD is considered full by mergefs, is it still possible to make the content file there even though it has 16GB of space left (I have set mergefs such that it will switch to another HDD when current HDD has 16GB of space left)?
Maybe.
How long do syncing or scrubbing take? Is there a way to calculate rough estimates?
Hard to say. Depends on cpu speed, file size, disk speed, etc.
-
Both. When setting up snapraid, pretend you don't have mergerfs installed and don't use the mergerfs anywhere in snapraid.
Maybe.
Hard to say. Depends on cpu speed, file size, disk speed, etc.
Thanks! I hope SnapRAID will play nice with rsnapshot too (which on principle alone should be fine since SnapRAID also see the hardlinked files as normal files too?)Time to get the new HDDs soon too
-
problem resolved
-
Hi,
Got some strange issues with a fresh install.
When adding drives, the pulldownmenu is empty. I wiped the hard drives but it doesn't matter.
Any idea's? -
Hi,
Got some strange issues with a fresh install.
When adding drives, the pulldownmenu is empty. I wiped the hard drives but it doesn't matter.
Any idea's?Are the drives formatted and mounted?
-
Hi,
Got some strange issues with a fresh install.
When adding drives, the pulldownmenu is empty. I wiped the hard drives but it doesn't matter.
Any idea's?do you mean in SnapRaid tab?
SnapRaid does not work with raw drives. it is kind of a "pseudo raid" and need an FS on the disk and disk mounted in the system.
-
Hmm weird, I thought I did that allready.
I can see them now.Though, even een question regarding configuration.
What do you use for fs underneath (underneath the snap)? Used Ext4 now.
Was also looking into MergerFS.(strange, i thought i posted this..)
-
you looking at it all wrong.
SnapRaid sits on top of FS. you can use any FS you want on the drives and just put them into SnapRaid setup. it is a independent software that, to some degree, emulate raid functionality.
same thing with MergerFS. it is not a file system per see, it is a software layer that aggregate a bunch of disks into a single presentable volume but works on top of existing FS. like an intermediary between them and user shares.
what is great about both a snapraid and mergers is that they work with existing disks with existing FS on them, they are non-destructive to the data, as in you can add drives with data to both on the fly and data will be there for you to use, and you can remove disassemble the pools and data still be there.
you use SnapRaid for data protection and you use MergerFS for have a single pool to work with using multiple hardware disks underneath.
unlike ,what I usually call a real raid, hardware or software, which does 2 things at the same time,
1. pools a bunch of disks into single volume and protects the data on that pool
SR and MergerFS do only one thing each.
SnapRaid protects your data from destruction and keeps you running if a hardware drive fails
and MergerFS allows you to merge (pool) a bunch of drives into a single volume.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!