nutanix / csi-plugin

MIT License
17 stars 10 forks source link

mounting RWO volumes should not work from different nodes #46

Open ebartz opened 2 years ago

ebartz commented 2 years ago

I was able to mount a RWO created iSCSI volume on two nodes in parallel. While it is technically possible, this is also a bad idea.

None of the existing options leverage a cluster filesystem. So mounting an ext4 oder xfs volume from two nodes in parallel can lead to a corrupted filesystem and can cause data loss.

This does not mean that it should not be possible to mount the same volume from more than one pod. But the CSI integration should make the mount task fails if the volume is already mounted on a different host.