Create an mdadm software RAID level 1 (raid1)¶
This feature is available as Technology Preview. Use such configuration for testing and evaluation purposes only. For the Technology Preview feature definition, refer to Technology Preview support scope.
During configuration of your custom bare metal host profile as described in
Create a custom bare metal host profile, you can create an mdadm-based software RAID
raid1 by describing the mdadm devices under the
BaremetalHostProfile. For example:
... softRaidDevices: - name: /dev/md0 devices: - partition: sda1 - partition: sdb1 - name: raid-name devices: - partition: sda2 - partition: sdb2 ...
The only two required fields to describe RAID devices are
devices field must describe at least two partitions
to build an mdadm RAID on it. For the mdadm RAID parameters, see
API: BareMetalHostProfile spec.
The mdadm RAID devices cannot be created on top of LVM devices, as well as LVM devices cannot be created on top of mdadm devices.
The following example illustrates an extract of
/ on the mdadm
raid1 and some data storage on
... devices: - device: byName: /dev/sda wipe: true partitions: - name: root_part1 sizeGiB: 120 partitions: - name: rest_sda sizeGiB: 0 - device: byName: /dev/sdb wipe: true partitions: - name: root_part2 sizeGiB: 120 partitions: - name: rest_sdb sizeGiB: 0 softRaidDevices: - name: root level: raid1 ## <-- mdadm raid1 devices: - partition: root_part1 - partition: root_part2 - name: raid-name level: raid0 ## <-- mdadm raid0 devices: - partition: rest_sda - partition: rest_sdb fileSystems: - fileSystem: ext4 softRaidDevice: root mountPoint: / mountOpts: "noatime,nodiratime" - fileSystem: ext4 softRaidDevice: data mountPoint: /mnt/data ...