Skip to content

Commit 4cf6c4c

Browse files
Merge pull request #71942 from sr1kar99/doc_improv_2
OCPBUGS#27913: Doc improvements related to "Scaling up storage of clusters"
2 parents 2171ef3 + 05315a2 commit 4cf6c4c

8 files changed

+139
-79
lines changed

_attributes/common-attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ endif::[]
198198
//:openshift-networking: OKD Networking
199199
//endif::[]
200200
// logical volume manager storage
201-
:lvms-first: Logical volume manager storage (LVM Storage)
201+
:lvms-first: Logical Volume Manager (LVM) Storage
202202
:lvms: LVM Storage
203203
//Operator SDK version
204204
:osdk_ver: 1.31.0
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="lvms-about-scaling-storage-of-cluster_{context}"]
7+
= Scaling up the storage of clusters
8+
9+
{product-title} supports additional worker nodes for clusters on bare metal user-provisioned infrastructure. You can scale up the storage of clusters either by adding new worker nodes with available storage or by adding new devices to the existing worker nodes.
10+
11+
{lvms-first} detects and uses additional worker nodes when the nodes become active.
12+
13+
To add a new device to the existing worker nodes on a cluster, you must add the path to the new device in the `deviceSelector` field of the `LVMCluster` custom resource (CR).
14+
15+
[IMPORTANT]
16+
====
17+
You can add the `deviceSelector` field in the `LVMCluster` CR only while creating the `LVMCluster` CR. If you have not added the `deviceSelector` field while creating the `LVMCluster` CR, you must delete the `LVMCluster` CR and create a new `LVMCluster` CR containing the `deviceSelector` field.
18+
====
19+
20+
If you do not add the `deviceSelector` field in the `LVMCluster` CR, {lvms} automatically adds the new devices when the devices are available.
21+
[NOTE]
22+
====
23+
{lvms} adds only the supported devices. For information about unsupported devices, see "Devices not supported by LVM Storage" in the "Additional resources" section.
24+
====
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="lvms-scaling-storage-of-clusters-using-cli_{context}"]
7+
= Scaling up the storage of clusters by using the CLI
8+
9+
You can scale up the storage capacity of the worker nodes on a cluster by using the OpenShift CLI (`oc`).
10+
11+
.Prerequisites
12+
13+
* You have additional unused devices on each cluster to be used by {lvms-first}.
14+
* You have installed the OpenShift CLI (`oc`).
15+
* You have created an `LVMCluster` custom resource (CR).
16+
17+
.Procedure
18+
19+
. Edit the `LVMCluster` CR by running the following command:
20+
+
21+
[source, terminal]
22+
----
23+
$ oc edit <lvmcluster_file_name> -n <namespace>
24+
----
25+
26+
. Add the path to the new device in the `deviceSelector` field.
27+
+
28+
include::snippets/lvms-scaling-up-storage-lvmcluster-cr-snippet.adoc[]
29+
30+
. Save the `LVMCluster` CR.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="lvms-scaling-storage-of-clusters-using-web-console_{context}"]
7+
= Scaling up the storage of clusters by using the web console
8+
9+
You can scale up the storage capacity of the worker nodes on a cluster by using the {product-title} web console.
10+
11+
.Prerequisites
12+
13+
* You have additional unused devices on each cluster to be used by {lvms-first}.
14+
* You have created an `LVMCluster` custom resource (CR).
15+
16+
.Procedure
17+
18+
. Log in to the {product-title} web console.
19+
. Click *Operators* -> *Installed Operators*.
20+
. Click *LVM Storage* in the `openshift-storage` namespace.
21+
. Click the *LVMCluster* tab to view the `LVMCluster` CR created on the cluster.
22+
. From the *Actions* menu, select *Edit LVMCluster*.
23+
. Click the *YAML* tab.
24+
. Edit the `LVMCluster` CR to add the new device path in the `deviceSelector` field:
25+
+
26+
include::snippets/lvms-scaling-up-storage-lvmcluster-cr-snippet.adoc[]
27+
. Click *Save*.

modules/lvms-scaling-storage-of-single-node-open-concept.adoc

Lines changed: 0 additions & 10 deletions
This file was deleted.

modules/lvms-scaling-storage-of-single-node-openshift-cluster.adoc

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
:_mod-docs-content-type: SNIPPET
2+
.Example `LVMCluster` CR
3+
[source,yaml]
4+
----
5+
apiVersion: lvm.topolvm.io/v1alpha1
6+
kind: LVMCluster
7+
metadata:
8+
name: my-lvmcluster
9+
spec:
10+
storage:
11+
deviceClasses:
12+
# ...
13+
deviceSelector: <1>
14+
paths: <2>
15+
- /dev/disk/by-path/pci-0000:87:00.0-nvme-1
16+
- /dev/disk/by-path/pci-0000:88:00.0-nvme-1
17+
optionalPaths: <3>
18+
- /dev/disk/by-path/pci-0000:89:00.0-nvme-1
19+
- /dev/disk/by-path/pci-0000:90:00.0-nvme-1
20+
# ...
21+
----
22+
<1> Contains the configuration to specify the paths to the devices that you want to add to the LVM volume group.
23+
You can specify the device paths in the `paths` field, the `optionalPaths` field, or both. If you do not specify the device paths in both `paths` and `optionalPaths`, {lvms-first} adds the supported unused devices to the LVM volume group. {lvms} adds the devices to the LVM volume group only if the following conditions are met:
24+
* The device path exists.
25+
* The device is supported by {lvms}. For information about unsupported devices, see "Devices not supported by {lvms}" in the "Additional resources" section.
26+
<2> Specify the device paths. If the device path specified in this field does not exist, or the device is not supported by {lvms}, the `LVMCluster` CR moves to the `Failed` state.
27+
<3> Specify the optional device paths. If the device path specified in this field does not exist, or the device is not supported by {lvms}, {lvms} ignores the device without causing an error.
28+
+
29+
[IMPORTANT]
30+
====
31+
After a device is added to the LVM volume group, it cannot be removed.
32+
====
33+
34+

storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,11 @@ include::modules/lvms-installing-logical-volume-manager-operator-disconnected-en
3939
4040
* xref:../../../openshift_images/image-configuration.adoc#images-configuration-registry-mirror_image-configuration[Configuring image registry repository mirroring]
4141
42-
4342
include::modules/lvms-installing-logical-volume-manager-operator-using-rhacm.adoc[leveloffset=+2]
4443

45-
[role="_additional-resources"]
46-
.Additional resources
47-
4844
* link:https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/{rh-rhacm-version}/html/install/installing#installing-while-connected-online[Red Hat Advanced Cluster Management for Kubernetes: Installing while connected online]
4945
50-
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the `LVMCluster` custom resource]
51-
46+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the LVMCluster custom resource]
5247
5348
// Creating an LVMCluster custom resource
5449

@@ -84,19 +79,36 @@ include::modules/lvms-integrating-software-raid-arrays.adoc[leveloffset=+1]
8479
include::modules/lvms-provisioning-storage-using-logical-volume-manager-operator.adoc[leveloffset=+1]
8580

8681
//Scaling
87-
include::modules/lvms-scaling-storage-of-single-node-open-concept.adoc[leveloffset=+1]
82+
include::modules/lvms-about-scaling-storage-of-clusters.adoc[leveloffset=+1]
8883

8984
[role="_additional-resources"]
9085
.Additional resources
9186

9287
* xref:../../../nodes/nodes/nodes-sno-worker-nodes.adoc[Adding worker nodes to {sno} clusters]
9388
94-
include::modules/lvms-scaling-storage-of-single-node-openshift-cluster.adoc[leveloffset=+2]
89+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-unsupported-devices_logical-volume-manager-storage[Devices not supported by {lvms}]
90+
91+
include::modules/lvms-scaling-storage-of-clusters-using-cli.adoc[leveloffset=+2]
9592

9693
[role="_additional-resources"]
9794
.Additional resources
9895

99-
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the `LVMCluster` custom resource]
96+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the LVMCluster custom resource]
97+
98+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-unsupported-devices_logical-volume-manager-storage[Devices not supported by {lvms}]
99+
100+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-integrating-software-raid-arrays_logical-volume-manager-storage[Integrating software RAID arrays with {lvms}]
101+
102+
include::modules/lvms-scaling-storage-of-clusters-using-web-console.adoc[leveloffset=+2]
103+
104+
[role="_additional-resources"]
105+
.Additional resources
106+
107+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-unsupported-devices_logical-volume-manager-storage[Devices not supported by {lvms}]
108+
109+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-integrating-software-raid-arrays_logical-volume-manager-storage[Integrating software RAID arrays with {lvms}]
110+
111+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the LVMCluster custom resource]
100112
101113
include::modules/lvms-scaling-storage-of-single-node-openshift-cluster-using-rhacm.adoc[leveloffset=+2]
102114

@@ -107,15 +119,13 @@ include::modules/lvms-scaling-storage-of-single-node-openshift-cluster-using-rha
107119
108120
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#about-lvmcluster_logical-volume-manager-storage[About the `LVMCluster` custom resource]
109121
110-
// Expanding PVC
122+
// Expanding PVCs
111123
include::modules/lvms-scaling-storage-expand-pvc.adoc[leveloffset=+1]
112124

113125
[role="_additional-resources"]
114126
.Additional resources
115127

116-
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-scaling-storage-of-single-node-openshift-cluster_logical-volume-manager-storage[Scaling up storage by adding capacity to your cluster]
117-
118-
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-scaling-storage-of-single-node-openshift-cluster-using-rhacm_logical-volume-manager-storage[Scaling up storage by adding capacity to your cluster using {rh-rhacm}]
128+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-about-scaling-storage-of-cluster_logical-volume-manager-storage[Scaling up the storage of clusters]
119129
120130
* xref:../../../storage/expanding-persistent-volumes.adoc#add-volume-expansion_expanding-persistent-volumes[Enabling volume expansion support]
121131

0 commit comments

Comments
 (0)