Skip to content

Commit 0759ce9

Browse files
authored
Merge pull request #57854 from CarmiWisemon/oadp1440datamover
OADP 1440 - Data Mover
2 parents b78929e + e5526dc commit 0759ce9

File tree

1 file changed

+75
-14
lines changed

1 file changed

+75
-14
lines changed

modules/oadp-using-data-mover-for-csi-snapshots.adoc

Lines changed: 75 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,68 @@
77
= Using Data Mover for CSI snapshots
88

99
:FeatureName: Data Mover for CSI snapshots
10-
include::snippets/technology-preview.adoc[]
1110

12-
The OADP 1.1.2 Data Mover enables customers to back up container storage interface (CSI) volume snapshots to a remote object store. When Data Mover is enabled, you can restore stateful applications from the store if a failure, accidental deletion, or corruption of the cluster occurs. The OADP 1.1.2 Data Mover solution uses the Restic option of VolSync.
11+
The OADP Data Mover enables customers to back up Container Storage Interface (CSI) volume snapshots to a remote object store. When Data Mover is enabled, you can restore stateful applications, using CSI volume snapshots pulled from the object store if a failure, accidental deletion, or corruption of the cluster occurs.
12+
13+
The Data Mover solution uses the Restic option of VolSync.
1314

14-
[NOTE]
15-
=====
1615
Data Mover supports backup and restore of CSI volume snapshots only.
1716

18-
Currently, Data Mover does not support Google Cloud Storage (GCS) buckets.
19-
=====
17+
In OADP 1.2 Data Mover `VolumeSnapshotBackups` (VSBs) and `VolumeSnapshotRestores` (VSRs) are queued using the VolumeSnapshotMover (VSM). The VSM's performance is improved by specifying a concurrent number of VSBs and VSRs simultaneously `InProgress`. After all async plugin operations are complete, the backup is marked as complete.
18+
19+
20+
[NOTE]
21+
====
22+
The OADP 1.1 Data Mover is a Technology Preview feature.
23+
24+
The OADP 1.2 Data Mover has significantly improved features and performances, but is still a Technology Preview feature.
25+
====
26+
:FeatureName: The OADP Data Mover
27+
include::snippets/technology-preview.adoc[leveloffset=+1]
28+
29+
[NOTE]
30+
====
31+
Red Hat recommends that customers who use OADP 1.2 Data Mover in order to back up and restore ODF CephFS volumes, upgrade or install {product-title} version 4.12 or later for improved performance. OADP Data Mover can leverage CephFS shallow volumes in {product-title} version 4.12 or later, which based on our testing, can improve the performance of backup times.
32+
33+
* https://issues.redhat.com/browse/RHSTOR-4287[CephFS ROX details]
34+
//* https://github.com/ceph/ceph-csi/blob/devel/docs/cephfs-snapshot-backed-volumes.md[Provisioning and mounting CephFS snapshot-backed volumes]
35+
36+
37+
//For more information about OADP 1.2 with CephS [name of topic], see ___.
38+
39+
====
2040

2141
.Prerequisites
2242

2343
* You have verified that the `StorageClass` and `VolumeSnapshotClass` custom resources (CRs) support CSI.
2444
2545
* You have verified that only one `volumeSnapshotClass` CR has the annotation `snapshot.storage.kubernetes.io/is-default-class: true`.
46+
+
47+
[NOTE]
48+
====
49+
In {product-title} version 4.12 or later, verify that this is the only default `volumeSnapshotClass`.
50+
====
51+
52+
* You have verified that `deletionPolicy` of the `VolumeSnapshotClass` CR is set to `Retain`.
2653
2754
* You have verified that only one `storageClass` CR has the annotation `storageclass.kubernetes.io/is-default-class: true`.
2855
2956
* You have included the label `{velero-domain}/csi-volumesnapshot-class: 'true'` in your `VolumeSnapshotClass` CR.
3057
58+
* You have verified that the `OADP namespace` has the annotation `oc annotate --overwrite namespace/openshift-adp volsync.backube/privileged-movers='true'`.
59+
+
60+
[NOTE]
61+
====
62+
In OADP 1.1 the above setting is mandatory.
63+
64+
In OADP 1.2 the `privileged-movers` setting is not required in most scenarios. The restoring container permissions should be adequate for the Volsync copy. In some user scenarios, there may be permission errors that the `privileged-mover`= `true` setting should resolve.
65+
====
66+
3167
* You have installed the VolSync Operator by using the Operator Lifecycle Manager (OLM).
3268
+
3369
[NOTE]
3470
====
35-
The VolSync Operator is required only for use with the Technology Preview Data Mover. The Operator is not required for using OADP production features.
71+
The VolSync Operator is required for using OADP Data Mover.
3672
====
3773
3874
* You have installed the OADP operator by using OLM.
@@ -69,10 +105,6 @@ metadata:
69105
name: velero-sample
70106
namespace: openshift-adp
71107
spec:
72-
features:
73-
dataMover:
74-
enable: true
75-
credentialName: <secret_name> <1>
76108
backupLocations:
77109
- velero:
78110
config:
@@ -84,18 +116,47 @@ spec:
84116
default: true
85117
objectStorage:
86118
bucket: <bucket_name>
87-
prefix: <bucket_prefix>
119+
prefix: <bucket-prefix>
88120
provider: aws
89121
configuration:
90122
restic:
91123
enable: <true_or_false>
92124
velero:
93-
defaultPlugins:
125+
itemOperationSyncFrequency: "10s"
126+
defaultPlugins:
94127
- openshift
95128
- aws
96129
- csi
130+
- vsm <1>
131+
features:
132+
dataMover:
133+
credentialName: restic-secret
134+
enable: true
135+
maxConcurrentBackupVolumes: "3" <2>
136+
maxConcurrentRestoreVolumes: "3" <3>
137+
pruneInterval: "14" <4>
138+
volumeOptions: <5>
139+
sourceVolumeOptions:
140+
accessMode: ReadOnlyMany
141+
cacheAccessMode: ReadWriteOnce
142+
cacheCapacity: 2Gi
143+
destinationVolumeOptions:
144+
storageClass: other-storageclass-name
145+
cacheAccessMode: ReadWriteMany
146+
snapshotLocations:
147+
- velero:
148+
config:
149+
profile: default
150+
region: us-west-2
151+
provider: aws
152+
97153
----
98-
<1> Add the Restic secret name from the previous step. If this is not done, the default secret name `dm-credential` is used.
154+
<1> OADP 1.2 only.
155+
<2> OADP 1.2 only. Optional: Specify the upper limit of the number of snapshots allowed to be queued for backup. The default value is 10.
156+
<3> OADP 1.2 only. Optional: Specify the upper limit of the number of snapshots allowed to be queued for restore. The default value is 10.
157+
<4> OADP 1.2 only. Optional: Specify the number of days, between running Restic pruning on the repository. The prune operation repacks the data to free space, but it can also generate significant I/O traffic as a part of the process. Setting this option allows a trade-off between storage consumption, from no longer referenced data, and access costs.
158+
<5> OADP 1.2 only. Optional: Specify VolumeSync volume options for backup and restore.
159+
99160
+
100161
The OADP Operator installs two custom resource definitions (CRDs), `VolumeSnapshotBackup` and `VolumeSnapshotRestore`.
101162
+

0 commit comments

Comments
 (0)