Estimate the migration¶
Before extracting the data for migration you must estimate the number of images and the amount of metadata to migrate from your MSR 2.9.x system to the new MSR 3.0.x system. To do so, run the following command on the source MSR 2.9.x system:
docker run \
--rm \
-it \
-v <local-migration-directory>:/migration:Z \
registry.mirantis.com/msr/mmt:<mmt-version> \
estimate msr \
--source-mke-url <mke-url> \
--source-username <mke-admin-username> \
--source-password <mke-admin-password> \
--source-url <msr-2.9-url> \
--storage-mode <inplace|copy> \
--source-insecure-tls \
/migration
Parameter |
Description |
---|---|
|
Set the URL for the source Mirantis Kubernetes Engine (MKE) system. |
|
Set the username of the admin user for the MKE system running MSR 2.9.x. |
|
Set the password of the admin user for the MKE system running MSR 2.9.x. |
|
Set the URL for the source MSR 2.9.x system. |
|
Set the registry migration storage mode. Valid values: |
|
Optional. Set whether to use an insecure connection. Valid values: |
Example output:
Source Registry: "https://172.17.0.1" (Type: "msr") with authentication data from MKE: "https://172.17.0.1:444"
Mode: "copy"
Metadata: 30 MB
Image tags: 2 (2.8 MB)
As a result, all existing MSR storage is copied.