Skip to content

Update lvms-scaling-storage-of-clusters-using-rhacm.adoc #93701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions modules/lvms-scaling-storage-of-clusters-using-rhacm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You can scale up the storage capacity of worker nodes on the clusters by using {
+
[source,terminal]
----
$ oc edit -f <file_name> -ns <namespace> <1>
$ oc edit -f <file_name> -n <namespace> <1>
----
<1> Replace `<file_name>` with the name of the `LVMCluster` CR.

Expand All @@ -31,27 +31,27 @@ $ oc edit -f <file_name> -ns <namespace> <1>
[source,yaml]
----
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:
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
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> Contains the configuration to specify the paths to the devices that you want to add to the LVM volume group.
Expand All @@ -66,4 +66,4 @@ You can specify the device paths in the `paths` field, the `optionalPaths` field
After a device is added to the LVM volume group, it cannot be removed.
====

. Save the `LVMCluster` CR.
. Save the `LVMCluster` CR.