-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
raft will raise panic " Usually you should restore a cluster using one of the voting members' data. But if somehow all voting members' data are lost, and you only have a learner's data, then you have two choice,
etcd/server/etcdserver/api/membership/cluster.go Lines 522 to 524 in 7a3ca53 |
Beta Was this translation helpful? Give feedback.
raft will raise panic "
panic: removed all voters
" when there isn't any voters, so it's expected behaviour.Usually you should restore a cluster using one of the voting members' data. But if somehow all voting members' data are lost, and you only have a learner's data, then you have two choice,
Using command
etcdutl snapshot restore ...
to restore the cluster, refer to https://etcd.io/docs/v3.5/op-guide/recovery/#restoring-a-clusterIf you want to use flag
--force-new-cluster
to bootstrap a new one-member cluster, then you have to do some extra work programatically: you need to promote the learner offline.a). Figure out the learner ID