> ## Documentation Index
> Fetch the complete documentation index at: https://docs.recasaos.org/llms.txt
> Use this file to discover all available pages before exploring further.

# SnapRAID

> Merge several drives into one storage and keep a parity drive that can rebuild any one of them: Create SnapRAID, or protect an existing merge.

SnapRAID merges several drives into one storage and keeps a drive that can rebuild any one of them if it fails. Your files stay on their drives, as ordinary files. `snapraid` is installed for you the first time.

## Create a SnapRAID storage

**1. Click Create SnapRAID**

In the [Storage Manager](https://docs.recasaos.org/storage/storage-manager.md), when there are at least two drives and no merge yet.

**2. Choose the drives**

Tick the **Drives to merge**, and the **Drive that protects them** (the biggest remaining drive is suggested). Blank drives are marked *Will be erased*.

**3. Choose the folder**

`/media/Pool` by default. If you choose `/DATA`, your apps are stopped for a moment.

**4. Confirm**

Type `I AM SURE`, then **Create and protect**.

The protecting drive must be at least as big as the biggest merged drive.

## Protect a merge you already have

On the **Merged Storage** tab, the card **Disk failure protection (SnapRAID)**: **Protect the merged storage**, then pick one or two storages of their own as parity (two survive the loss of two drives).

## Afterwards

* The box syncs every day. Files written after the last sync are not protected until the next one. **Sync now** runs it now.
* A sync that finds many files removed is held back instead of overwriting the parity: check what happened, then **Sync anyway** if it is right.
* Nothing is synced while a disk is not mounted where it was set up.
* **Repair…** brings lost files back from the parity, as they were at the last sync: type the disk's name (such as `d1`) or `all`. A repaired file comes back owned by root and readable by root only.
* **Remove protection** leaves the disks and their files untouched; the parity files stay on the parity disks until you delete them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.