-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to set fsGroup with RWX pvc #178
Comments
Without looking to far into it: RWX volumes are not supported, and probably never will be. The "allow-two-primary" option exists only for very specific edge cases, such as:
Using it with a normal volume is a great way to corrupt your filesystem and lose all data. I'm honestly not sure why it even let's you provision a volume with these settings, I guess that is the real bug... |
Thank you for the reply - its based on kubevirt/containerized-data-importer#2447, so I think my next step is to solve the block-device permissions issue. Is there a reason not to support RWX volumes for this edge case? I have considered NFS storage (ganesha); however, we have found that there is degraded performance in comparison. |
Because it's hard. For the same reason that ganesha is slow, probably. We configure a normal file system on top of DRBD. This is fast and works well, because DRBD ensures that only one node can have the volume mounted. This means you can have the normal advantages of a local file system (like local caching), while the data is replicated in the background. For another node to access the data, the first node needs to unmount the volume, which also ensures all cached data is flushed to disk. Only after the first node has unmounted the volume can the other node can mount the volume itself. As you discovered, there is an escape-hatch with For the issue with block volumes, I suspect it is related to these settings on the driver: https://kubernetes-csi.github.io/docs/support-fsgroup.html#supported-modes We use the |
Hi, I have been trying to provision a RWX pvc, where both devices can temporarily be primary (this is based on issue #159).
The issue I am seeing is the fsGroup does not get set for the RWX volume but it does for RWO volume:
Reproducing the issue
Install Linstor configured with lvm thick pool.
Create StorageClass:
Note: post provisioning, I set the user to root and I could change the fs group manually.
The text was updated successfully, but these errors were encountered: