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

Provide etcd to K8S backend migration script #341

Closed
phoenix-bjoern opened this issue Oct 13, 2022 · 6 comments
Closed

Provide etcd to K8S backend migration script #341

phoenix-bjoern opened this issue Oct 13, 2022 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@phoenix-bjoern
Copy link
Contributor

Using the K8S backend (=etcd) option makes a lot of sense in many ways, so it should be the new default for the Operator v2. Removing the bundled etcd of Piraeus simplifies the storage setup and reduces the risk of failure.
However, a migration of existing installations is currently not possible. Removing all existing resources and recreate them is not a a viable option for production systems. So the way for migration is a migration script which copies all data in the Piraeus etcd to the K8S backend.

@WanzenBug WanzenBug added this to the 2.0 milestone Oct 13, 2022
@WanzenBug WanzenBug added the enhancement New feature or request label Oct 13, 2022
@kvaps
Copy link
Member

kvaps commented Jul 22, 2023

I did something like that one time
https://github.com/kvaps/linstor-backup-script

@phoenix-bjoern
Copy link
Contributor Author

@kvaps interesting, thanks for sharing. What will happen to existing DRBD resources when you restore the Linstor resources? Will they get recognized and used like before?

@kvaps
Copy link
Member

kvaps commented Jul 22, 2023

Yes, but you need to preserve all the parameters like node_ids and so on

@kvaps
Copy link
Member

kvaps commented Jul 22, 2023

Just updated license from gpl-3.0 to apache2 so you can freely use this code in this repo.
It's pretty old, but I think it might be useful.

I successfully migrated from h2 to postgresql two years ago, and didn't use it anymore 😅

@WanzenBug
Copy link
Member

LINSTOR 1.24.0-rc.2 ships with an experimental DB export & import tool. With that we can work on an automatic migration for LINSTOR resources.

@WanzenBug
Copy link
Member

Fixed by #558

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

No branches or pull requests

3 participants