1.10. Basic LVMS configuration example
MicroShift supports passing through your LVM configuration and allows you to specify custom volume groups, thin volume provisioning parameters, and reserved unallocated volume group space. You can edit the LVMS configuration file you created at any time. You must restart MicroShift to deploy configuration changes after editing the file.
If you need to take volume snapshots, you must use thin provisioning in your lvmd.conf file. If you do not need to take volume snapshots, you can use thick volumes.
The following lvmd.yaml example file shows a basic LVMS configuration:
LVMS configuration example
socket-name:
device-classes:
- name: "default"
volume-group: "VGNAMEHERE"
spare-gb: 0
default:
- 1
- String. The UNIX domain socket endpoint of gRPC. Defaults to '/run/lvmd/lvmd.socket'.
- 2
- A list of maps for the settings for each
device-class. - 3
- String. The name of the
device-class. - 4
- String. The group where the
device-classcreates the logical volumes. - 5
- Unsigned 64-bit integer. Storage capacity in GB to be left unallocated in the volume group. Defaults to
0. - 6
- Boolean. Indicates that the
device-classis used by default. Defaults tofalse. At least one value must be entered in the YAML file values when this is set totrue.
A race condition prevents LVMS from accurately tracking the allocated space and preserving the spare-gb for a device class when multiple PVCs are created simultaneously. Use separate volume groups and device classes to protect the storage of highly dynamic workloads from each other.