Skip to content

Commit 046254e

Browse files
authored
Merge pull request #70160 from sr1kar99/add-remove-device_class
2 parents 46df16c + 68ff7aa commit 046254e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

modules/deploying-lvms-on-sno-cluster.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ Before you begin deploying {lvms}, ensure that the following requirements are me
3030
* You have installed {rh-rhacm-first} on an {product-title} cluster.
3131
* Every managed cluster has dedicated disks that are used to provision storage.
3232

33-
Before you deploy {lvms}, be aware of the following limitations:
34-
35-
* You can only create a single instance of the `LVMCluster` custom resource (CR) on an {product-title} cluster.
36-
* When a device becomes part of the `LVMCluster` CR, it cannot be removed.
37-
3833
[id="lvms-deployment-limitations-for-sno-ran_{context}"]
3934
== Limitations
4035

modules/lvms-creating-logical-volume-manager-cluster.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ You also can perform the same task by using the {product-title} web console.
3535
.Procedure
3636

3737
. Create the `LVMCluster` custom resource (CR).
38-
38+
+
39+
[IMPORTANT]
40+
=====
41+
You can only create a single instance of the `LVMCluster` custom resource (CR) on an {product-title} cluster.
42+
=====
43+
+
3944
.. Save the following YAML in the `lvmcluster.yaml` file:
4045
+
4146
[source,yaml]
@@ -71,12 +76,13 @@ spec:
7176
- test1
7277
----
7378
<1> To create multiple device storage classes in the cluster, create a YAML array under `deviceClasses` for each required storage class.
79+
If you add or remove a `deviceClass`, then the update reflects in the cluster only after deleting and recreating the `TopoLVM-Node` pod.
7480
Configure the local device paths of the disks as an array of values in the `deviceSelector` field.
7581
When configuring multiple device classes, you must specify the device path for each device.
7682
<2> Set `fstype` to `ext4` or `xfs`. By default, it is set to `xfs` if the setting is not specified.
7783
<3> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
7884
If you are updating the `LVMCluster` resource from a previous version, you must specify a single default device class.
79-
<4> Optional. To control or restrict the volume group to your preferred devices, you can manually specify the local paths of the devices in the `deviceSelector` section of the `LVMCluster` YAML. The `paths` section refers to devices the `LVMCluster` adds, which means those paths must exist. The `optionalPaths` section refers to devices the `LVMCluster` might add. You must specify at least one of `paths` or `optionalPaths` when specifying the `deviceSelector` section. If you specify `paths`, it is not mandatory to specify `optionalPaths`. If you specify `optionalPaths`, it is not mandatory to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, then the `LVMCluster` adds the unused devices on the node.
85+
<4> Optional. To control or restrict the volume group to your preferred devices, you can manually specify the local paths of the devices in the `deviceSelector` section of the `LVMCluster` YAML. The `paths` section refers to devices the `LVMCluster` adds, which means those paths must exist. The `optionalPaths` section refers to devices the `LVMCluster` might add. You must specify at least one of `paths` or `optionalPaths` when specifying the `deviceSelector` section. If you specify `paths`, it is not mandatory to specify `optionalPaths`. If you specify `optionalPaths`, it is not mandatory to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, then the `LVMCluster` adds the unused devices on the node. After a device is added to the `LVMCluster`, it cannot be removed.
8086
<5> Optional: To force wipe the selected disks, set `forceWipeDevicesAndDestroyAllData` to true. This parameter is set to `false` by default.
8187
<6> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
8288
The specified labels must be present on the node in order for the `LVMCluster` to be scheduled on that node.

0 commit comments

Comments
 (0)