Skip to content
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

[Question/Feature Request] Is there a way to send incremental snapshots between two nodes with zfs-local-*? #336

Open
pando85 opened this issue Oct 30, 2023 · 5 comments

Comments

@pando85
Copy link

pando85 commented Oct 30, 2023

I checked the code and I think that it is possible (not tested yet) to send snapshots from one node to another with the Clone implementation for CSI.

Would it be possible to keep in sync does snapshots with the source?

I guess that we will need custom CRDs for this.

My use case would be to have backups in a different ZFS pool or even move loads from one node to another transparently.

@pando85 pando85 changed the title [Question/Feature Request [Question/Feature Request] Is there a way to send incremental snapshots between two nodes with zfs-local-*? Oct 30, 2023
@travisghansen
Copy link
Member

I’ve considered something along these lines but never drew up a proposal. Happy to review some ideas of you send them over.

Alternatively I have considered a setup using something like syncthing (not with zfs, but the local-hostpath) to keep data across nodes in sync and allow workloads to float around.

@pando85
Copy link
Author

pando85 commented Oct 31, 2023

It is difficult for me because I don't know the interns about distributed provisioning in K8s. It would be great if we could do it in a way more integrated with the CSI.

My first approach is to do something like: https://github.com/backube/volsync . Having a ReplicationSource for sending K8s snapshots to the target node. And then, use ReplicationDestination to create a volume in that node based on the ReplicationSource used previously.

This like the first idea that comes to my mind. I want to be as integrated as it can with K8s CSI but I think that we don't have control for sending snapshots to other node or selecting in which node do you want a clone.

Also, this could be integrated here or be something independent. Again, my first thought is having it here because it is going to be coupled.

@travisghansen
Copy link
Member

Are you on k8s slack or discord or similar to have a more thorough conversation about the topic? You can email me details if you wish and I can reach out.

@pando85
Copy link
Author

pando85 commented Mar 3, 2024

I tried to contact you in those channels and I couldn't.
What does it means closed as completed?

@travisghansen travisghansen reopened this Mar 3, 2024
@travisghansen
Copy link
Member

Sure! Just doing some spring cleaning of issues etc. Shout out on discord or whatever and we can further discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants