You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a workaround works for me is to copy the db file form /home/etcd_data/member/snap/ to /home/etcd_data_backup/member/snap/, but I am not sure is it correct way?
The text was updated successfully, but these errors were encountered:
a workaround works for me is to copy the db file form /home/etcd_data/member/snap/ to /home/etcd_data_backup/member/snap/, but I am not sure is it correct way?
@zhousoft I believe that you are running into a known issue that to restore etcd v3 you require v3 data. Please review the note in the upgrade doc below. I understand you are not upgrading from v2 but as you only have v2 data the problem is the same.
So to answer your original question I believe you could also do a v3 snapshot when the node is still running as an alternative to copying the directory. This would give you latest v3 snapshot then restore v2 as you are doing.
$ ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save /home/etcd_data_backup/member/snap/db
etcd version:
step 1.
I start a new etcd node and set several data(only V2 data),make sure there is no snapshot file,then make a backup.
kill the old etcd process, start a new etcd:
it wokers well, the data set before has be recovered.
step 2.
Removing all data dir created in setp 1 and start a new etcd with "--snapshot-count '10'" and set enough data to generate snapshot file,then:
kill the old etcd process, try to restore from backup,
restoring failed, get the message as:
a workaround works for me is to copy the db file form /home/etcd_data/member/snap/ to /home/etcd_data_backup/member/snap/, but I am not sure is it correct way?
The text was updated successfully, but these errors were encountered: