Etcd Restore
The Airctl Etcd restore process is essential for restoring the etcd database to a previous state captured in the backup .
Command Syntax
The Etcd restore command in Airctl follows a specific syntax:
airctl mgmt-etcd-restore --config airctl-config.yaml --verbose--config airctl-config.yaml: References the Airctl configuration file, ensuring alignment with the required configurations during restoration.
Detailed Restore Process
Purpose
The restore process aims to replace current Etcd database from a previously captured Etcd snapshot.
Steps Involved
Command Invocation
Copy etcd backup file manually to each master node at
/opt/pf9/pf9-kube/etcd-restore/etcd-backup.db.RequiredExecute the
airctl mgmt-etcd-restorecommand.Use the
--configflag to reference theairctl-config.yamlfile, ensuring the restoration aligns with the necessary configurations.Wait for etcd to stablize , check etcd status and member list using below command :
/opt/pf9/pf9-kube/bin/etcdctl endpoint status -w table/opt/pf9/pf9-kube/bin/etcdctl member list -w table
perform nodelet phases restart on each node by following below steps:
systemctl stop pf9-nodeletd.service/opt/pf9/nodelet/nodeletd phases restart
Backup Source
The Etcd restore command triggers
/opt/pf9/pf9-kube/etcd-restore/etcd-restore.shscript shipped viapf9-kubepackage on each node which usesetcd-backup.dbfile copied by user on each master node under dir/opt/pf9/pf9-kube/etcd-restore/.
Restoration Process
The restoration process uses etcd.env to get ENV variables required to restore etcd cluster .
Usage Example:
Restore Etcd command :
Check Etcd status and member list on each node :
Perform nodelet phases restart :
Last updated
Was this helpful?
