New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating parent dataset to a different pool in TrueNAS #391
Comments
The pv ultimately decides what the backing storage looks like. The settings you set in the csi driver are more like a template for the dynamic provisioning, so these will apply to new dynamic volumes but not to the existing ones. You will need to modify the pv's (not sure that's possible though) to point to the new storage location. However why don't you just resize your existing vdevs instead of creating a new pool? |
Ah okay, that seems to be a bit more involved that I thought. Will need to rethink the migration steps, maybe I can use snapshots to restore states on to new PVs in the new pool.
I am switching the vdev layout for my primary pool (going from RAIDZ1 to mirrored pairs) for easier expansion |
I tried restoring zfs snapshot using
So it looks like I have create to the zvols from the snapshot from scratch. After some reading on similar issues (#289, #300), it looks like specifying the underlying storage is not supported. So it looks like I can either:
Unless I am missing something, restoring democratic-csi backed PVs from backup seems to be a very involved process. |
Just circling back here to report that the migration was successful with the update to |
Thanks for sharing! A couple other relevant resources: |
Hello!
I am using democratic-csi to manage TrueNAS-backed PVs for my k8s cluster. Running 3 variants of the helm chart, one each for NFS, iSCSI and manual PVs. Everything has been pretty smooth so far, thanks for this excellent piece of software!
I now have the need to migrate the PVs onto a different pool, to expand available storage. I have begun the migration with the iSCSI PVs first. I replicated the existing datasets into the new pool and then updated the helm chart to point to the new parent dataset.
Attaching the helm chart values here (fields that I changed are marked as
UPDATED
:Helm values.yaml
After this, I restarted all democratic-csi pods and then restarted all statefulsets which mount these PVs. The pods came up successfully, but when I looked at the iSCSI shares in the TrueNAS GUI, I did not find new shares getting created for the new pool. It looks like the PVs are still using the old datasets. How can I get these PVs to use the new pool?
Thank you
The text was updated successfully, but these errors were encountered: