|
1 | 1 | :_mod-docs-content-type: ASSEMBLY |
2 | 2 | [id="microshift-troubleshoot-backup-restore"] |
3 | 3 | = Troubleshooting data backup and restore |
| 4 | + |
4 | 5 | include::_attributes/attributes-microshift.adoc[] |
5 | 6 | :context: microshift-troubleshoot-backup-and-restore |
6 | 7 |
|
7 | 8 | toc::[] |
8 | 9 |
|
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_{context}"] |
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 {microshift-short}. The system must complete health checks and any other background processes before a back up can succeed. |
16 | | -* If {microshift-short} 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 {microshift-short} 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_{context}"] |
23 | | -== Backup logs |
24 | | -* Logs print to the terminal console during manual backups. |
25 | | -* Logs are automatically generated for `rpm-ostree` system automated backups as part of the {microshift-short} 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_{context}"] |
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 {microshift-short} restarts. |
35 | | - |
36 | | -[id="troubleshoot-backup-restore-microshift-RPM-OSTree-data-restore-failed_{context}"] |
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 {microshift-short}. |
45 | | - |
46 | | -** Ensure that the data you are restoring follows same versioning pattern as the update path. For example, if the destination version of {microshift-short} is an older version than the version of the {microshift-short} data you are currently using, the restoration can fail. |
47 | | - |
48 | | -[id="troubleshoot-backup-restore-microshift-rpm-manual-restore-data-failed_{context}"] |
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 {microshift-short} 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. |
| 10 | +[role="_abstract"] |
| 11 | +To troubleshoot failed data backups and restorations, check the basics first. For example, user permissions, system health and configuration, and storage capacity. |
55 | 12 |
|
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. |
| 13 | +include::modules/microshift-backup-data-failed.adoc[leveloffset=+1] |
58 | 14 |
|
59 | | -* You are attempting to restore data from a newer version of {microshift-short}. |
60 | | -** Ensure that the data you are restoring follows same versioning pattern as the update path. For example, if the destination version of {microshift-short} is an older version than the version of the {microshift-short} data you are attempting to use, the restoration can fail. |
| 15 | +include::modules/microshift-backup-logs.adoc[leveloffset=+1] |
61 | 16 |
|
62 | | -[id="troubleshoot-backup-restore-microshift-storage-migration-failed_{context}"] |
63 | | -== Storage migration failed |
64 | | -Storage migration failures are typically caused by substantial changes in custom resources (CRs) from one {microshift-short} to the next. If a storage migration fails, there is usually an unresolvable discrepancy between versions that requires manual review. |
| 17 | +include::modules/microshift-restore-data-failed.adoc[leveloffset=+1] |
65 | 18 |
|
| 19 | +include::modules/microshift-storage-migration-failed.adoc[leveloffset=+1] |
0 commit comments