Skip to content

Commit df447e2

Browse files
authored
Merge pull request #37378 from apinnick/backup-restore-structure-oadp
OADP-78: Reorganizing Backup/Restore for OADP
2 parents 6a113a8 + 2e562d1 commit df447e2

28 files changed

+60
-45
lines changed

_topic_map.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,23 +2123,31 @@ Name: Backup and restore
21232123
Dir: backup_and_restore
21242124
Distros: openshift-origin,openshift-enterprise
21252125
Topics:
2126-
- Name: Backing up etcd data
2127-
File: backing-up-etcd
2128-
- Name: Replacing an unhealthy etcd member
2129-
File: replacing-unhealthy-etcd-member
21302126
- Name: Shutting down a cluster gracefully
21312127
File: graceful-cluster-shutdown
21322128
- Name: Restarting a cluster gracefully
21332129
File: graceful-cluster-restart
2134-
- Name: Disaster recovery
2135-
Dir: disaster_recovery
2136-
Topics:
2137-
- Name: About disaster recovery
2138-
File: about-disaster-recovery
2139-
- Name: Restoring to a previous cluster state
2140-
File: scenario-2-restoring-cluster-state
2141-
- Name: Recovering from expired control plane certificates
2142-
File: scenario-3-expired-certs
2130+
# - Name: Application backup and restore
2131+
# Dir: application_backup_and_restore
2132+
# Topics:
2133+
# - Name: Application backup and restore
2134+
# File: placeholder
2135+
- Name: Control plane backup and restore
2136+
Dir: control_plane_backup_and_restore
2137+
Topics:
2138+
- Name: Backing up etcd data
2139+
File: backing-up-etcd
2140+
- Name: Replacing an unhealthy etcd member
2141+
File: replacing-unhealthy-etcd-member
2142+
- Name: Disaster recovery
2143+
Dir: disaster_recovery
2144+
Topics:
2145+
- Name: About disaster recovery
2146+
File: about-disaster-recovery
2147+
- Name: Restoring to a previous cluster state
2148+
File: scenario-2-restoring-cluster-state
2149+
- Name: Recovering from expired control plane certificates
2150+
File: scenario-3-expired-certs
21432151
---
21442152
Name: Migrating from version 3 to 4
21452153
Dir: migrating_from_ocp_3_to_4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../images
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../modules
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[id="placeholder"]
2+
= Application backup and restore
3+
include::modules/common-attributes.adoc[]
4+
:context: oadp
5+
6+
TBD

backup_and_restore/backing-up-etcd.adoc renamed to backup_and_restore/control_plane_backup_and_restore/backing-up-etcd.adoc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ Be sure to take an etcd backup after you upgrade your cluster. This is important
2222
Back up your cluster's etcd data by performing a single invocation of the backup script on a control plane host. Do not take a backup for each control plane host.
2323
====
2424

25-
After you have an etcd backup, you can xref:../backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc#dr-restoring-cluster-state[restore to a previous cluster state].
26-
27-
You can perform the xref:../backup_and_restore/backing-up-etcd.adoc#backing-up-etcd-data_backup-etcd[etcd data backup process]
28-
on any control plane host that has a running etcd instance.
25+
After you have an etcd backup, you can xref:../../backup_and_restore/control_plane_backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc#dr-restoring-cluster-state[restore to a previous cluster state].
2926

3027
// Backing up etcd data
3128
include::modules/backup-etcd.adoc[leveloffset=+1]

backup_and_restore/disaster_recovery/about-disaster-recovery.adoc renamed to backup_and_restore/control_plane_backup_and_restore/disaster_recovery/about-disaster-recovery.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ state.
1616
Disaster recovery requires you to have at least one healthy control plane host.
1717
====
1818

19-
xref:../../backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc#dr-restoring-cluster-state[Restoring to a previous cluster state]::
19+
xref:../../../backup_and_restore/control_plane_backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc#dr-restoring-cluster-state[Restoring to a previous cluster state]::
2020
This solution handles situations where you want to restore your cluster to
2121
a previous state, for example, if an administrator deletes something critical.
2222
This also includes situations where you have lost the majority of your control plane hosts, leading to etcd quorum loss and the cluster going offline. As long as you have taken an etcd backup, you can follow this procedure to restore your cluster to a previous state.
2323
+
24-
If applicable, you might also need to xref:../../backup_and_restore/disaster_recovery/scenario-3-expired-certs.adoc#dr-recovering-expired-certs[recover from expired control plane certificates].
24+
If applicable, you might also need to xref:../../../backup_and_restore/control_plane_backup_and_restore/disaster_recovery/scenario-3-expired-certs.adoc#dr-recovering-expired-certs[recover from expired control plane certificates].
2525
+
2626
[WARNING]
2727
====
2828
Restoring to a previous cluster state is a destructive and destablizing action to take on a running cluster. This procedure should only be used as a last resort.
2929
30-
Prior to performing a restore, see xref:../../backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc#dr-scenario-2-restoring-cluster-state-about_dr-restoring-cluster-state[About restoring cluster state] for more information on the impact to the cluster.
30+
Prior to performing a restore, see xref:../../../backup_and_restore/control_plane_backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc#dr-scenario-2-restoring-cluster-state-about_dr-restoring-cluster-state[About restoring cluster state] for more information on the impact to the cluster.
3131
====
3232
+
3333
[NOTE]
3434
====
35-
If you have a majority of your masters still available and have an etcd quorum, then follow the procedure to xref:../../backup_and_restore/replacing-unhealthy-etcd-member.adoc#replacing-unhealthy-etcd-member[replace a single unhealthy etcd member].
35+
If you have a majority of your masters still available and have an etcd quorum, then follow the procedure to xref:../../../backup_and_restore/control_plane_backup_and_restore/replacing-unhealthy-etcd-member.adoc#replacing-unhealthy-etcd-member[replace a single unhealthy etcd member].
3636
====
3737

38-
xref:../../backup_and_restore/disaster_recovery/scenario-3-expired-certs.adoc#dr-recovering-expired-certs[Recovering from expired control plane certificates]::
38+
xref:../../../backup_and_restore/control_plane_backup_and_restore/disaster_recovery/scenario-3-expired-certs.adoc#dr-recovering-expired-certs[Recovering from expired control plane certificates]::
3939
This solution handles situations where your control plane certificates have
4040
expired. For example, if you shut down your cluster before the first certificate
4141
rotation, which occurs 24 hours after installation, your certificates will not

backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc renamed to backup_and_restore/control_plane_backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ include::modules/common-attributes.adoc[]
55

66
toc::[]
77

8-
To restore the cluster to a previous state, you must have previously xref:../../backup_and_restore/backing-up-etcd.adoc#backing-up-etcd-data_backup-etcd[backed up etcd data] by creating a snapshot. You will use this snapshot to restore the cluster state.
8+
To restore the cluster to a previous state, you must have previously xref:../../../backup_and_restore/control_plane_backup_and_restore/backing-up-etcd.adoc#backing-up-etcd-data_backup-etcd[backed up etcd data] by creating a snapshot. You will use this snapshot to restore the cluster state.
99

1010
// About restoring to a previous cluster state
1111
include::modules/dr-restoring-cluster-state-about.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)