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
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,15 +50,18 @@ spec:
50
50
- name: vg1
51
51
fstype: ext4 <2>
52
52
default: true <3>
53
-
deviceSelector:
53
+
deviceSelector: <4>
54
54
paths:
55
55
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
56
56
- /dev/disk/by-path/pci-0000:88:00.0-nvme-1
57
+
optionalPaths:
58
+
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
59
+
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
57
60
thinPoolConfig:
58
61
name: thin-pool-1
59
62
sizePercent: 90
60
63
overprovisionRatio: 10
61
-
nodeSelector: <4>
64
+
nodeSelector: <5>
62
65
nodeSelectorTerms:
63
66
- matchExpressions:
64
67
- key: app
@@ -72,7 +75,8 @@ When configuring multiple device classes, you must specify the device path for e
72
75
<2> Set `fstype` to `ext4` or `xfs`. By default, it is set to `xfs` if the setting is not specified.
73
76
<3> Mandatory: The `LVMCluster` resource must contain a single default storage class. Set `default: false` for secondary device storage classes.
74
77
If you are upgrading the `LVMCluster` resource from a previous version, you must specify a single default device class.
75
-
<4> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
78
+
<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`, you do not have to specify `optionalPaths`. If you specify `optionalPaths`, you do not have to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, it will add all unused devices on the node.
79
+
<5> Optional: To control what worker nodes the `LVMCluster` CR is applied to, specify a set of node selector labels.
76
80
The specified labels must be present on the node in order for the `LVMCluster` to be scheduled on that node.
Copy file name to clipboardExpand all lines: modules/lvms-installing-logical-volume-manager-operator-using-rhacm.adoc
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,9 @@ spec:
135
135
paths:
136
136
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
137
137
- /dev/disk/by-path/pci-0000:88:00.0-nvme-1
138
+
optionalPaths:
139
+
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
140
+
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
138
141
thinPoolConfig:
139
142
name: thin-pool-1
140
143
sizePercent: 90
@@ -150,7 +153,7 @@ spec:
150
153
severity: low
151
154
----
152
155
<1> Replace the key and value in `PlacementRule.spec.clusterSelector` to match the labels set on the {sno} clusters on which you want to install {lvms}.
153
-
<2> To control or restrict the volume group to your preferred disks, you can manually specify the local paths of the disks in the `deviceSelector` section of the `LVMCluster` YAML.
156
+
<2> 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`, you do not have to specify `optionalPaths`. If you specify `optionalPaths`, you do not have to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, it will add all unused devices on the node.
154
157
<3> To add a node filter, which is a subset of the additional worker nodes, specify the required filter in the `nodeSelector` section. {lvms} detects and uses the additional worker nodes when the new nodes show up.
Copy file name to clipboardExpand all lines: modules/lvms-scaling-storage-of-single-node-openshift-cluster-using-rhacm.adoc
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,20 +10,19 @@ You can scale the storage capacity of your configured worker nodes on a {sno} cl
10
10
11
11
.Prerequisites
12
12
13
-
* You have access to the {rh-rhacm} cluster using an account with `cluster-admin`privilages.
14
-
* You have additional unused disks on each {sno} cluster to be used by {lvms}.
13
+
* You have access to the {rh-rhacm} cluster using an account with `cluster-admin`privileges.
14
+
* You have additional unused devices on each {sno} cluster that {lvms} can use.
15
15
16
16
.Procedure
17
17
18
18
. Log in to the {rh-rhacm} CLI using your {product-title} credentials.
19
-
. Find the disk that you want to add. The disk to be added needs to match with the device name and path of the existing disks.
19
+
. Find the device that you want to add. The device to be added needs to match with the device name and path of the existing devices.
20
20
. To add capacity to the {sno} cluster, edit the `deviceSelector` section of the existing policy YAML, for example, `policy-lvms-operator.yaml`.
21
21
22
22
+
23
23
[NOTE]
24
24
====
25
-
In case the `deviceSelector` field is not included during the `LVMCluster` creation, it is not possible to add the `deviceSelector` section to the CR.
26
-
You need to remove the `LVMCluster` and then recreate from the new CR.
25
+
In case the `deviceSelector` field is not included during the `LVMCluster` creation, it is not possible to add the `deviceSelector` section to the CR. You need to remove the `LVMCluster` and then recreate it from the new CR.
27
26
====
28
27
29
28
+
@@ -130,11 +129,13 @@ spec:
130
129
deviceClasses:
131
130
- name: vg1
132
131
default: true
133
-
deviceSelector:
132
+
deviceSelector: <1>
134
133
paths:
135
134
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
136
135
- /dev/disk/by-path/pci-0000:88:00.0-nvme-1
137
-
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1 # new disk is added
136
+
optionalPaths:
137
+
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
138
+
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
138
139
thinPoolConfig:
139
140
name: thin-pool-1
140
141
sizePercent: 90
@@ -149,6 +150,7 @@ spec:
149
150
remediationAction: enforce
150
151
severity: low
151
152
----
153
+
<1> 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`, you do not have to specify `optionalPaths`. If you specify `optionalPaths`, you do not have to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, it will add all unused devices on the node.
152
154
153
155
. Edit the policy by running the following command:
Copy file name to clipboardExpand all lines: modules/lvms-scaling-storage-of-single-node-openshift-cluster.adoc
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,15 +40,16 @@ spec:
40
40
deviceClasses:
41
41
- name: vg1
42
42
default: true
43
-
deviceSelector:
43
+
deviceSelector: <1>
44
44
paths:
45
-
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1 <1>
45
+
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
46
46
- /dev/disk/by-path/pci-0000:88:00.0-nvme-1
47
-
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1 <2>
47
+
optionalPaths:
48
+
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
49
+
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
48
50
thinPoolConfig:
49
51
name: thin-pool-1
50
52
sizePercent: 90
51
53
overprovisionRatio: 10
52
54
----
53
-
<1> The path can be added by name (`/dev/sdb`) or by path.
54
-
<2> A new disk is added.
55
+
<1> 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`, you do not have to specify `optionalPaths`. If you specify `optionalPaths`, you do not have to specify `paths` but at least one optional path must be present on the node. If you do not specify any paths, it will add all unused devices on the node.
0 commit comments