Snapraid with LVM. Unrecoverable errors?
by jmgibson1981 from LinuxQuestions.org on (#5DDTH)
Got a wild idea to try scripting something using LVM snapshots to create snapraid syncs from. It works. Mostly. I did find a problem that I simply cannot explain.
Here is the script
https://github.com/jmgibson1981/scri...napraid.sh.new
The problem I've hit seems to be something with a restoration then sync. I've built and tested this script in a Debian VM via VirtualBox.
I add a file to disk 1 of 2. I sync the snapraid. It does what it's supposed to. Creates snapshots, adjusts the /etc/snapraid.conf, syncs, then fixes /etc/snapraid.conf as it should be. If I delete the file, I can restore it. However if I sync a restored file, then delete it and try again it this is where I end up.
Code:sudo snapraid fix -m
Self test...
Loading state from /snapraid/data/data1/snapraid.content...
Searching disk d1...
Searching disk d2...
Filtering...
Scanning disk d1...
Scanning disk d2...
Using 0 MiB of memory for the file-system.
Initializing...
Fixing...
unrecoverable 10000\ BC\ \(2008\).mkv%, 0:00 ETA
100% completed, 1 MB accessed in 0:00
4712 errors
4710 recovered errors
1 UNRECOVERABLE errors
DANGER! There are unrecoverable errors!This is the same file I deleted and restored before. I'm not sure if it's an issue with the source being a snapshot or what. But for some reason if you sync after a file restore you you get failed recoveries. I'm a bit lost. Any help or ideas?


Here is the script
https://github.com/jmgibson1981/scri...napraid.sh.new
The problem I've hit seems to be something with a restoration then sync. I've built and tested this script in a Debian VM via VirtualBox.
I add a file to disk 1 of 2. I sync the snapraid. It does what it's supposed to. Creates snapshots, adjusts the /etc/snapraid.conf, syncs, then fixes /etc/snapraid.conf as it should be. If I delete the file, I can restore it. However if I sync a restored file, then delete it and try again it this is where I end up.
Code:sudo snapraid fix -m
Self test...
Loading state from /snapraid/data/data1/snapraid.content...
Searching disk d1...
Searching disk d2...
Filtering...
Scanning disk d1...
Scanning disk d2...
Using 0 MiB of memory for the file-system.
Initializing...
Fixing...
unrecoverable 10000\ BC\ \(2008\).mkv%, 0:00 ETA
100% completed, 1 MB accessed in 0:00
4712 errors
4710 recovered errors
1 UNRECOVERABLE errors
DANGER! There are unrecoverable errors!This is the same file I deleted and restored before. I'm not sure if it's an issue with the source being a snapshot or what. But for some reason if you sync after a file restore you you get failed recoveries. I'm a bit lost. Any help or ideas?