Skip to content

Commit 057bb7f

Browse files
naemonoCopilotpebrc
authored
ECK: Document recovery from failed volume upsize (#3694)
In elastic/cloud-on-k8s#4467 it's noted that some users are dealing with volume expansion failure issues, and documenting how to recover from this situation would be helpful. This is the attempt to update that documentation. --------- Signed-off-by: Michael Montgomery <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Peter Brachwitz <[email protected]>
1 parent 523e43d commit 057bb7f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

troubleshoot/deployments/cloud-on-k8s/common-problems.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,14 @@ Check that the role mapping was deleted:
306306
GET /_security/role_mapping/<roleName>
307307
{}
308308
```
309+
310+
311+
## Volume expansion failed [k8s-common-problems-volume-failed-expansion]
312+
313+
If you attempted an expansion of an {{es}} data volume via its [volume claim template](/deploy-manage/deploy/cloud-on-k8s/volume-claim-templates.md#k8s-volume-claim-templates-update), you may have encountered scenarios where the operation failed. For example older versions of the Azure Disk CSI driver did not allow volume expansion without shutting down the Virtual Machine to which the volume was attached. If you try to adjust the volume claim template back to the original size you will encounter an error:
314+
315+
```
316+
Failed to apply spec change: handle volume expansion: decreasing storage size is not supported: an attempt was made to decrease storage size for claim elasticsearch-data
317+
```
318+
319+
In this scenario the best course of action is to rename the existing `nodeSet` to a new name while simultaneously updating the volume claim template to the original size. This operation will bring a new `StatefulSet` online while moving all existing data to the new volumes, and will delete the old `StatefulSet` and its volumes once the operation is complete.

0 commit comments

Comments
 (0)