Project

General

Profile

Actions

Bug #20268

closed

Add warning when using --online-backup

Added by Christine Fouant over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1465182

We offer the --online-backup flag in 6.2 but there needs to be a warning statement when running with this flag as there is a caveat with its use.

Satellite 6 uses two database systems, Postgres and Mongo. There are records that exist in Postgres and Mongo that need to remain consistent and in sync between each system.

When you shut down all the services you can ensure that there are no modifications occurring to either database. The --online-backup flag keeps all services running so there is a possibility that exists that data being modified while the backups are occurring. There is a basic check in place in the backup routine that checks to see if the database was modified during the backup. If this occurs, it will re-backup the data and start over.

This check is rudimentary and can't ensure with 100% certainty that there were no modifications to the Pulp or Postgres database while the backup was running. This check can also result in repeated loops if there is continuous modification occurring to the database. If the user still wishes to use the --online-backup flag for production use they will need to ensure that there are no modifications that occur during the backup runs.

We need to add a warning that explains this, for example (the wording is open for discussion):

  1. katello-backup /var/tmp --online-backup
  • WARNING: The online backup flag is intended for making a copy of the data
  • for debugging purposes only. The backup routine can not ensure 100% consistency while the
  • backup is taking place as there is a chance there may be data mismatch between
  • Mongo and Postgres databases while the services are live. If you wish to utilize the --online-backup
  • flag for production use you need to ensure that there are no modifications occurring during
  • your backup run.

Satellite 6.3 will offer LVM based snapshots for 'hot backup' function and we can then remove this warning.

Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/459 added
Actions #2

Updated by Christine Fouant over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Justin Sherrill over 7 years ago

  • Translation missing: en.field_release set to 267
Actions #4

Updated by Eric Helms over 7 years ago

  • Translation missing: en.field_release changed from 267 to 281
Actions

Also available in: Atom PDF