Skip to content

Commit ce90580

Browse files
authored
Merge pull request #56465 from amolnar-rh/OCPBUGS-5981
OCPBUGS-5981: Add to LVM Storage docs how to expand a PVC
2 parents d06a22e + e11f9f3 commit ce90580

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="lvms-scaling-expand-pvc_{context}"]
7+
= Expanding PVCs
8+
9+
To leverage the new storage after adding additional capacity, you can expand existing persistent volume claims (PVCs) with LVM Storage.
10+
11+
.Prerequisites
12+
13+
* Dynamic provisioning is used.
14+
* The controlling `StorageClass` object has `allowVolumeExpansion` set to `true`.
15+
16+
.Procedure
17+
18+
. Modify the `.spec.resources.requests.storage` field in the desired PVC resource to the new size by running the following command:
19+
+
20+
[source,terminal]
21+
----
22+
oc patch <pvc_name> -n <application_namespace> -p '{ "spec": { "resources": { "requests": { "storage": "<desired_size>" }}}}'
23+
----
24+
25+
. Watch the `status.conditions` field of the PVC to see if the resize has completed. {product-title} adds the `Resizing` condition to the PVC during expansion, which is removed after the expansion completes.

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ include::modules/lvms-scaling-storage-of-single-node-openshift-cluster-using-rha
8585
8686
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc#lvms-reference-file_logical-volume-manager-storage[{lvms} reference YAML file]
8787
88+
include::modules/lvms-scaling-storage-expand-pvc.adoc[leveloffset=+2]
89+
90+
[role="_additional-resources"]
91+
.Additional resources
92+
93+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.html#lvms-scaling-storage-of-single-node-openshift-cluster_logical-volume-manager-storage[Scaling up storage by adding capacity to your {sno} cluster]
94+
95+
* xref:../../../storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.html#lvms-scaling-storage-of-single-node-openshift-cluster-using-rhacm_logical-volume-manager-storage[Scaling up storage by adding capacity to your single-node OpenShift cluster using RHACM]
96+
97+
* xref:../../../storage/expanding-persistent-volumes.adoc#add-volume-expansion_expanding-persistent-volumes[Enabling volume expansion support]
98+
8899
//Upgrading
89100
include::modules/lvms-upgrading-lvms-on-sno.adoc[leveloffset=+1]
90101

0 commit comments

Comments
 (0)