Skip to content

Commit b8261c6

Browse files
Update lvms-scaling-storage-of-clusters-using-rhacm.adoc
- Incorrect command in scaling up the storage of clusters by using RHACM documentation. - Here is the documentation link: https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/storage/configuring-persistent-storage#lvms-scaling-storage-of-clusters-using-rhacm_logical-volume-manager-storage - Command mentioned in step 2 of the procedure and example cr mentioned in the step 3 is incorrect. Here is updated look: 2. Edit the LVMCluster CR that you created using RHACM by running the following command ~~~ $ oc edit -f <file_name> -n <namespace> 1 ~~~ 3. In the LVMCluster CR, add the path to the new device in the deviceSelector field. Example LVMCluster CR ~~~ apiVersion: policy.open-cluster-management.io/v1 kind: ConfigurationPolicy metadata: name: lvms spec: object-templates: - complianceType: musthave objectDefinition: apiVersion: lvm.topolvm.io/v1alpha1 kind: LVMCluster metadata: name: my-lvmcluster namespace: openshift-storage spec: storage: deviceClasses: # ... deviceSelector: (1) paths: (2) - /dev/disk/by-path/pci-0000:87:00.0-nvme-1 optionalPaths: (3) - /dev/disk/by-path/pci-0000:89:00.0-nvme-1 ~~~
1 parent 6e5997e commit b8261c6

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

modules/lvms-scaling-storage-of-clusters-using-rhacm.adoc

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can scale up the storage capacity of worker nodes on the clusters by using {
2121
+
2222
[source,terminal]
2323
----
24-
$ oc edit -f <file_name> -ns <namespace> <1>
24+
$ oc edit -f <file_name> -n <namespace> <1>
2525
----
2626
<1> Replace `<file_name>` with the name of the `LVMCluster` CR.
2727

@@ -31,27 +31,27 @@ $ oc edit -f <file_name> -ns <namespace> <1>
3131
[source,yaml]
3232
----
3333
apiVersion: policy.open-cluster-management.io/v1
34-
kind: ConfigurationPolicy
35-
metadata:
36-
name: lvms
37-
spec:
38-
object-templates:
39-
- complianceType: musthave
40-
objectDefinition:
41-
apiVersion: lvm.topolvm.io/v1alpha1
42-
kind: LVMCluster
43-
metadata:
44-
name: my-lvmcluster
45-
namespace: openshift-storage
46-
spec:
47-
storage:
48-
deviceClasses:
34+
kind: ConfigurationPolicy
35+
metadata:
36+
name: lvms
37+
spec:
38+
object-templates:
39+
- complianceType: musthave
40+
objectDefinition:
41+
apiVersion: lvm.topolvm.io/v1alpha1
42+
kind: LVMCluster
43+
metadata:
44+
name: my-lvmcluster
45+
namespace: openshift-storage
46+
spec:
47+
storage:
48+
deviceClasses:
4949
# ...
50-
deviceSelector: <1>
51-
paths: <2>
52-
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
53-
optionalPaths: <3>
54-
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
50+
deviceSelector: <1>
51+
paths: <2>
52+
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
53+
optionalPaths: <3>
54+
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
5555
# ...
5656
----
5757
<1> Contains the configuration to specify the paths to the devices that you want to add to the LVM volume group.
@@ -66,4 +66,4 @@ You can specify the device paths in the `paths` field, the `optionalPaths` field
6666
After a device is added to the LVM volume group, it cannot be removed.
6767
====
6868

69-
. Save the `LVMCluster` CR.
69+
. Save the `LVMCluster` CR.

0 commit comments

Comments
 (0)