16.4. Supported RAID conversions
RAID level conversions are supported between different configurations using specific mdadm commands, with disk requirements varying by the target RAID type.
You can convert from one RAID level to another. For example, you can convert from RAID10 to RAID5, but there is an intermediate step in between from RAID10 to RAID0, then to RAID5. See the following table for more supported RAID conversions:
| RAID conversion levels | Conversion steps | Notes |
|---|---|---|
| RAID level 0 to RAID level 4 |
| You need to add a disk to the MD array because it requires at least 3 disks. |
| RAID level 0 to RAID level 5 |
| You need to add a disk to the MD array because it requires at least 3 disks. |
| RAID level 0 to RAID level 10 |
| You need to add two extra disks to the MD array. |
| RAID level 1 to RAID level 0 |
| |
| RAID level 1 to RAID level 5 |
| You need to add 3 extra disks to the MD array. |
| RAID level 4 to RAID level 0 |
| |
| RAID level 4 to RAID level 5 |
| |
| RAID level 5 to RAID level 0 |
| |
| RAID level 5 to RAID level 1 |
|
The
Using |
| RAID level 5 to RAID level 4 |
| |
| RAID level 5 to RAID level 6 |
| |
| RAID level 5 to RAID level 10 |
| Converting RAID level 5 to RAID level 10 is a two step conversion:
One of the RAID5 disks is removed after the conversion to RAID0. |
| RAID level 6 to RAID level 5 |
| One of the RAID6 disks is in spare status (for hot backup) in the new RAID5 array. |
| RAID level 10 to RAID level 0 |
| Two of RAID10 disks are removed from the new RAID0 array. |
Converting RAID5 to RAID0 and RAID4 is only possible with the ALGORITHM_PARITY_N layout.
After converting a RAID level, verify the conversion by using either the mdadm --detail /dev/md0 or cat /proc/mdstat command.