Resolving the Multi-Attach error for volume error
Issue description
When trying to use a persistent volume on multiple pods at once, you see errors like this:
Multi-Attach error for volume "<volume-name>" Volume is already used by pod(s) <pod1>, <pod2>;Multi-Attach error for volume "<volume-name>" Volume is already exclusively attached to one node and can't be attached to another.
Solution
By default, storage classes that are based on network disks come with the cluster, and they do not support multiple access mode. We provide more details about it in this Managed Service for Kubernetes guide. This is a limitation of our driver
If you need to use ReadWriteMany, we recommend using CSI for our object storage because the volumes based on it support this access mode:
Automatic installation via the marketplace or Helm chart is described here, and manual integration is described here.
If you need to use ReadWriteMany, we recommend using CSI for our object storage because the volumes based on it support this access mode. For automatic installation from our marketplace or Helm chart, see this guide; for manual integration, refer to this article.
If the issue persists
If the actions described above did not help solve the issue, you can try to organize storage on your own. Some of the possible solutions also support multiple access (for example, nfs or CEPH). You can read more about this in the k8s official documentation