SnapRAID and mergerfs planner: build snapraid.conf and fstab

Version 1.1.0

Build a snapraid.conf and a matching mergerfs line for /etc/fstab from one list of disks. The planner checks that parity, data, content files, and the pool don't overlap.

Have the mount path and size of each data and parity disk, and where you want SnapRAID's content files.

Data disks

4 / 42
d1
Data disk 1 capacity unit
d2
Data disk 2 capacity unit
d3
Data disk 3 capacity unit
d4
Data disk 4 capacity unit

Parity disks

1 / 3
parity
Parity disk 1 capacity unit

Content files

2 / 12

Output settings

Mergerfs policy Required
SnapRAID blocksize Required

What to enter

Each parity disk must be at least as large as your largest data disk, because parity can grow to that size. The SnapRAID manual sets this rule.

Content files are SnapRAID's list of files and checksums. Keep at least one more copy than you have parity disks, each on a different disk. A copy can sit on a data disk, such as /mnt/disk1/snapraid.content, but never on a parity disk.

The mergerfs policy decides which disk gets a new file:

Optionmergerfs policyNew files go to
BalancedepmfsThe disk with the most free space among those that already have the folder
Most freemfsThe disk with the most free space

Balanced keeps a folder's files together. The mergerfs policy docs explain the rest.

Leave the blocksize at 256 KiB, SnapRAID's default, unless you have a reason to change it.

Your paths stay in this browser and aren't added to the page address.

How do SnapRAID and mergerfs work together?

SnapRAID protects the data disks with parity. mergerfs shows the same data disks as one folder. They use the same data mounts but do different jobs.

ToolJobUses
SnapRAIDParity and checksums, updated when you run a syncData disks, parity disks, content files
mergerfsOne pooled folder over many disksData disks only

The fstab line lists data disks only, so a parity disk never becomes part of the pool.

What does SnapRAID protect between syncs?

Only what was there at the last sync. SnapRAID isn't real-time: files added or changed since then may not be recoverable if a disk fails. The manual names this as its main limit.

That makes SnapRAID a good fit for media libraries that rarely change, and a poor fit for databases or virtual machine images that change all the time. Schedule syncs to match how fast your data changes, and keep a separate backup. The 3-2-1 backup calculator helps you size one.

What should you check before using the files?

The planner compares paths, not real disks. Two different paths can sit on the same disk, and only the host can tell you.

  1. Run findmnt and lsblk to confirm each path is its own disk.
  2. Check that your mergerfs version and FUSE setup allow allow_other, which lets other users and services see the pool.
  3. Save the files under /etc, mount the pool, and run your first snapraid sync.

Compare the options with the SnapRAID manual and the mergerfs quick start for your installed versions. For a parity-protected array that runs in real time, see the Unraid calculator.