accessMode/volume Mode #663
-
Hello there. I was curious about how to set the accessMode and volumeMode in the storage class (or perhaps i should not and do it explicitly in the POD or elsewhere?) and how to know what is supportted - i saw in the csi/csi.go there is code for the different Volume and Access modes, however i wasnt sure if i can read that the underlying device-class and fs-type is what determines what value to put? Some pointers are helpful! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi lmcdasm, TopoLMV supports below modes in PVC. Filesystem format (ext4, xfs...) can be specify in SC of TopoLVM.
About accessMode, you may able to specify ReadOnlyMany or ReadWriteMany. TopoLVM does not explicitly reject these values. But PVs made by TopoLVM are bonded to the node having actual lv. So practically ReadOnlyMany and ReadWriteMany are nonsense.
|
Beta Was this translation helpful? Give feedback.
-
Hello @llamerada-jp Thanks so much! Thats exactly what i was on the hunt for and wasnt able to find it so clearly laid out! I was looking to get to the underlying implementation yes, so you just helped me with both, let me digest! Amazing, thanks again! |
Beta Was this translation helpful? Give feedback.
Hi lmcdasm,
TopoLMV supports below modes in PVC. Filesystem format (ext4, xfs...) can be specify in SC of TopoLVM.
About accessMode, you may able to specify ReadOnlyMany or ReadWriteMany. TopoLVM does not explicitly reject these values. But PVs made by TopoLVM are bonded to the node having actual lv. So practically ReadOnlyMany and ReadWriteMany are nonsense.
If you are interested in the CSI driver implementation, please refer to the following document.
CreateVolumeRequest.volume_capabilities.access_mode is specified based on accessMode of PVC. You should return …