Skip to content

Commit c41c9cb

Browse files
authored
Merge pull request #72284 from CarmiWisemon/oadp3400-storage-mapping
OADP 3400 storage class mapping
2 parents a8e4cd0 + e5010fa commit c41c9cb

File tree

3 files changed

+70
-3
lines changed

3 files changed

+70
-3
lines changed

backup_and_restore/application_backup_and_restore/oadp-advanced-topics.adoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,22 @@ include::modules/oadp-backing-up-opt-out.adoc[leveloffset=+3]
2525
include::modules/oadp-cluster-to-cluster-uid-and-gid-ranges.adoc[leveloffset=+2]
2626
include::modules/oadp-backing-and-restoring-from-cluster-to-cluster.adoc[leveloffset=+2]
2727

28+
[id="oadp-storage-class-mapping"]
29+
== OADP storage class mapping
30+
31+
include::modules/oadp-storage-class-mapping.adoc[leveloffset=+2]
32+
include::modules/oadp-storage-class-mapping-oadp.adoc[leveloffset=+3]
33+
2834
[role="_additional-resources"]
2935
[id="additional-resources_oadp-advanced-topics"]
3036
== Additional resources
3137

32-
For more information about API group versions, see xref:../../backup_and_restore/application_backup_and_restore/oadp-advanced-topics.adoc#oadp-different-kubernetes-api-versions[Working with different Kubernetes API versions on the same cluster].
38+
* xref:../../backup_and_restore/application_backup_and_restore/oadp-advanced-topics.adoc#oadp-different-kubernetes-api-versions[Working with different Kubernetes API versions on the same cluster].
39+
40+
* xref:../../backup_and_restore/application_backup_and_restore/installing/oadp-using-data-mover-for-csi-snapshots-doc.adoc#backing-up-applications[Using Data Mover for CSI snapshots].
3341

34-
For more information about OADP Data Mover, see xref:../../backup_and_restore/application_backup_and_restore/installing/oadp-using-data-mover-for-csi-snapshots-doc.adoc#backing-up-applications[Using Data Mover for CSI snapshots].
42+
* xref:../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-applications-restic-doc.adoc#backing-up-applications[Backing up applications with File System Backup: Kopia or Restic].
3543

36-
For more information about using Restic with OADP, see xref:../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-applications-restic-doc.adoc#backing-up-applications[Backing up applications with File System Backup: Kopia or Restic].
44+
* xref:../../migration_toolkit_for_containers/advanced-migration-options-mtc.adoc#migration-converting-storage-classes_advanced-migration-options-mtc[Migration converting storage classes].
3745

3846
:!oadp-advanced-topics:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * backup_and_restore/application_backup_and_restore/advanced-topics.adoc
4+
5+
[id="oadp-storage-class-mapping-oadp_{context}"]
6+
:_mod-docs-content-type: PROCEDURE
7+
8+
[id=storage-class-mapping-oadp_{context}]
9+
= Mapping storage classes with OADP
10+
11+
You can use OpenShift API for Data Protection (OADP) with the Velero plugin v1.1.0 and later to change the storage class of a persistent volume (PV) during restores, by configuring a storage class mapping in the config map in the Velero namespace.
12+
13+
To deploy ConfigMap with OADP, use the `change-storage-class-config` field. You must change the storage class mapping based on your cloud provider.
14+
15+
.Procedure
16+
. Change the storage class mapping by running the following command:
17+
+
18+
[source,terminal]
19+
----
20+
$ cat change-storageclass.yaml
21+
----
22+
. Create a config map in the Velero namespace as shown in the following example:
23+
+
24+
.Example
25+
[source,yaml]
26+
----
27+
apiVersion: v1
28+
kind: ConfigMap
29+
metadata:
30+
name: change-storage-class-config
31+
namespace: openshift-adp
32+
labels:
33+
velero.io/plugin-config: ""
34+
velero.io/change-storage-class: RestoreItemAction
35+
data:
36+
standard-csi: ssd-csi
37+
----
38+
. Save your storage class mapping preferences by running the following command:
39+
+
40+
[source,terminal]
41+
----
42+
$ oc create -f change-storage-class-config
43+
----
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * backup_and_restore/application_backup_and_restore/advanced-topics.adoc
4+
5+
[id="oadp-storage-class-mapping_{context}"]
6+
:_mod-docs-content-type: CONCEPT
7+
= Storage class mapping
8+
9+
Storage class mapping allows you to define rules or policies specifying which storage class should be applied to different types of data. This feature automates the process of determining storage classes based on access frequency, data importance, and cost considerations. It optimizes storage efficiency and cost-effectiveness by ensuring that data is stored in the most suitable storage class for its characteristics and usage patterns.
10+
11+
You can use the `change-storage-class-config` field to change the storage class of your data objects, which lets you optimize costs and performance by moving data between different storage tiers, such as from standard to archival storage, based on your needs and access patterns.
12+
13+
[id=storage-class-mapping-mtc_{context}]
14+
== Storage class mapping with MTC
15+
16+
You can use the Migration Toolkit for Containers (MTC) to migrate containers, including application data, from one {product-title} cluster to another cluster and for storage class mapping and conversion. You can convert the storage class of a persistent volume (PV) by migrating it within the same cluster. To do so, you must create and run a migration plan in the MTC web console.

0 commit comments

Comments
 (0)