> ## 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.

# Software RAID

> Create a RAID 1, 5, 6, 10 or 0 from blank drives, watch its state, repair it, change a RAID 1 to RAID 5, or delete it.

**Create RAID** in the [Storage Manager](https://docs.recasaos.org/storage/storage-manager.md) turns two or more blank drives into one storage that survives the loss of a drive (except RAID 0). `mdadm` is installed for you if it is missing.

## Create a RAID

**1. Click Create RAID**

It is enabled when at least two blank drives are plugged in.

**2. Name it and choose the level**

**Name of the storage** (letters, digits and underscores, 16 at most), then the **RAID level**. Only the levels your drives allow are offered; the window shows what the result holds and how many drives may fail.

**3. Tick the drives and confirm**

Tick the **Drives to use**, type the storage's name again, then **Erase and create**. For RAID 0, also tick that you understand everything is lost if one drive fails.

| Level | Drives | Survives |
| - | - | - |
| RAID 1 (a mirror) | 2 or more | all but one drive |
| RAID 5 | 3 or more | one failed drive |
| RAID 6 | 4 or more | two failed drives |
| RAID 10 (mirrored pairs) | 4 or more | one failed drive |
| RAID 0 | 2 or more | nothing |
| [Btrfs mirror](https://docs.recasaos.org/storage/btrfs-mirror.md) | 2 or more | one failed drive, and checks every file |

> [!WARNING]
>
> Everything on the chosen drives is erased. The storage is usable at once, while the RAID synchronizes in the background.

## Watch and repair

The storage card shows the state: *Healthy*, *Degraded*, *Rebuilding*, *Resyncing*, *Checking*, *Reshaping*, *Not running*. An [alert](https://github.com/ReCasaOS/CasaOS-Install#alerts) can tell you when an array loses a drive.

* **Add a disk** (when one is missing or faulty) erases a blank disk and rebuilds onto it. Type the disk's name to confirm.
* **Take out** removes a failed disk; the array goes on with the others, then you can unplug it.
* **Check now** reads the whole array.

## Change a RAID 1 to RAID 5

On a healthy RAID 1, **Change to RAID 5** makes it hold twice as much with a third drive. It stays usable while it reorganizes, which takes hours for large drives: do not switch the box off before it is over. Then **Use the new space** grows its filesystem.

## Delete a RAID

**Remove** on the RAID's card opens *Delete {array}?*: type the array's name (such as `md0`), then **Delete**. Everything on it is erased and its disks are left blank. This cannot be undone.


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