Skip to content

Commit fea39f8

Browse files
authored
Merge pull request #91258 from lpettyjo/OSDOCS-13191
OSDOCS-13191#Resizing recovery
2 parents c8134e4 + dd40bf5 commit fea39f8

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

modules/storage-expanding-csi-volumes.adoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@
1010

1111
You can use the Container Storage Interface (CSI) to expand storage volumes after they have already been created.
1212

13-
CSI volume expansion does not support the following:
14-
15-
* Recovering from failure when expanding volumes
16-
17-
* Shrinking
13+
Shrinking persistent volumes (PVs) is _not_ supported.
1814

1915
.Prerequisites
2016

21-
* The underlying CSI driver supports resize.
17+
* The underlying CSI driver supports resize. See "CSI drivers supported by {product-title}" in the "Additional Resources" section.
2218
2319
* Dynamic provisioning is used.
2420
@@ -28,4 +24,4 @@ CSI volume expansion does not support the following:
2824

2925
. For the persistent volume claim (PVC), set `.spec.resources.requests.storage` to the desired new size.
3026

31-
. 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 expansion completes.
27+
. 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 expansion completes.

modules/storage-expanding-recovering-failure.adoc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@
77
[id="expanding-recovering-from-failure_{context}"]
88
= Recovering from failure when expanding volumes
99

10-
If expanding underlying storage fails, the {product-title} administrator can manually recover the persistent volume claim (PVC) state and cancel the resize requests. Otherwise, the resize requests are continuously retried by the controller.
10+
If a resize request fails or remains in a pending state, you can try again by entering a different resize value in `.spec.resources.requests.storage` for the persistent volume claim (PVC). The new value must be larger than the original volume size.
11+
12+
If you are still having issues, use the following procedure to recover.
1113

1214
.Procedure
15+
If entering another smaller resize value in `.spec.resources.requests.storage` for the PVC does not work, do the following:
16+
17+
. Mark the persistent volume (PV) that is bound to the PVC with the `Retain` reclaim policy. Change `persistentVolumeReclaimPolicy` to `Retain`.
1318

14-
. Mark the persistent volume (PV) that is bound to the PVC with the `Retain` reclaim policy. This can be done by editing the PV and changing `persistentVolumeReclaimPolicy` to `Retain`.
1519
. Delete the PVC.
20+
1621
. Manually edit the PV and delete the `claimRef` entry from the PV specs to ensure that the newly created PVC can bind to the PV marked `Retain`. This marks the PV as `Available`.
22+
1723
. Re-create the PVC in a smaller size, or a size that can be allocated by the underlying storage provider.
24+
1825
. Set the `volumeName` field of the PVC to the name of the PV. This binds the PVC to the provisioned PV only.
26+
1927
. Restore the reclaim policy on the PV.

storage/expanding-persistent-volumes.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ include::modules/storage-expanding-recovering-failure.adoc[leveloffset=+1]
2323
endif::openshift-enterprise,openshift-webscale,openshift-origin[]
2424

2525
[role="_additional-resources"]
26-
.Additional resources
26+
[id="additional-resources_{context}"]
27+
== Additional resources
28+
* xref:../storage/expanding-persistent-volumes.adoc#add-volume-expansion_expanding-persistent-volumes[Enabling volume expansion support]
2729

28-
* The controlling `StorageClass` object has `allowVolumeExpansion` set to `true` (see xref:../storage/expanding-persistent-volumes.adoc#add-volume-expansion_expanding-persistent-volumes[Enabling volume expansion support]).
30+
* xref:../storage/container_storage_interface/persistent-storage-csi.adoc#csi-drivers-supported_persistent-storage-csi[CSI drivers supported by {product-title}]

0 commit comments

Comments
 (0)