You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/lvms-creating-logical-volume-manager-cluster.adoc
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,12 @@ You also can perform the same task by using the {product-title} web console.
35
35
.Procedure
36
36
37
37
. 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
+
+
39
44
.. Save the following YAML in the `lvmcluster.yaml` file:
40
45
+
41
46
[source,yaml]
@@ -71,12 +76,13 @@ spec:
71
76
- test1
72
77
----
73
78
<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.
74
80
Configure the local device paths of the disks as an array of values in the `deviceSelector` field.
75
81
When configuring multiple device classes, you must specify the device path for each device.
76
82
<2> Set `fstype` to `ext4` or `xfs`. By default, it is set to `xfs` if the setting is not specified.
77
83
<3> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
78
84
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.
80
86
<5> Optional: To force wipe the selected disks, set `forceWipeDevicesAndDestroyAllData` to true. This parameter is set to `false` by default.
81
87
<6> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
82
88
The specified labels must be present on the node in order for the `LVMCluster` to be scheduled on that node.
0 commit comments