|
| 1 | +:_content-type: ASSEMBLY |
| 2 | +[id="microshift-troubleshoot-backup-restore.adoc"] |
| 3 | += Troubleshooting data backup and restore |
| 4 | +include::_attributes/attributes-microshift.adoc[] |
| 5 | +:context: microshift-troubleshoot-data-backup-and-restore |
| 6 | + |
| 7 | +toc::[] |
| 8 | + |
| 9 | +To troubleshoot failed data backups and restorations, check the basics first, such as data paths, storage configuration, and storage capacity. |
| 10 | + |
| 11 | +[id="troubleshoot-backup-restore-microshift-backup-data-failed"] |
| 12 | +== Backing up data failed |
| 13 | +Data backups are automatic on `rpm-ostree` systems. If you are not using an `rpm-ostree` system and attempted to create a manual backup, the following reasons can cause the backup to fail: |
| 14 | + |
| 15 | +* Not waiting several minutes after a system start to successfully stop {product-title}. The system must complete health checks and any other background processes before a back up can succeed. |
| 16 | +* If {product-title} stopped running because of an error, you cannot perform a backup of the data. |
| 17 | +** Make sure the system is healthy. |
| 18 | +** Stop it in a healthy state before attempting a backup. |
| 19 | +* If you do not have sufficient storage for the data, the backup fails. Ensure that you have enough storage for the {product-title} data. |
| 20 | +* If you do not have sufficient permissions, a backup can fail. Ensure you have the correct user permissions to create a backup and perform the required configurations. |
| 21 | + |
| 22 | +[id="troubleshoot-backup-restore-microshift-backup-logs"] |
| 23 | +== Backup logs |
| 24 | +* Logs print to the console during manual backups. |
| 25 | +* Logs are automatically generated for `rpm-ostree` system automated backups as part of the {product-title} journal logs. You can check the logs by running the following command: |
| 26 | ++ |
| 27 | +[source, terminal] |
| 28 | +---- |
| 29 | +$ sudo journalctl -u microshift |
| 30 | +---- |
| 31 | + |
| 32 | +[id="troubleshoot-backup-restore-microshift-restore-data-failed"] |
| 33 | +== Restoring data failed |
| 34 | +The restoration of data can fail for many reasons, including storage and permission issues. Mismatched data versions can cause failures when {product-title} restarts. |
| 35 | + |
| 36 | +[id="troubleshoot-backup-restore-microshift-RPM-OSTree-data-restore-failed"] |
| 37 | +=== RPM-OSTree-based systems data restore failed |
| 38 | +Data restorations are automatic on `rpm-ostree` systems, but can fail, for example: |
| 39 | + |
| 40 | +* The only backups that are restored on `rpm-ostree` systems are backups from the current deployment or a rollback deployment. Backups are not taken on an unhealthy system. |
| 41 | + |
| 42 | +** Only the latest backups that have corresponding deployments are retained. Outdated backups that do not have a matching deployment are automatically removed. |
| 43 | + |
| 44 | +** Data is usually not restored from a newer version of {product-title}. |
| 45 | + |
| 46 | +** Ensure that the data you are restoring follows same versioning pattern as the update path. For example, if the destination version of {product-title} is an older version than the version of the {product-title} data you are currently using, the restoration can fail. |
| 47 | + |
| 48 | +[id="troubleshoot-backup-restore-microshift-rpm-manual-restore-data-failed"] |
| 49 | +=== RPM-based manual data restore failed |
| 50 | +If you are using an RPM system that is not `rpm-ostree` and tried to restore a manual backup, the following reasons can cause the restoration to fail: |
| 51 | + |
| 52 | +* If {product-title} stopped running because of an error, you cannot restore data. |
| 53 | +** Make sure the system is healthy. |
| 54 | +** Start it in a healthy state before attempting to restore data. |
| 55 | + |
| 56 | +* If you do not have enough storage space allocated for the incoming data, the restoration fails. |
| 57 | +** Make sure that your current system storage is configured to accept the restored data. |
| 58 | + |
| 59 | +* You are attempting to restore data from a newer version of {product-title}. |
| 60 | +** Ensure that the data you are restoring follows same versioning pattern as the update path. For example, if the destination version of {product-title} is an older version than the version of the {product-title} data you are attempting to use, the restoration can fail. |
| 61 | + |
| 62 | +[id="troubleshoot-backup-restore-microshift-storage-migration-failed"] |
| 63 | +== Storage migration failed |
| 64 | +Storage migration failures are typically caused by substantial changes in custom resources (CRs) from one {product-title} to the next. If a storage migration fails, there is usually an unresolvable discrepancy between versions that requires manual review. |
| 65 | + |
0 commit comments