Skip to content
Open
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
11 changes: 11 additions & 0 deletions troubleshoot/deployments/cloud-on-k8s/common-problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,14 @@ Check that the role mapping was deleted:
GET /_security/role_mapping/<roleName>
{}
```


## If a volume expansion failed [k8s-common-problems-volume-failed-expansion]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## If a volume expansion failed [k8s-common-problems-volume-failed-expansion]
## Volume expansion failed [k8s-common-problems-volume-failed-expansion]

The original is okay too, but this title format would be more consistent with our other troubleshooting topics, and most of the other ones on this page.


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:

```
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
```

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.