-
Notifications
You must be signed in to change notification settings - Fork 101
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
[BUG] Restore failed! #563
Comments
@lixiaoyuner I don't understand how you're running an etcd cluster with only two members. Also, you cannot restore the same backup for two different members of the same etcd cluster - this will not work due to mismatch in the metadata of the etcd members. You will need to restore one member, then start etcd for this first member (which will be the etcd cluster leader) and wait for it to become healthy, and then simply start the second member as a learner, while ensuring that the clustering configuration is provided correctly. This will allow the second member to join as a non-voting follower and sync up its data with the leader. Once this is successful, you can promote the learner to voting member.
|
Closing this issue for now. Feel free to re-open it if you feel there's a bug in the way etcd-backup-restore works. |
The problem with cluster of 2 members is if 1 member get down then you ends up losing quorum. Then learner approach will also not work in this case as to add a learner you must have a leader in the cluster but you already lose quorum. |
Describe the bug:
I have a k8s cluster, there are only two masters(vm1&vm2) in the cluster, it means there are two etcd nodes, I run below command on one of the masters to upload backup files
I destroy the k8s cluster and try to use below command to restore the two master
I thought this would initialize the data directory, but it tries to boot etcd server like below
How can I correctly initialize data directory only?
Environment (please complete the following information):
Anything else we need to know?:
The text was updated successfully, but these errors were encountered: