Back to Talos

RAIDArrayConfig

website/content/v1.14/reference/configuration/storage/raidarrayconfig.md

1.14.02.3 KB
Original Source
<!-- markdownlint-disable -->

{{< highlight yaml >}} apiVersion: v1alpha1 kind: RAIDArrayConfig name: talos # Array name, stamped into the md metadata. level: raid1 # RAID level.

The provisioning describes how the RAID arrays are provisioned.

provisioning: # The volume selector describes how the members of RAID arrays are selected. volumeSelector: match: disk.transport == "nvme" && disk.size > 100u * GiB # CEL expression matching the member volumes of the array. {{< /highlight >}}

FieldTypeDescriptionValue(s)
namestringArray name, stamped into the md metadata.

Must be 1-32 chars: ASCII letters, digits, hyphens, underscores. Exposed as /dev/disk/by-id/md-name-<name>. | | |level |MDLevel |RAID level. |raid1 | |metadata |MDMetadata |MD on-disk metadata format.

Defaults to 1.0, which stores the superblock at the end of the member device so the array can back a bootable partition. Use 1.2 for data arrays that do not need to be bootable. |1.0 1.2 | |provisioning |<a href="#RAIDArrayConfig.provisioning">RAIDProvisioningSpec</a> |The provisioning describes how the RAID arrays are provisioned. | |

provisioning {#RAIDArrayConfig.provisioning}

RAIDProvisioningSpec describes how the RAID arrays are provisioned.

FieldTypeDescriptionValue(s)
volumeSelector<a href="#RAIDArrayConfig.provisioning.volumeSelector">RAIDVolumeSelector</a>The volume selector describes how the members of RAID arrays are selected.

volumeSelector {#RAIDArrayConfig.provisioning.volumeSelector}

RAIDVolumeSelector matches member disks with CEL.

FieldTypeDescriptionValue(s)
matchExpressionCEL expression matching the member volumes of the array.

Evaluated against each discovered volume with the volume variable; the disk variable is bound for whole disks (empty for partitions), so both whole disks and partitions can be selected. The system disk and its partitions are never eligible. <details><summary>Show example(s)</summary>match NVMe disks larger than 100 GiB:{{< highlight yaml >}} match: disk.transport == "nvme" && disk.size > 100u * GiB {{< /highlight >}}</details> | |