<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 1, 2014 at 3:34 PM, Dimitri Maziuk <span dir="ltr"><<a href="mailto:dmaziuk@bmrb.wisc.edu" target="_blank">dmaziuk@bmrb.wisc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all,<br>
<br>
is there a command to migrate a volume from one cinder host to another?<br>
<br>
TIA<br>
<span class=""><font color="#888888">--<br>
Dimitri Maziuk<br>
Programmer/sysadmin<br>
BioMagResBank, UW-Madison -- <a href="http://www.bmrb.wisc.edu" target="_blank">http://www.bmrb.wisc.edu</a><br>
<br>
</font></span><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:'courier new',monospace">If you're on Havana or later you can use the migrate command:</div><div class="gmail_default" style="font-family:'courier new',monospace">
<br></div><div class="gmail_default"><font face="courier new, monospace">[root@osc-1 cinder]# cinder help migrate</font></div><div class="gmail_default"><font face="courier new, monospace">usage: cinder migrate [--force-host-copy <True|False>] <volume> <host></font></div>
<div class="gmail_default"><font face="courier new, monospace"><br></font></div><div class="gmail_default"><font face="courier new, monospace">Migrate the volume to the new host.</font></div><div class="gmail_default"><font face="courier new, monospace"><br>
</font></div><div class="gmail_default"><font face="courier new, monospace">Positional arguments:</font></div><div class="gmail_default"><font face="courier new, monospace"> <volume> ID of the volume to migrate</font></div>
<div class="gmail_default"><font face="courier new, monospace"> <host> Destination host</font></div><div class="gmail_default"><font face="courier new, monospace"><br></font></div><div class="gmail_default">
<font face="courier new, monospace">Optional arguments:</font></div><div class="gmail_default"><font face="courier new, monospace"> --force-host-copy <True|False></font></div><div class="gmail_default"><font face="courier new, monospace"> Optional flag to force the use of the generic host-</font></div>
<div class="gmail_default"><font face="courier new, monospace"> based migration mechanism, bypassing driver</font></div><div class="gmail_default"><font face="courier new, monospace"> optimizations (Default=False).</font></div>
<div class="gmail_default"><font face="courier new, monospace">[root@osc-1 cinder]#</font><span style="font-family:'courier new',monospace"></span></div><br></div></div>