Back to Talos

LVMVolumeGroupConfig

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

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

{{< highlight yaml >}} apiVersion: v1alpha1 kind: LVMVolumeGroupConfig name: vg-pool # Volume group name.

The provisioning describes how the Physical Volumes are provisioned.

provisioning: # Matches disks to initialize as physical volumes. volumeSelector: match: volume.partition_label.startsWith("r-lvm") # CEL expression matching a disk or partition to use as a physical volume. {{< /highlight >}}

FieldTypeDescriptionValue(s)
namestringVolume group name.

Must be 1-63 chars: ASCII letters, digits, hyphens, underscores. | | |provisioning |<a href="#LVMVolumeGroupConfig.provisioning">ProvisioningSpec</a> |The provisioning describes how the Physical Volumes are provisioned. | |

provisioning {#LVMVolumeGroupConfig.provisioning}

ProvisioningSpec describes how the Physical Volumes are provisioned.

FieldTypeDescriptionValue(s)
volumeSelector<a href="#LVMVolumeGroupConfig.provisioning.volumeSelector">LVMVolumeSelectorSpec</a>Matches disks to initialize as physical volumes.

volumeSelector {#LVMVolumeGroupConfig.provisioning.volumeSelector}

LVMVolumeSelectorSpec matches disks with CEL.

FieldTypeDescriptionValue(s)
matchExpressionCEL expression matching a disk or partition to use as a physical volume.

The expression is evaluated against each discovered volume with the volume variable (the discovered volume) and, for whole disks, the disk variable. Partitions (e.g. raw volumes) can be matched by their partition label via volume.partition_label. <details><summary>Show example(s)</summary>match raw volume partitions labeled r-lvm*:{{< highlight yaml >}} match: volume.partition_label.startsWith("r-lvm") {{< /highlight >}}</details> | |