Create LVM volume groups on top of RAID devices¶
Available since MOSK 22.2 TechPreview
You can configure an LVM volume group on top of mdadm-based RAID devices as
physical volumes using the BareMetalHostProfile
resource. List the
required RAID devices in a separate field of the volumeGroups
definition
within the storage configuration of BareMetalHostProfile
.
The following example illustrates an extract of BaremetalHostProfile
with
a volume group named lvm_nova
to be created on top of an mdadm-based
RAID device raid1
:
...
devices:
- device:
workBy: "by_id,by_wwn,by_path,by_name"
minSizeGiB: 60
type: ssd
wipe: true
partitions:
- name: bios_grub
partflags:
- bios_grub
sizeGiB: 0.00390625
- name: uefi
partflags:
- esp
sizeGiB: 0.20000000298023224
- name: config-2
sizeGiB: 0.0625
- device:
workBy: "by_id,by_wwn,by_path,by_name"
minSizeGiB: 30
type: ssd
wipe: true
partitions:
- name: md0_part1
- device:
workBy: "by_id,by_wwn,by_path,by_name"
minSizeGiB: 30
type: ssd
wipe: true
partitions:
- name: md0_part2
softRaidDevices:
- devices:
- partition: md0_part1
- partition: md0_part2
level: raid1
metadata: "1.0"
name: /dev/md0
volumeGroups:
- devices:
- softRaidDevice: /dev/md0
name: lvm_nova
...