Hi All, Suppose I have a snapshot db file already existing to restore for ectd. Do I need to use --data-dir and update --data-dir in the etcd.yaml file ?
That is correct.
Refer to section 119 of the lecture, download the presentation, your answer is on slide #46.
@LonnyBarry, ok but still wondering why do I need to change data-dir as the data will be getting picked up from the new restored db ?
you will change the data dir on import and need to tell the service to use the newly created directory upon restart. This is located in the systemd unit file.
what about if I wont change the data dir and ask the service to use the same location ? Will it take the old content ?
@Manas Sahoo Just the delete the etcd pod to take the new content. If u didn’t delete it it will still use the old content