How-To Migrate Volumes Using CLI
Problem
You want to migrate volumes from one Cinder pool to another pool.
Environment
Answer
cinder migrate [--force-host-copy [[True|False]]] [--lock-volume [[True|False]]] [volume] [host]
Mandatory arguments:
[volume] ID of volume to migrate.
[host]Destination host.The format of host is host@backend#POOL, while 'host' is the host name of the volume node, 'backend' is the back-end name and 'POOL' is a logical concept to describe a set of storage resource, residing in the back-end. If the back-end does not have specified pools, 'POOL' needs to be set with the same name as 'backend'.
Optional arguments:
--force-host-copy [[True|False]] Enables or disables generic host-based force-migration,which bypasses the driver optimization.Default=False.
--lock-volume [[True|False]] Enables or disables the termination of volume migration caused by other commands. This option applies to the available volume. True means it locks the volume state and does not allow the migration to be aborted. The volume status will be in maintenance during the migration. False means it allows the volume migration to be aborted. The volume status is still in the original status. Default=False.Additional Information
Last updated
