etcd icon indicating copy to clipboard operation
etcd copied to clipboard

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.

Open strugglingyouth opened this issue 9 years ago • 5 comments

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。

strugglingyouth avatar Jan 23 '17 09:01 strugglingyouth

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

gyuho avatar Jan 23 '17 17:01 gyuho

@strugglingyouth Can you please provide a step by step example for us to reproduce your problem?

xiang90 avatar Jan 24 '17 02:01 xiang90

@strugglingyouth Can you try with 3.0.17 or 3.1.0 release?

xiang90 avatar Jan 24 '17 07:01 xiang90

@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.

strugglingyouth avatar Jan 25 '17 02:01 strugglingyouth

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.

xiang90 avatar Jan 25 '17 02:01 xiang90