Create a RAID logical volume
RAID logical volumes enable you to use multiple disks for redundancy and performance. LVM supports various RAID levels, including RAID0, RAID1, RAID4, RAID5, RAID6, and RAID10.
Before you begin
- Administrative access.
About this task
With LVM you can create striped RAIDs (RAID0, RAID4, RAID5, RAID6), mirrored RAID (RAID1), or a combination of both (RAID10). RAID 4, RAID 5, and RAID 6 offer fault tolerance by storing parity data that you can use to reconstruct lost information in case of a disk failure.
When creating RAID LVs, place each stripe on a separate PV. The number of stripes equals to the number of PVs that should be in the volume group (VG).
| RAID level | Type | Parity | Minimum number of devices | Minimum stripe number |
|---|---|---|---|---|
|
RAID0 |
Striping |
None |
2 |
2 |
|
RAID1 |
Mirroring |
None |
2 |
- |
|
RAID4 |
Striping |
Uses first device to store parity |
3 |
2 |
|
RAID5 |
Striping |
Uses an extra device to store parity |
3 |
2 |
|
RAID6 |
Striping |
Uses two extra devices to store parity |
5 |
3 |
|
RAID10 |
Striping and mirroring |
None |
4 |
2 |
Procedure
Results
- Verify that the RAID LV is created:
# lvs -o lv_name,seg_typeLV Type LogicalVolumeName raid0