[Openstack] migrate cinder volume

John Griffith john.griffith at solidfire.com
Tue Apr 1 22:13:45 UTC 2014


On Tue, Apr 1, 2014 at 3:34 PM, Dimitri Maziuk <dmaziuk at bmrb.wisc.edu>wrote:

> Hi all,
>
> is there a command to migrate a volume from one cinder host to another?
>
> TIA
> --
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
If you're on Havana or later you can use the migrate command:

[root at osc-1 cinder]# cinder help migrate
usage: cinder migrate [--force-host-copy <True|False>] <volume> <host>

Migrate the volume to the new host.

Positional arguments:
  <volume>              ID of the volume to migrate
  <host>                Destination host

Optional arguments:
  --force-host-copy <True|False>
                        Optional flag to force the use of the generic host-
                        based migration mechanism, bypassing driver
                        optimizations (Default=False).
[root at osc-1 cinder]#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140401/e5616e0a/attachment.html>


More information about the Openstack mailing list