Skip to content

Commit f03a09c

Browse files
authored
Merge pull request #78981 from sr1kar99/1889-device-size-config
TELCODOCS#1889: Size info for LVMS
2 parents 8817193 + 458e513 commit f03a09c

File tree

4 files changed

+74
-29
lines changed

4 files changed

+74
-29
lines changed

modules/lvms-about-lvmcluster-cr.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,24 @@ For example, if this field is set to 10, you can provision up to 10 times the am
130130

131131
To disable over-provisioning, set this field to 1.
132132

133+
|`thinPoolConfig.chunkSize`
134+
|`integer`
135+
|Specifies the statically calculated chunk size for the thin pool. This field is only used when the `ChunkSizeCalculationPolicy` field is set to `Static`. The value for this field must be configured in the range of 64 KiB to 1 GiB because of the underlying limitations of `lvm2`.
136+
137+
If you do not configure this field and the `ChunkSizeCalculationPolicy` field is set to `Static`, the default chunk size is set to 128 KiB.
138+
139+
For more information, see "Overview of chunk size".
140+
141+
|`thinPoolConfig.chunkSizeCalculationPolicy`
142+
|`string`
143+
|Specifies the policy to calculate the chunk size for the underlying volume group. You can set this field to either `Static` or `Host`. By default, this field is set to `Static`.
144+
145+
If this field is set to `Static`, the chunk size is set to the value of the `chunkSize` field. If the `chunkSize` field is not configured, chunk size is set to 128 KiB.
146+
147+
If this field is set to `Host`, the chunk size is calculated based on the configuration in the `lvm.conf` file.
148+
149+
For more information, see "Limitations to configure the size of the devices used in LVM Storage".
150+
133151
|====
134152

135153

modules/lvms-limitations-to-configure-size-of-devices.adoc

Lines changed: 47 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
:_mod-docs-content-type: CONCEPT
77
[id="limitations-to-configure-size-of-devices_{context}"]
8-
= Limitations to configure the size of the devices used in LVM Storage
8+
= Limitations to configure the size of the devices used in {lvms}
99

1010
The limitations to configure the size of the devices that you can use to provision storage using {lvms} are as follows:
1111

@@ -23,36 +23,57 @@ ifdef::microshift[]
2323
endif::microshift[]
2424
2525
ifndef::microshift[]
26-
.Size limits for different architectures using the default PE and LE size
27-
[cols="1,1,1,1,1", width="100%", options="header"]
26+
27+
The following tables describe the chunk size and volume size limits for static and host configurations:
28+
29+
.Tested configuration
30+
[cols="1,1", width="100%", options="header"]
31+
|====
32+
33+
|Parameter
34+
|Value
35+
36+
|Chunk size
37+
|128 KiB
38+
39+
|Maximum volume size
40+
|32 TiB
41+
42+
|====
43+
44+
.Theoretical size limits for static configuration
45+
[cols="1,1,1", width="100%", options="header"]
46+
|====
47+
48+
|Parameter
49+
|Minimum value
50+
|Maximum value
51+
52+
|Chunk size
53+
|64 KiB
54+
|1 GiB
55+
56+
|Volume size
57+
|Minimum size of the underlying {op-system-first} system.
58+
|Maximum size of the underlying {op-system} system.
59+
2860
|====
29-
|Architecture
30-
|RHEL 6
31-
|RHEL 7
32-
|RHEL 8
33-
|RHEL 9
3461
35-
|32-bit
36-
|16 TB
37-
|-
38-
|-
39-
|-
62+
.Theoretical size limits for a host configuration
63+
[cols="1,1", width="100%", options="header"]
64+
|====
4065
41-
|64-bit
66+
|Parameter
67+
|Value
4268
43-
|8 EB ^[1]^
69+
|Chunk size
70+
|This value is based on the configuration in the `lvm.conf` file. By default, this value is set to 128 KiB.
4471
45-
100 TB ^[2]^
46-
|8 EB ^[1]^
72+
|Maximum volume size
73+
|Equal to the maximum volume size of the underlying {op-system} system.
4774
48-
500 TB ^[2]^
49-
|8 EB
50-
|8 EB
75+
|Minimum volume size
76+
|Equal to the minimum volume size of the underlying {op-system} system.
5177
5278
|====
53-
[.small]
54-
--
55-
1. Theoretical size.
56-
2. Tested size.
57-
--
58-
endif::microshift[]
79+
endif::microshift[]

snippets/lvms-creating-lvmcluster.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,7 @@ spec:
3737
name: thin-pool-1
3838
sizePercent: 90 <1>
3939
overprovisionRatio: 10
40+
chunkSize: 128Ki <1>
41+
chunkSizeCalculationPolicy: Static <1>
4042
----
4143
<1> Optional field

storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,26 @@ include::modules/lvms-installing-logical-volume-manager-operator-using-rhacm.ado
4747
4848
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the LVMCluster custom resource]
4949
50-
// Limitations to configure the size of the devices to be used in LVM Storage
51-
include::modules/lvms-limitations-to-configure-size-of-devices.adoc[leveloffset=+1]
52-
5350
// About the LVMCluster custom resource
5451

5552
include::modules/lvms-about-lvmcluster-cr.adoc[leveloffset=+1]
5653

5754
[role="_additional-resources"]
5855
.Additional resources
5956

57+
* link:https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/configuring_and_managing_logical_volumes/index#overview-of-chunk-size_creating-and-managing-thin-provisioned-volumes[Overview of chunk size]
58+
59+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#limitations-to-configure-size-of-devices_logical-volume-manager-storage[Limitations to configure the size of the devices used in {lvms}]
60+
6061
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-reusing-vg-from-prev-installation_logical-volume-manager-storage[Reusing a volume group from the previous LVM Storage installation]
6162
6263
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-adding-devices-to-a-vg_logical-volume-manager-storage[About adding devices to a volume group]
6364
6465
* xref:../../../nodes/nodes/nodes-sno-worker-nodes.adoc[Adding worker nodes to {sno} clusters]
6566
67+
// Limitations to configure the size of the devices to be used in LVM Storage
68+
include::modules/lvms-limitations-to-configure-size-of-devices.adoc[leveloffset=+2]
69+
6670
// About adding devices to a volume group
6771
include::modules/lvms-about-adding-devices-to-a-vg.adoc[leveloffset=+2]
6872

0 commit comments

Comments
 (0)