-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
How do I recovery etcd v2 and v3 data separately ? #9471
Comments
Joining the question. I have also seen the --with-v3 option that etcdctl backup would apparently offer, but it does not appear to be available in etcdctl 3.1.18. I cannot seem to find any documentation that describes the procedure on how to restore a cluster containing both v2 and v3 data. |
I have try this way and it works: Backup process
Recovery process
Maybe it is tricky and not recommended, but for our tech debt(someone mix store v2 and v3 data in production environment), we have handle this situation. @ZiggyMaes maybe my experience will help you :) |
Thank you for your response @GhostComputing , we appreciate it. Could you clarify what you mean by 'dump v2 data from backup and write it back to the cluster'. How does one do this? |
It's very tricky (maybe) ... I just read the etcd v2 data from backup and write them back to v3 cluster (already recover from v3 data), that means, you have to recovery v3 data at first, them recovery v2 data using read-and-write way. @ZiggyMaes |
Ah I see, fair enough! Cheers! |
I just recovered ETCD v2 from backups. Restore seems succesfull. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
My etcd(3.2.9) cluster have v2 and v3 data and will backup v2 and v3 data separately.
Firstly, recovery v3 data:
and it will generate
default.etcd
in the directory.Secondly, recovery v2 data:
it seems that I need to choose my backup dir (although I already have data dir generated by v3 recovery).
I am confused that if I have data dir from two different recovery process, how can I merge them into one data dir ?
I know the v2 backup will backup the v3 data, but maybe it will be risky to lost data (see #7002) and my
etcdctl
don't support--with-v3
option.Related questions and documents:
The text was updated successfully, but these errors were encountered: