website/content/v1.14/reference/configuration/storage/lvmlogicalvolumeconfig.md
{{< highlight yaml >}} apiVersion: v1alpha1 kind: LVMLogicalVolumeConfig name: lv-data # Logical volume name. type: linear # Logical volume layout.
provisioning: volumeGroup: vg-pool # Name of the volume group that backs the logical volume. maxSize: 50GiB # The maximum size of the volume. {{< /highlight >}}
| Field | Type | Description | Value(s) |
|---|---|---|---|
name | string | Logical 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. | |
LVMLogicalVolumeProvisioningSpec describes how an LV is provisioned.
| Field | Type | Description | Value(s) |
|---|---|---|---|
volumeGroup | string | Name of the volume group that backs the logical volume. | |
minSize | ByteSize | The 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%. | |