Back to Talos

LVMLogicalVolumeConfig

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

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

{{< highlight yaml >}} apiVersion: v1alpha1 kind: LVMLogicalVolumeConfig name: lv-data # Logical volume name. type: linear # Logical volume layout.

Describes how the logical volume is provisioned.

provisioning: volumeGroup: vg-pool # Name of the volume group that backs the logical volume. maxSize: 50GiB # The maximum size of the volume. {{< /highlight >}}

FieldTypeDescriptionValue(s)
namestringLogical volume name.

Must be 1-63 chars: ASCII letters, digits, hyphens, underscores. | | |type |LVMLogicalVolumeType |Logical volume layout. |linear raid0 raid1 raid10 | |mirrors |uint32 |Number of mirror copies for raid1 / raid10 layouts.

Defaults to 1 (a two-way mirror) when unset. Not valid for linear or raid0. | | |stripes |uint32 |Number of stripes for raid0 / raid10 layouts.

Defaults to all available physical volumes when unset. Must be at least 2. Not valid for linear or raid1. | | |provisioning |<a href="#LVMLogicalVolumeConfig.provisioning">LVMLogicalVolumeProvisioningSpec</a> |Describes how the logical volume is provisioned. | |

provisioning {#LVMLogicalVolumeConfig.provisioning}

LVMLogicalVolumeProvisioningSpec describes how an LV is provisioned.

FieldTypeDescriptionValue(s)
volumeGroupstringName of the volume group that backs the logical volume.
minSizeByteSizeThe minimum size of the volume.

Size is specified in bytes, but can be expressed in human readable format, e.g. 100MB. | | |maxSize |Size |The maximum size of the volume.

Size is specified in bytes or in percents of the volume group. It can be expressed in human readable format, e.g. 100MB or 80%. | |