metal-stack / csi-driver-lvm

MIT License
121 stars 26 forks source link

Can csi-driver-lvm work with existing vg? #37

Closed kesavkolla closed 3 years ago

kesavkolla commented 3 years ago

I've an existing vg where I want the csi-driver-lvm to create lvs for provisioning. Is it possible to omit the devicepattern and give existing vgname? I don't want csi-driver-lvm to manage the vg instead it should use existing vg. I have pvs already allocated into vg and I use some diskspace in that vg for some other mounts. So I can't give raw devices to csi-driver-lvm. Can someone help me in understanding the behavior of csi-driver-lvm if I give existing vgname and empty devicepattern.

majst01 commented 3 years ago

On storageclass creation you can specify the vgname to use, see: https://github.com/metal-stack/csi-driver-lvm/blob/master/helm/csi-driver-lvm/templates/csi-lvm-plugin-deployment.yaml#L75

Gerrit91 commented 3 years ago

Seems to be ok to close this. If not, please re-open.