@@ -36,19 +36,19 @@ The following steps show how to migrate your etcd data from v2 to v3 using `etcd
36
36
37
37
### Migration Process
38
38
39
- 1 . Set up test key using v2 API
39
+ - Step 1: Set up test key using v2 API
40
40
41
41
``` sh
42
42
export ETCDCTL_API=2
43
43
etcdctl --endpoints=http://$ENDPOINT set foo bar
44
44
etcdctl --endpoints=http://$ENDPOINT --output=" json" get foo
45
45
```
46
46
47
- 2 . Stop each etcd node (one at a time)
47
+ - Step 2: Stop each etcd node (one at a time)
48
48
49
49
Before running the migration, stop your etcd node to ensure data consistency.
50
50
51
- 3 . Run the migration tool
51
+ - Step 3: Run the migration tool
52
52
53
53
Switch to API v3 and use etcdctl migrate to transform the v2 store.
54
54
@@ -59,10 +59,10 @@ etcdctl --endpoints=http://$ENDPOINT migrate \
59
59
--wal-dir=" default.etcd/member/wal"
60
60
```
61
61
62
- 4 . Restart etcd node after migrate
62
+ - Step 4: Restart etcd node after migrate
63
63
Repeat steps 2–4 for each etcd node one at a time in your cluster.
64
64
65
- 5 . Confirm the data is accessible via v3 API
65
+ - Step 5: Confirm the data is accessible via v3 API
66
66
67
67
``` sh
68
68
etcdctl --endpoints=$ENDPOINTS get /foo
@@ -92,4 +92,4 @@ etcdctl --endpoints=$ENDPOINTS get /foo
92
92
93
93
## Visual guide for reference
94
94
95
- ![ 12_etcdctl_migrate_2016061602] ( https://storage.googleapis.com/etcd/demo/12_etcdctl_migrate_2016061602.gif )
95
+ ![ 12_etcdctl_migrate_2016061602] ( https://storage.googleapis.com/etcd/demo/12_etcdctl_migrate_2016061602.gif )
0 commit comments