Use the viocli migrate volume command to migrate resources in your deployment.
The following parameter applies to the viocli migrate volume command.
Parameter | Mandatory or Optional | Description |
---|---|---|
-v or --verbose |
Optional |
Displays output in verbose mode. |
You can run viocli migrate volume -h or viocli migrate volume --help to display the parameters for the command.
viocli migrate volume {--volume-ids volume1-uuid... | --source-dc src-dc-name --source-ds src-ds-name] dest-dc-name dest-ds-name [--ignore-storage-policy] [-v]
Migrate one or more non-attached Cinder volumes from one datastore to another.
Parameter | Mandatory or Optional | Description |
---|---|---|
--volume-ids |
Mandatory if --source-dc and --source-ds are not used. |
UUID of the volume that you want to migrate. You can include multiple UUIDs separated by commas (,). If you want to migrate all volumes from a datastore, use the --source-dc and --source-ds parameters instead of this parameter. |
--source-dc src-dc-name |
Mandatory if --volume-ids is not used. |
Name of the datastore containing the volumes that you want to migrate. This parameter must be used together with the --source-dc parameter. If you want to migrate specified volumes only, do not include this parameter. |
--source-ds src-ds-name |
Mandatory if --volume-ids is not used. |
Name of the datastore containing the volumes that you want to migrate. This parameter must be used together with the --source-dc parameter. If you want to migrate specified volumes only, do not include this parameter. |
dest-dc-name |
Mandatory |
Name of the data center that contains the datastore to which you want to migrate volumes. |
dest-ds-name |
Mandatory |
Name of the datastore to which you want to migrate volumes. |
--ignore-storage-policy |
Optional |
Migrates volumes to the target datastore even if the datastore does not comply with the storage policy of the volume. |
--vcenter-name vcenter-name | Optional |
Name of the vCenter CR. Default is management vCenter. |