when etcd version is 3.0 and api version is 2.0, disaster recovery v2 key is failed, but use v3 method is ok. I am very confused.
when etcd version is 3.0 and api version is 2.0, disaster recovery v2 key is failed, but use v3 method is ok. I am very confused.Whether version 3.0 is not use api 2.0 method?
use api 2.0 method , the error is as follows:
2017-01-23 15:36:24.203213 C | etcdmain: database file (/tmp/etcd_backup/member/snap/db index 0) does not match with snapshot (index 2980298).
I would also like to know if there is a way to recover from heat, without rebuilding the new cluster。
I tested setting up v3.0 cluster and wrote v2 keys. And tried recovery and works for me? Do you have exact step to reproduce?
v3.0, v3.1 support v2 API by the way
@strugglingyouth Can you please provide a step by step example for us to reproduce your problem?
@strugglingyouth Can you try with 3.0.17 or 3.1.0 release?
@xiang90
I used 3.0.4 version.
But now I have found the problem. My systems store v2 and v3 data at once ,so use v2's backup method is failed, use v3's backup method is ok. And i delete all data, only use v2's data test ,it is successful.
v2 backup only backups v2 data, not v3. I would still suggest you try etcd 3.0.17.
I am closing this since the problem is resolved.