SnapRAID on Ubuntu 16.04

Associate
Joined
25 Jun 2004
Posts
1,277
Location
.sk.dkwop.
I'm building a homebrew NAS type solution; pooled some disks using mhddfs but now I want to add some parity protection. Anyone on here used SnapRAID who can provide some advice? There's a lack of replies so I'll keep updating this post with details of my progress if it helps someone else later on.

Configuration - I'll have four internal datadrives, and a USB drive for parity.

Only two datadrives are mount today and are mounted as
  1. /mnt/5TB-0
  2. /mnt/6TB-0
These are pool as /mnt/pool01 using mhddfs and shared using SMB,

The parity drive will be an external drive USB drive, I'm only intending on performing syncs once a week and is mounted as
  • /mnt/6TB-P
The configuration file for SnapRAID is /etc/snapraid.conf and looks like this

Code:
parity /mnt/6TB-P/snapraid.parity
content /var/snapraid.content
content /mnt/5TB-0/snapraid.content
content /mnt/6TB-0/snapraid.content
data d1 /mnt/5TB-0/
data d2 /mnt/6TB-0/
exclude *.unrecoverable
exclude /tmp/
exclude /lost+found/

I've also bought a CrashPlan subscription; 59$ for unlimited for the year. Sending at 13Mbps for a prediction of 49Days before first backup completes. LOL.

SnapRAID progress of initial sync.
@ 9pm 31st Performing the first sync using "snapraid sync" command as I type this it's at 5% at 72MB/sec using 1% cpu.
@ 07:30 1st 35% at 72MB/sec. CPU sill at 1%.
@ 19:00 1st 67% at 36MB/sec. CPU still at 1% (performance dropped considerably).
@ 08:00 2n 100%!

Code:
Self test...
Loading state from /var/snapraid.content...
WARNING! Content file '/var/snapraid.content' not found, trying with another copy...
Loading state from /mnt/5TB-0/snapraid.content...
WARNING! Content file '/mnt/5TB-0/snapraid.content' not found, trying with another copy...
Loading state from /mnt/6TB-0/snapraid.content...
No content file found. Assuming empty.
Scanning disk d1...
Scanning disk d2...
Using 467 MiB of memory for the FileSystem.
Initializing...
Resizing...
Saving state to /var/snapraid.content...
Saving state to /mnt/5TB-0/snapraid.content...
Saving state to /mnt/6TB-0/snapraid.content...
Verifying /var/snapraid.content...
Verifying /mnt/5TB-0/snapraid.content...
Verifying /mnt/6TB-0/snapraid.content...
Syncing...
Using 24 MiB of memory for 32 blocks of IO cache.
100% completed, 7003606 MB accessed in 36:39        

     d1  5% | ***
     d2  0% |
 parity 92% | ********************************************************
   raid  0% |
   hash  1% |
  sched  0% |
   misc  0% |
            |______________________________________________________________
                           wait time (total, less is better)

Everything OK
Saving state to /var/snapraid.content...
Saving state to /mnt/5TB-0/snapraid.content...
Saving state to /mnt/6TB-0/snapraid.content...
Verifying /var/snapraid.content...
Verifying /mnt/5TB-0/snapraid.content...
Verifying /mnt/6TB-0/snapraid.content...

The external parity drive is on a USB 2 interface, going to buy a USB 3 card and move it over to hopefully improve speed a bit. Fairly happy that I can do 4.7TB of parity info over a couple of days. The data is largely static, with little change.

Testing
I'm only going to do single file restore testing to gain confidence in the configuration. Deleted a folder and ran "snapraid fix -m"

Code:
Self test...
Loading state from /var/snapraid.content...
Searching disk d1...
Searching disk d2...
Filtering...
Scanning disk d1...
Scanning disk d2...
Using 542 MiB of memory for the FileSystem.
Initializing...
Fixing...
recovered HomeShare/Software/ISO/VMware/VMware-ESXi-5.5U1-RollupISO.iso
recovered HomeShare/Software/ISO/VMware/VMware-ESXi-5.5U2-RollupISO2.iso
recovered HomeShare/Software/ISO/VMware/VMware-vCenter-Server-Appliance-5.5.0.10000-1624811_OVF10.ova
recovered HomeShare/Software/ISO/VMware/VMware-viclient-all-5.5.0-1618071.exe
100% completed, 0 MB accessed in 0:02

   11277 errors
   11277 recovered errors
       0 unrecoverable errors
Everything OK
 
Last edited:
Back
Top Bottom