Skip to content
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

Can not use PVC for multi Pods #749

Open
quinhn-vnp opened this issue Dec 18, 2024 · 6 comments
Open

Can not use PVC for multi Pods #749

quinhn-vnp opened this issue Dec 18, 2024 · 6 comments

Comments

@quinhn-vnp
Copy link

I want to deploy an application with 2 pods on 1 pvc but it's not working.

  • Piraeus deploy by Helm
  • piraeus-server:v1.29.2, drbd-reactor:v1.6.0, drbd9-noble:v9.2.12

image

image

Please help to advise.
Thanks.

@WanzenBug
Copy link
Member

RWX is not supported. I think we have a bug somewhere in the CSI driver, because it simply should not allow you to create such volumes in the first place.

@quinhn-vnp
Copy link
Author

thanks, @WanzenBug.
I already tried with RWO pvc but it's still the same issues.

@WanzenBug
Copy link
Member

Yes. Because RWO means only one node can use the volume at a time. On that node, there can be many Pods using the same volume. But if there is no scheduling constraint with some inter-pod affinity, the two Pods may be moved to different Nodes, and then you get this error.

In general, having two Pods access the same volume is almost always a bad idea. It's a poor API, and it is slow, too.

@quinhn-vnp
Copy link
Author

@WanzenBug, that mean Linstor does not support to share pvc to multi nodes, right?

@WanzenBug
Copy link
Member

Yes, that is right.

@quinhn-vnp
Copy link
Author

@WanzenBug, thank for your advise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants