You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/oadp-using-data-mover-for-csi-snapshots.adoc
+75-14Lines changed: 75 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,32 +7,68 @@
7
7
= Using Data Mover for CSI snapshots
8
8
9
9
:FeatureName: Data Mover for CSI snapshots
10
-
include::snippets/technology-preview.adoc[]
11
10
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.
13
14
14
-
[NOTE]
15
-
=====
16
15
Data Mover supports backup and restore of CSI volume snapshots only.
17
16
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.
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.
//* 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
+
====
20
40
21
41
.Prerequisites
22
42
23
43
* You have verified that the `StorageClass` and `VolumeSnapshotClass` custom resources (CRs) support CSI.
24
44
25
45
* 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`.
26
53
27
54
* You have verified that only one `storageClass` CR has the annotation `storageclass.kubernetes.io/is-default-class: true`.
28
55
29
56
* You have included the label `{velero-domain}/csi-volumesnapshot-class: 'true'` in your `VolumeSnapshotClass` CR.
30
57
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
+
31
67
* You have installed the VolSync Operator by using the Operator Lifecycle Manager (OLM).
32
68
+
33
69
[NOTE]
34
70
====
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.
36
72
====
37
73
38
74
* You have installed the OADP operator by using OLM.
@@ -69,10 +105,6 @@ metadata:
69
105
name: velero-sample
70
106
namespace: openshift-adp
71
107
spec:
72
-
features:
73
-
dataMover:
74
-
enable: true
75
-
credentialName: <secret_name> <1>
76
108
backupLocations:
77
109
- velero:
78
110
config:
@@ -84,18 +116,47 @@ spec:
84
116
default: true
85
117
objectStorage:
86
118
bucket: <bucket_name>
87
-
prefix: <bucket_prefix>
119
+
prefix: <bucket-prefix>
88
120
provider: aws
89
121
configuration:
90
122
restic:
91
123
enable: <true_or_false>
92
124
velero:
93
-
defaultPlugins:
125
+
itemOperationSyncFrequency: "10s"
126
+
defaultPlugins:
94
127
- openshift
95
128
- aws
96
129
- 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
+
97
153
----
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
+
99
160
+
100
161
The OADP Operator installs two custom resource definitions (CRDs), `VolumeSnapshotBackup` and `VolumeSnapshotRestore`.
0 commit comments