<div dir="ltr">Hi!<div><br></div><div>If the Cinder volumes <u>are unattached</u> (and are based on LVM2), you can do this:</div><div><br></div><div>---</div><div>- receiving end:</div><div><br></div><div>host-1# nc -l 7000 | dd of=/dev/mapper/cinder-volume-BLAH bs=32768</div>
<div><br></div><div><br></div><div>- sending end:</div><div><br></div><div>host-2# dd if=/dev/mapper/cinder-volume-BLAH bs=32768 | nc host-1 7000</div><div>---</div><div><br></div><div>BTW Dimitri, what about BTRFS instead of ZFS?! :-P</div>
<div><br></div><div>Cheers!</div><div>Thiago</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 April 2014 14:06, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 04/01/2014 05:13 PM, John Griffith wrote:<br>
> On Tue, Apr 1, 2014 at 3:34 PM, Dimitri Maziuk <<a href="mailto:dmaziuk@bmrb.wisc.edu">dmaziuk@bmrb.wisc.edu</a>>wrote:<br>
>><br>
>> is there a command to migrate a volume from one cinder host to another?<br>
<br>
> [root@osc-1 cinder]# cinder help migrate<br>
> usage: cinder migrate [--force-host-copy <True|False>] <volume> <host><br>
<br>
FYI: this does not work with bootable volumes. That is, it will make a<br>
copy of the volume on <host> with new uuid. And since simply<br>
re-attaching /dev/vda doesn't seem to be possible, you have to either<br>
nuke and re-create the instance or spend an unknown amount of time<br>
trying to figure out exactly which tables and xmls you have to edit<br>
where and what services you need to restart afterwards.<br>
<br>
So the answer is you can't move any volume from one storage host to<br>
another, you can only copy unattached volumes.<br>
<br>
This adds to the long list of issues I have with lvm. I wish there was a<br>
usable zfs backend... for now I'm nuking lvm from this storage node and<br>
switching to nfs.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<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>