Skip to content

Commit e431dbd

Browse files
committed
TELCODOCS#1842: Minimum provisioning size for PVCs
1 parent 1d74776 commit e431dbd

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

modules/lvms-provisioning-storage-using-logical-volume-manager-operator.adoc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
After you have created the LVM volume groups using the `LVMCluster` custom resource (CR), you can provision the storage by creating persistent volume claims (PVCs).
1010

11+
The following are the minimum storage sizes that you can request for each file system type:
12+
13+
* `block`: 8 MiB
14+
* `xfs`: 300 MiB
15+
* `ext4`: 32 MiB
16+
1117
To create a PVC, you must create a `PersistentVolumeClaim` object.
1218

1319
.Prerequisites
@@ -35,12 +41,15 @@ spec:
3541
resources:
3642
requests:
3743
storage: 10Gi <3>
38-
storageClassName: lvms-vg1 <4>
44+
limits:
45+
storage: 20Gi <4>
46+
storageClassName: lvms-vg1 <5>
3947
----
4048
<1> Specify a name for the PVC.
4149
<2> To create a block PVC, set this field to `Block`. To create a file PVC, set this field to `Filesystem`.
42-
<3> Specify the storage size. The total storage size that you can provision is limited by the size of the Logical Volume Manager (LVM) thin pool and the overprovisioning factor.
43-
<4> The value of the `storageClassName` field must be in the format `lvms-<device_class_name>`, where, `<device_class_name>` is the value of the `deviceClasses.name` field in the `LVMCluster` CR.
50+
<3> Specify the storage size. If the value is less than the minimum storage size, the requested storage size is rounded to the minimum storage size. The total storage size you can provision is limited by the size of the Logical Volume Manager (LVM) thin pool and the over-provisioning factor.
51+
<4> Optional: Specify the storage limit. Set this field to a value that is greater than or equal to the minimum storage size. Otherwise, PVC creation fails with an error.
52+
<5> The value of the `storageClassName` field must be in the format `lvms-<device_class_name>` where `<device_class_name>` is the value of the `deviceClasses.name` field in the `LVMCluster` CR.
4453
For example, if the `deviceClasses.name` field is set to `vg1`, you must set the `storageClassName` field to `lvms-vg1`.
4554
+
4655
[NOTE]

0 commit comments

Comments
 (0)