Creating etcd backup
Create etcd backup¶
This SOP should be followed in the following scenarios:
- When the need exists to create an etcd backup.
- When shutting a cluster down gracefully.
Steps¶
- Connect to the admin node for either
staging
orproduction
. See the inventoryocp
for produduction,ocp-stg
for staging. The hostname is in the groupocp-ci-management
orocp-stg-ci-management
.
ssh <admin-node>
- Become the ocp administrator user, check the hostvars associated with the host in the previous step.
sudo su <ocp-admin-user>
- Run the cluster backup script:
~/bin/ocp-etcd-backup
-
This will save an etcd snapshot in the
~/ocp_backups
location. -
These snapshots are taken nightly at
02:00 UTC
and rsynced to a backup storage device.