Skip to content

Commit 4eb462e

Browse files
authored
Merge pull request #85366 from sr1kar99/2092-metadatasize-params
TELCODOCS#2092: Configuring metadatasize for the thin pool
2 parents 939085e + f9da163 commit 4eb462e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

modules/lvms-about-lvmcluster-cr.adoc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,27 @@ For more information, see "Overview of chunk size".
140140

141141
|`thinPoolConfig.chunkSizeCalculationPolicy`
142142
|`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`.
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`.
144144

145145
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.
146146

147147
If this field is set to `Host`, the chunk size is calculated based on the configuration in the `lvm.conf` file.
148148

149149
For more information, see "Limitations to configure the size of the devices used in LVM Storage".
150150

151-
|====
151+
|`thinPoolConfig.metadataSize`
152+
|`integer`
153+
|Specifies the metadata size for the thin pool. You can configure this field only when the `MetadataSizeCalculationPolicy` field is set to `Static`.
152154

155+
If this field is not configured, and the `MetadataSizeCalculationPolicy` field is set to `Static`, the default metadata size is set to 1 GiB.
153156

157+
The value for this field must be configured in the range of 2 MiB to 16 GiB due to the underlying limitations of `lvm2`. You can only increase the value of this field during updates.
154158

159+
|`thinPoolConfig.metadataSizeCalculationPolicy`
160+
|`string`
161+
|Specifies the policy to calculate the metadata size for the underlying volume group. You can set this field to either `Static` or `Host`. By default, this field is set to `Host`.
155162

163+
If this field is set to `Static`, the metadata size is calculated based on the value of the `thinPoolConfig.metadataSize` field.
164+
165+
If this field is set to `Host`, the metadata size is calculated based on the `lvm2` settings.
166+
|====

snippets/lvms-creating-lvmcluster.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ spec:
3939
overprovisionRatio: 10
4040
chunkSize: 128Ki <1>
4141
chunkSizeCalculationPolicy: Static <1>
42+
metadataSize: 1Gi <1>
43+
metadataSizeCalculationPolicy: Host <1>
4244
----
4345
<1> Optional field

0 commit comments

Comments
 (0)