Skip to content

Commit f046a46

Browse files
authored
Merge pull request #78045 from sabrinajess/CNV38755
#CNV38755 - new dr content
2 parents 6cd76ff + 17ec8de commit f046a46

File tree

5 files changed

+116
-13
lines changed

5 files changed

+116
-13
lines changed

modules/virt-about-dr-methods.adoc

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,19 @@
66
[id="virt-about-dr-methods_{context}"]
77
= About disaster recovery methods
88

9-
For an overview of disaster recovery (DR) concepts, architecture, and planning considerations, see the link:https://access.redhat.com/articles/7041594[Red Hat {VirtProductName} disaster recovery guide] in the Red Hat Knowledgebase.
9+
For an overview of disaster recovery (DR) concepts, architecture, and planning considerations, see the link:https://access.redhat.com/articles/7041594[Red{nbsp}Hat {VirtProductName} disaster recovery guide] in the Red{nbsp}Hat Knowledgebase.
1010

1111
The two primary DR methods for {VirtProductName} are Metropolitan Disaster Recovery (Metro-DR) and Regional-DR.
1212

13-
Metro-DR::
13+
[id="metro-dr_{context}"]
14+
== Metro-DR
1415

1516
Metro-DR uses synchronous replication. It writes to storage at both the primary and secondary sites so that the data is always synchronized between sites. Because the storage provider is responsible for ensuring that the synchronization succeeds, the environment must meet the throughput and latency requirements of the storage provider.
1617

17-
Regional-DR::
18+
[id="regional-dr_{context}"]
19+
== Regional-DR
1820

1921
Regional-DR uses asynchronous replication. The data in the primary site is synchronized with the secondary site at regular intervals. For this type of replication, you can have a higher latency connection between the primary and secondary sites.
2022

21-
[id="metro-dr_{context}"]
22-
== Metro-DR for {rh-storage-first}
23-
24-
{VirtProductName} supports the link:https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.14/html-single/configuring_openshift_data_foundation_disaster_recovery_for_openshift_workloads/index#metro-dr-solution[Metro-DR solution for {rh-storage}], which provides two-way synchronous data replication between managed {VirtProductName} clusters installed on primary and secondary sites. This solution combines {rh-rhacm-first}, Red Hat Ceph Storage, and {rh-storage} components.
25-
26-
Use this solution during a site disaster to fail applications from the primary to the secondary site, and to relocate the application back to the primary site after restoring the disaster site.
27-
28-
This synchronous solution is only available to metropolitan distance data centers with a 10 millisecond latency or less.
29-
30-
For more information about using the Metro-DR solution for {rh-storage} with {VirtProductName}, see link:https://access.redhat.com/articles/7053115[the Red Hat Knowledgebase].
23+
:FeatureName: Regional-DR
24+
include::snippets/technology-preview.adoc[]
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/backup_restore/virt-disaster-recovery.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="virt-defining-apps-for-dr_{context}"]
7+
= Defining applications for disaster recovery
8+
9+
Define applications for disaster recovery by using VMs that {rh-rhacm-first} manages or discovers.
10+
11+
[id="best-practices-{rh-rhacm}-managed-vm_{context}"]
12+
== Best practices when defining an {rh-rhacm}-managed VM
13+
14+
An {rh-rhacm}-managed application that includes a VM must be created by using a GitOps workflow and by creating an {rh-rhacm} application or `ApplicationSet`.
15+
16+
There are several actions you can take to improve your experience and chance of success when defining an {rh-rhacm}-managed VM.
17+
18+
[discrete]
19+
[id="use-a-pvc-and-populator_{context}"]
20+
=== Use a PVC and populator to define storage for the VM
21+
Because data volumes create persistent volume claims (PVCs) implicitly, data volumes and VMs with data volume templates do not fit as neatly into the GitOps model.
22+
23+
[discrete]
24+
[id="use-import-method_{context}"]
25+
=== Use the import method when choosing a population source for your VM disk
26+
Use the import method to work around limitations in Regional-DR that prevent you from protecting VMs that use cloned PVCs.
27+
28+
Select a {op-system-base} image from the software catalog to use the import method. Red{nbsp}Hat recommends using a specific version of the image rather than a floating tag for consistent results. The KubeVirt community maintains container disks for other operating systems in a Quay repository.
29+
30+
[discrete]
31+
[id="use-pull-node_{context}"]
32+
=== Use `pullMethod: node`
33+
Use the pod `pullMethod: node` when creating a data volume from a registry source to take advantage of the {product-title} pull secret, which is required to pull container images from the Red{nbsp}Hat registry.
34+
35+
[id="best-practices-{rh-rhacm}-discovered-vm_{context}"]
36+
== Best practices when defining an {rh-rhacm}-discovered virtual machine
37+
38+
You can configure any VM in the cluster that is not an {rh-rhacm}-managed application as an {rh-rhacm}-discovered application. This includes VMs imported by using the Migration Toolkit for Virtualization (MTV), VMs created by using the {VirtProductName} web console, or VMs created by any other means, such as the CLI.
39+
40+
There are several actions you can take to improve your experience and chance of success when defining an {rh-rhacm}-discovered VM.
41+
42+
[discrete]
43+
[id="protect-the-vm_{context}"]
44+
=== Protect the VM when using MTV, the {VirtProductName} web console, or a custom VM
45+
Because automatic labeling is not currently available, the application owner must manually label the components of the VM application when using MTV, the {VirtProductName} web console, or a custom VM.
46+
47+
After creating the VM, apply a common label to the following resources associated with the VM: `VirtualMachine`, `DataVolume`, `PersistentVolumeClaim`, `Service`, `Route`, `Secret`, and `ConfigMap`. Do not label virtual machine instances (VMIs) or pods
48+
since {VirtProductName} creates and manages these automatically.
49+
50+
[discrete]
51+
[id="working-vm-contains_{context}"]
52+
=== Include more than the `VirtualMachine` object in the VM
53+
Working VMs typically also contain data volumes, persistent volume claims (PVCs), services, routes, secrets, `ConfigMap` objects, and `VirtualMachineSnapshot` objects.
54+
55+
[discrete]
56+
[id="part-of-larger-app_{context}"]
57+
=== Include the VM as part of a larger logical application
58+
This includes other pod-based workloads and VMs.

modules/virt-metro-dr-odf.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/backup_restore/virt-disaster-recovery.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="metro-dr-odf_{context}"]
7+
= Metro-DR for {rh-storage-first}
8+
9+
{VirtProductName} supports the link:https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.14/html-single/configuring_openshift_data_foundation_disaster_recovery_for_openshift_workloads/index#metro-dr-solution[Metro-DR solution for {rh-storage}], which provides two-way synchronous data replication between managed {VirtProductName} clusters installed on primary and secondary sites. This solution combines {rh-rhacm-first}, Red{nbsp}Hat Ceph Storage, and {rh-storage} components.
10+
11+
Use this solution during a site disaster to failover applications from the primary to the secondary site, and relocate the applications back to the primary site after restoring the disaster site.
12+
13+
This synchronous solution is only available to metropolitan distance data centers with a 10-millisecond latency or less.
14+
15+
For more information about using the Metro-DR solution for {rh-storage} with {VirtProductName}, see link:https://access.redhat.com/articles/7053115[the Red{nbsp}Hat Knowledgebase] or {ibm-title}’s {rh-storage} Metro-DR documentation.
16+
17+
[role="_additional-resources-dr"]
18+
.Additional resources
19+
* link:https://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/4.16/html/configuring_openshift_data_foundation_disaster_recovery_for_openshift_workloads/index[Configuring OpenShift Data Foundation Disaster Recovery for OpenShift Workloads]

modules/virt-vm-behavior-dr.adoc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/backup_restore/virt-disaster-recovery.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="virt-vm-behavior-dr_{context}"]
7+
= VM behavior during disaster recovery scenarios
8+
9+
VMs typically act similarly to pod-based workloads during both relocate and failover disaster recovery flows.
10+
11+
[discrete]
12+
[id="dr-relocate_{context}"]
13+
== Relocate
14+
15+
Use relocate to move an application from the primary environment to the secondary environment when the primary environment is still accessible. During relocate, the VM is gracefully terminated, any unreplicated data is synchronized to the secondary environment, and the VM starts in the secondary environment.
16+
17+
Becauase the terminates gracefully, there is no data loss in this scenario. Therefore, the VM operating system does not need to perform crash recovery.
18+
19+
[discrete]
20+
[id="dr-failover_{context}"]
21+
== Failover
22+
23+
Use failover when there is a critical failure in the primary environment that makes it impractical or impossible to use relocation to move the workload to a secondary environment. When failover is executed, the storage is fenced from the primary environment, the I/O to the VM disks is abruptly halted, and the VM restarts in the secondary environment using the replicated data.
24+
25+
You should expect data loss due to failover. The extent of loss depends on whether you use Metro-DR, which uses synchronous replication, or Regional-DR, which uses asynchronous replication. Because Regional-DR uses snapshot-based replication intervals, the window of data loss is proportional to the replication interval length. When the VM restarts, the operating system might perform crash recovery.

virt/backup_restore/virt-disaster-recovery.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ toc::[]
99
{VirtProductName} supports using disaster recovery (DR) solutions to ensure that your environment can recover after a site outage. To use these methods, you must plan your {VirtProductName} deployment in advance.
1010

1111
include::modules/virt-about-dr-methods.adoc[leveloffset=+1]
12+
include::modules/virt-defining-apps-for-dr.adoc[leveloffset=+1]
13+
include::modules/virt-vm-behavior-dr.adoc[leveloffset=+1]
14+
include::modules/virt-metro-dr-odf.adoc[leveloffset=+1]
15+
16+
[role="_additional-resources-dr"]
17+
.Additional resources
18+
* link:https://docs.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.10[Red{nbsp}Hat Advanced Cluster Management for Kubernetes 2.10]

0 commit comments

Comments
 (0)