metal-stack / csi-driver-lvm

MIT License
121 stars 26 forks source link

Resize failing despite free VG space #52

Closed superxor closed 3 years ago

superxor commented 3 years ago

Hi, I set this up on multiple identical nodes which all have 6TB VGs. I had some PVCs at 512GB and wanted to resize them all to 1TB but I always end up with this error:

csi-driver-lvm-plugin-6l8pq csi-driver-lvm-plugin E0510 12:41:07.171962 1 server.go:114] GRPC error: rpc error: code = OutOfRange desc = Requested capacity 1099511627776 exceeds maximum allowed 1099511627776

The same number appears no matter what size I choose.

My VGs are all half empty: VG #PV #LV #SN Attr VSize VFree csi-lvm 3 5 0 wz--n- <5.24t <3.49t

Any ideas where this is coming from?

mwennrich commented 3 years ago

It's currently hard-coded: https://github.com/metal-stack/csi-driver-lvm/blob/master/pkg/lvm/controllerserver.go#L35

True, this should better be at least a helm variable.

superxor commented 3 years ago

But it only says 'tib'...so its 1 by default or how does that work? So nobody tested LVs > 1TB so far? Or what am I missing