Skip to content

Commit ab91bd1

Browse files
authored
Merge pull request #58699 from ShaunaDiaz/OCPBUGS11599
OCPBUGS#11599: simplify storage config example
2 parents 8889b5d + e1399bc commit ab91bd1

File tree

3 files changed

+36
-58
lines changed

3 files changed

+36
-58
lines changed

microshift_storage/microshift-storage-plugin-overview.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ LVMS provisions new logical volume management (LVM) logical volumes (LVs) for co
1313
include::modules/microshift-lvms-system-requirements.adoc[leveloffset=+1]
1414
include::modules/microshift-lvms-deployment.adoc[leveloffset=+1]
1515
include::modules/microshift-lvmd-yaml-creating.adoc[leveloffset=+1]
16-
include::modules/microshift-lvms-configuring.adoc[leveloffset=+1]
16+
include::modules/microshift-lvms-config-example-basic.adoc[][leveloffset=+1]
1717
include::modules/microshift-lvms-using.adoc[leveloffset=+1]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * microshift_storage/microshift-storage-plugin-overview.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="microshift-lvmd-config-example-basic_{context}"]
7+
= Basic LVMS configuration example
8+
9+
{product-title} 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 {product-title} to deploy configuration changes after editing the file.
10+
11+
The following `lvmd.yaml` example file shows a basic LVMS configuration:
12+
13+
.LVMS configuration example
14+
15+
[source,yaml]
16+
----
17+
socket-name: <1>
18+
device-classes: <2>
19+
- name: "default" <3>
20+
volume-group: "VGNAMEHERE" <4>
21+
spare-gb: 0 <5>
22+
default: <6>
23+
----
24+
<1> String. The UNIX domain socket endpoint of gRPC. Defaults to '/run/lvmd/lvmd.socket'.
25+
<2> A list of maps for the settings for each `device-class`.
26+
<3> String. The name of the `device-class`.
27+
<4> String. The group where the `device-class` creates the logical volumes.
28+
<5> Unsigned 64-bit integer. Storage capacity in GiB to be left unallocated in the volume group. Defaults to `0`.
29+
<6> Boolean. Indicates that the `device-class` is used by default. Defaults to `false`. At least one value must be entered in the YAML file values when this is set to `true`.
30+
//Q: still true that value defaults to false?
31+
32+
[IMPORTANT]
33+
====
34+
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.
35+
====

modules/microshift-lvms-configuring.adoc

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)