If you read the posts at the bottom of the page where the script is you'll see there are two reports (one mine) of it hanging at the end of the run on: 'python -m markdown /tmp/snapRAID.out'
Today it ran fine, but yesterday it hung.
lol, I did, and I am the other user, the one with another dog in the picture.
I have found a good script which is not spammy at all, comes from here but these are the changes that I included
- Adapted for standard parity (original script is made for split parity)
- Integrated changes of user sburke to make it working with Debian 10 (original script does not work on Debian 10)
I've tested it in my OMV5 VM and works fine.
NOTES
- You can configure sync rules, but by default it always forces a sync
- It can pause Containers so they don't mess up, and restore them when finished. I disabled it but if you want to use this feature switch MANAGE_SERVICES=0 to 1 and in SERVICES= list all containers.
- In OMV5 the script it self does send emails (you can specify your address in EMAIL_ADDRESS=). You might want to disable this feature or the one from the scheduled job on OMV.
The output itself is quite nice. I've kept the whole output, it's not syncing any personal data.
##[COMPLETED] DIFF + SYNC + SCRUB Jobs (SnapRAID on **REDACTED**)
SnapRAID Script Job started [Thu Jan 9 20:22:00 CET 2020]
----------------------------------------
##Preprocessing
Testing that all parity files are present.
All parity files found. Continuing...
----------------------------------------
##Processing
###SnapRAID TOUCH [Thu Jan 9 20:22:00 CET 2020]
Checking for zero sub-second files.
No zero sub-second timestamp files found.
###SnapRAID DIFF [Thu Jan 9 20:22:00 CET 2020]
Loading state from /srv/dev-disk-by-label-DATI/snapraid.content...
Comparing...
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/config.v2.json
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/hosts
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/hostname
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/resolv.conf
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83-json.log
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/resolv.conf.hash
update docker-install/containers/bbed6403e1bc693f1ddbf39e30ec23f6d7cd667c16c5e8300721c6978906bc83/hostconfig.json
update docker-install/volumes/metadata.db
update docker-install/network/files/local-kv.db
update docker-install/buildkit/cache.db
update docker/portainer/data/portainer.db
update docker/portainer/data/config.json
24046 equal
0 added
0 removed
12 updated
0 moved
0 copied
0 restored
There are differences!
DIFF finished [Thu Jan 9 20:22:01 CET 2020]
**SUMMARY of changes - Added [0] - Deleted [0] - Moved [0] - Copied [0] - Updated [12]**
There are deleted files. The number of deleted files, (0), is below the threshold of (50). SYNC Authorized.
There are updated files. The number of updated files, (12), is below the threshold of (500). SYNC Authorized.
###SnapRAID SYNC [Thu Jan 9 20:22:01 CET 2020]
Self test...
Loading state from /srv/dev-disk-by-label-DATI/snapraid.content...
Scanning disk disco-a...
Using 14 MiB of memory for the file-system.
Initializing...
Resizing...
Saving state to /srv/dev-disk-by-label-DATI/snapraid.content...
Saving state to /srv/dev-disk-by-label-PARITY/snapraid.content...
Verifying /srv/dev-disk-by-label-DATI/snapraid.content...
Verifying /srv/dev-disk-by-label-PARITY/snapraid.content...
Syncing...
Using 16 MiB of memory for 32 cached blocks.
disco-a 56% | **********************************
parity 0% |
raid 3% | *
hash 0% |
sched 39% | ***********************
misc 0% |
|_____________________________________________________________
wait time (total, less is better)
SYNC_JOB--Everything OK
Saving state to /srv/dev-disk-by-label-DATI/snapraid.content...
Saving state to /srv/dev-disk-by-label-PARITY/snapraid.content...
Verifying /srv/dev-disk-by-label-DATI/snapraid.content...
Verifying /srv/dev-disk-by-label-PARITY/snapraid.content...
SYNC finished [Thu Jan 9 20:22:04 CET 2020]
###SnapRAID SCRUB [Thu Jan 9 20:22:04 CET 2020]
Self test...
Loading state from /srv/dev-disk-by-label-DATI/snapraid.content...
Using 13 MiB of memory for the file-system.
Initializing...
Scrubbing...
Using 24 MiB of memory for 32 cached blocks.
SCRUB_JOB--Nothing to do
SCRUB finished [Thu Jan 9 20:22:04 CET 2020]
----------------------------------------
##Postprocessing
SnapRAID SMART report:
Temp Power Error FP Size
C OnDays Count TB Serial Device Disk
-----------------------------------------------------------------------
0 - - SSD 0.0 - /dev/sda disco-a
0 - - SSD 0.0 - /dev/sdb parity
0 - - SSD 0.0 - /dev/sdc -
- - - n/a - - /dev/sr0 -
The FP column is the estimated probability (in percentage) that the disk
is going to fail in the next year.
Probability that at least one disk is going to fail in the next year is 0%.
Spinning down disks...
Spindown...
Spundown device '/dev/sdb' for disk 'parity' in 36 ms.
Spundown device '/dev/sda' for disk 'disco-a' in 39 ms.
All jobs ended. [Thu Jan 9 20:22:05 CET 2020]
Email address is set. Sending email report to **REDACTED** [Thu Jan 9 20:22:05 CET 2020]
----------------------------------------
##Total time elapsed for SnapRAID: 0hrs 0min 5sec
Display More