Transform the data extract

Once you have extracted the data from your MSR 2.9.x system, you must transform the metadata into a format that is suitable for migration to an MSR 3.0 system.

To transform the data extract, run the following command on the target MSR 3.0.x system:

docker run \
--rm -it \
-v $HOME/.kube/config:/.kube/config \
-v <local-migration-directory>:/migration:Z \
-e KUBECONFIG='/.kube/config' \
registry.mirantis.com/msr/mmt:<mmt-version> \
transform metadata msr  \
--storage-mode <inplace|copy> \
/migration

Important

The Kubernetes context for the MSR 3.0 system must be present in $HOME/.kube/config or it must be explicitly passed to MMT, using the following option:

-v /path/to/context/kube.yml:/.kube/config/kube.yml
Command line parameters

Parameter

Description

storage-mode

Set the registry migration storage mode.

Valid values: inplace, copy

disable-analytics

Optional. Disables MMT metrics collection for the transform command. You must include the flag each time you run the command.

Example output:

Writing migration summary file
Finalizing backup directory structure
Creating tar file
Cleaning transform operation artifacts from directory: "/home/<user-directory>/tmp/migrate"