What Should I Do If a Storage Volume Cannot Be Mounted or the Mounting Times Out?
Fault Locating
Abnormal EVS Storage Volume Mounting
Symptom | Possible Cause | Solution |
---|---|---|
Mounting an EVS volume to a StatefulSet times out. | The node and the volume are in different AZs, causing a timeout during the mounting process and preventing the volume from being mounted to the workload. | Create a volume in the same AZ as the node and mount the volume to the node. |
A pod fails to be created, and an event similar to the following is displayed, indicating that the volume fails to be mounted to the pod is reported.
| The number of pods of the Deployment that uses an EVS volume is greater than 1. If the Deployment uses an EVS volume, there can only be one Deployment pod. If you specify more than two pods for the Deployment, it will still be created. However, if these pods are scheduled on different nodes, some of them will fail to start because the EVS volume they rely on cannot be mounted to those nodes. | Set the number of pods of the Deployment that uses an EVS volume to 1 or use other types of volumes. |
A pod fails to be created, and information similar to the following is displayed:
| The disk file system has been corrupted. | Back up the disk in EVS and restore the file system:
|
Abnormal SFS Turbo Storage Volume Mounting
Symptom | Possible Cause | Solution |
---|---|---|
|
|
|
Storage Volume Mounting Timed Out
If the volume to be mounted stores too much data and involves permission-related configurations, the file permissions need to be modified one by one, which results in mounting timeout.
Fault locating
- Check whether the securityContext field contains runAsuser and fsGroup. securityContext is a Kubernetes field that defines the permission and access control settings of pods or containers.
- Check whether the startup commands contain commands used to obtain or modify file permissions, such as ls, chmod, and chown.
Solution
Determine whether to modify the settings based on your service requirements.
- Fault Locating
- Abnormal EVS Storage Volume Mounting
- Abnormal SFS Turbo Storage Volume Mounting
- Storage Volume Mounting Timed Out