Can v2 data engine be enable with the helm chart?
# longhorn-storage
t
Can v2 data engine be enable with the helm chart?
t
I tried that and it deployed but failed to actually mount the pvcs.
this is what I tested with
Copy code
helm upgrade -i longhorn  longhorn/longhorn -n longhorn-system --create-namespace --set ingress.enabled=true --set ingress.host=longhorn.$domain --set defaultSettings.storageMinimalAvailablePercentage=25 --set defaultSettings.allowCollectingLonghornUsageMetrics=false --set persistence.defaultDataLocality="best-effort" --set persistence.dataEngine=v2
error message :
Copy code
driver.longhorn.io_csi-provisioner-76bf7c68ff-pm7tf_f4e7e443-c5aa-4799-b511-792110c16433  failed to provision volume with StorageClass "longhorn": rpc error: code = Internal desc = Bad response statusCode [500]. Status [500 Internal Server Error]. Body: [code=Internal Server Error, detail=, message=failed to create volume: unable to create volume pvc-b1c61641-aa98-421c-9ec4-c9c6940577f6: admission webhook "<http://validator.longhorn.io|validator.longhorn.io>" denied the request: v2-data-engine data engine is not enabled] from [<http://longhorn-backend:9500/v1/volumes>]
Screenshot 2025-07-25 at 10.47.56 PM.jpg
do you have an example that works?
b
persistence.dataEngine only sets the engine for the default StorageClass. To enable and use the V2 engine, try set defaultSettings.v2DataEngine.