To migrate an attached Cinder volume to a different datastore, you must migrate the virtual machine that corresponds to the instance to which it is attached.
Detach any snapshots that are attached to the volume.
- Log in to the OpenStack Management Server and prepare the volume for migration.
This step prepares all volumes on the specified datastore for migration.
sudo viocli ds-migrate-prep dc-name ds-name
Enter the data center that contains the desired volume.
Enter the datastore that contains the desired volume.
- In the vSphere Client, locate the virtual machine that corresponds to the compute instance to which the volume is attached.
- Use Storage vMotion to migrate the virtual machine to a different datastore.
The volume migrates to the new datastore, but only the disk of the shadow VM moves to the new datastore. The shadow VM remains on the old datastore with no disk.
- (Optional) To fix the disk of the shadow VM, run a volume detach procedure.
The detach operation disconnects the volume from the instance. Failures to read or write from the volume might occur.