ETCD Backup Failing With Error Message "Error: could not rename /root/etcd_backup0/.part"

Problem

ETCD backup is failing with the error mentioned below.

ETCD Backup Error
Copy

Environment

  • Platform9 Managed Kubernetes – All Versions

Cause

  • The ETCD DB backup command mentioned below was intended to save the ETCD snapshot backup file under /root/etcd_backup0/ directory.
Failed ETCD backup commad
Copy
  • But Instead of that , the /root/etcd_backup0/ is considered as the Database snapshot backup file name.
  • Since a directory with that name is already present hence it is failing to take backup.

Resolution

  • ETCD backup command expects a file name as an argument which will be used to save the snapshot DB backup.
  • Hence the ETCD backup command should always have the ETCD snapshot DB backup file name mention in it. For Example,
Working ETCD backup command
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard