User Tools

Site Tools


snapraid:configure_snapraid

This is an old revision of the document!


SnapRAID - Configure SnapRAID

Planning the SnapRAID Setup

Before configuring SnapRAID, consider:

  • How many data disks?
    • SnapRAID protects your data by storing parity on a separate drive, so you’ll need at least one data disk and one parity disk.
  • How much parity?
    • One parity disk protects against one drive failure, two parity disks protect against two failures, and so on.
  • Which drives hold parity and content?
    • The parity disk should have enough free space for the parity data, while your content should be spread across multiple data drives for better redundancy and organization.

Creating the SnapRAID Configuration File

The main configuration file for SnapRAID is /etc/snapraid.conf.

A basic configuration for three data disks and one parity disk looks like this:

/etc/snapraid.conf
# Parity file - stored on the largest disk or a dedicated parity drive.
parity /mnt/disk3/snapraid.parity  
 
# Content files - store metadata; should be on multiple drives for redundancy.
content /mnt/disk1/snapraid.content  
content /mnt/disk2/snapraid.content  
 
# Data drives - these contain actual files.
data d1 /mnt/disk1  
data d2 /mnt/disk2  
data d3 /mnt/disk3

NOTE: Notice that both disk1 and disk2 are used for content and data.

Key Points to Consider:

  • Parity Drive: Should be the largest or have enough space for parity data.
  • Content Files: Should be placed on multiple drives for redundancy.
  • Data Drives: List each drive that stores actual files.

Additional SnapRAID Options

For better protection and logging, add:

/etc/snapraid.conf
# Define the block size used for parity calculations (default is 256K).
block_size 256  
 
# Auto-save changes to the content file before syncing.
autosave 300  
 
# Enable scrub (data integrity check) with a limit on recovered errors.
scrub_percent 10
scrub_recover 5

snapraid/configure_snapraid.1745927869.txt.gz · Last modified: 2025/04/29 11:57 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki