docs: add info about etcd snapshot#129
docs: add info about etcd snapshot#129anupriya0703 wants to merge 2 commits intoopenebs:version/2.1from
Conversation
Signed-off-by: anupriya0703 <anupriya.gupta@mayadata.io>
Signed-off-by: anupriya0703 <anupriya.gupta@mayadata.io>
| kubectl exec -it mayastor-etcd-0 -n mayastor -- bash | ||
| kubectl cp -n mayastor mayastor-etcd-0:/tmp/snapshot.db ./snapshot.db | ||
| ls -lrt snapshot.db | ||
| kubectl exec -it mayastor-etcd-0 -n mayastor -- bash |
There was a problem hiding this comment.
Do we need to take the snapshot on every pod of etcd? or only on the master pod?
cc @datacore-tilangovan
There was a problem hiding this comment.
Hi Vishnu, taking snapshot from one pod is enough.
| ls -lrt snapshot.db | ||
| kubectl exec -it mayastor-etcd-0 -n mayastor -- bash | ||
| kubectl cp -n mayastor mayastor-etcd-0:/tmp/snapshot.db ./snapshot.db | ||
| ls -lrt snapshot.db |
There was a problem hiding this comment.
What is the user supposed to be doing with this snapshot?
There was a problem hiding this comment.
I think we need to provide more explanation on this. Why should a user take a etcd snapshot? Where should it be stored (if needed)? How to recover from the snapshot in case of an irrecoverable failure?
There was a problem hiding this comment.
@datacore-tilangovan Could you please help me with the above information
There was a problem hiding this comment.
@avishnu It can be stored in the local, let me draft some new steps for snapshot restore.
Signed-off-by: anupriya0703 anupriya.gupta@mayadata.io