View on GitHub

ocp4-docs

Documentation for CentOS CI Infra initiative - OpenShift 4.4 deployment on Baremetal

Create etcd backup

This SOP should be followed in the following scenarios:

Steps

  1. Connect to a master node
oc debug node/<node_name>
  1. Chroot to the /host directory on the containers filesystem
sh-4.2# chroot /host
  1. Run the cluster-backup.sh script and pass in the location to save the backup to
sh-4.4# /usr/local/bin/cluster-backup.sh /home/core/assets/backup
  1. Chown the backup files to be owned by user core and group core
chown -R core:core /home/core/assets/backup
  1. From the admin machine, see inventory group: ocp-ci-management, become the Openshift service account, see the inventory hostvars for the host identified in the previous step and note the ocp_service_account variable.
ssh <host>
sudo su - <ocp_service_account>
  1. Copy the files down to the admin machine.
scp -i <ssh_key> core@<node_name>:/home/core/assets/backup/* ocp_backups/

Resources