mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * migrating_from_ocp_3_to_4/advanced-migration-options-3-4.adoc
|
|
// * migration_toolkit_for_containers/advanced-migration-options-mtc.adoc
|
|
|
|
:_content-type: PROCEDURE
|
|
[id="migration-excluding-pvcs_{context}"]
|
|
= Excluding persistent volume claims
|
|
|
|
You select persistent volume claims (PVCs) for state migration by excluding the PVCs that you do not want to migrate. You exclude PVCs by setting the `spec.persistentVolumes.pvc.selection.action` parameter of the `MigPlan` custom resource (CR) after the persistent volumes (PVs) have been discovered.
|
|
|
|
.Prerequisites
|
|
|
|
* `MigPlan` CR is in a `Ready` state.
|
|
|
|
.Procedure
|
|
|
|
* Add the `spec.persistentVolumes.pvc.selection.action` parameter to the `MigPlan` CR and set it to `skip`:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: migration.openshift.io/v1alpha1
|
|
kind: MigPlan
|
|
metadata:
|
|
name: <migplan>
|
|
namespace: openshift-migration
|
|
spec:
|
|
...
|
|
persistentVolumes:
|
|
- capacity: 10Gi
|
|
name: <pv_name>
|
|
pvc:
|
|
...
|
|
selection:
|
|
action: skip
|
|
----
|