How-To Migrate Volumes Using CLI

Problem

You want to migrate volumes from one Cinder pool to another pool.

Environment

  • Platform9 Managed OpenStack - All Versions
  • Cinder

Answer

There are two major scenarios for which volume migration is supported in Cinder:

  1. Migration between two back-ends with the same volume type, regardless if they are located on the same cinder-volume host or not.
Copy

Note: Currently, error handling for failed migration operations is under development in Cinder. If you would like the volume migration to finish without any interruption, please set –-lock-volume to True. If it is set to False, Openstack cannot predict what will happen, if other actions like attach, detach, extend, etc, are issued on the volume during the migration. It all depends on which stage the volume migration has reached and when the request for another action comes.

  1. Migration between two back-ends with different volume types, regardless if the back-ends are located on the same cinder-volume host or not. Here, the source volume type and destination volume type must be different and they must refer to different back-ends.
Copy

Additional Information

Please refer to the official document for more information.

Volume Migration via CLI.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard