freenas-provisioner icon indicating copy to clipboard operation
freenas-provisioner copied to clipboard

Compatibility with TrueNas Core v12

Open freenetbrasil opened this issue 5 years ago • 2 comments

Great work! Are there any plans on supporting the v2 api of TrueNas?

freenetbrasil avatar Aug 22 '20 23:08 freenetbrasil

The project over here supports it: https://github.com/democratic-csi/democratic-csi

But there are differences between the projects. The above is more generic and is a full blown csi driver vs the older non-csi stuff (what this project is). And also to avoid the crazy incompatibilities of the freenas api (and to gain far more control over operations generally) the zfs operations are actually performed over ssh instead of using the freenas api. However, the calls that do use the api can leverage both v1 or v2 per a configuration option.

Also, eu falo portugues :)

travisghansen avatar Aug 23 '20 04:08 travisghansen

As an FYI, it you started out using this project and wanted to update your NAS (to a version that only supports the v2 api) but had already created some volumes, I've now implemented a migration script for volumes created with the non-csi drivers (ie: this project, and the iscsi project) to democratic-csi.

It takes a bit of time but I've successfully migrated ~100 volumes in several clusters.

https://github.com/democratic-csi/democratic-csi/blob/master/contrib/freenas-provisioner-to-democratic-csi.sh

travisghansen avatar Mar 18 '21 22:03 travisghansen