[Openstack] NOTE: Re: migrate cinder volume
Martinx - ジェームズ
thiagocmartinsc at gmail.com
Thu Apr 24 23:25:17 UTC 2014
Hi!
If the Cinder volumes *are unattached* (and are based on LVM2), you can do
this:
---
- receiving end:
host-1# nc -l 7000 | dd of=/dev/mapper/cinder-volume-BLAH bs=32768
- sending end:
host-2# dd if=/dev/mapper/cinder-volume-BLAH bs=32768 | nc host-1 7000
---
BTW Dimitri, what about BTRFS instead of ZFS?! :-P
Cheers!
Thiago
On 24 April 2014 14:06, Dimitri Maziuk <dmaziuk at bmrb.wisc.edu> wrote:
> On 04/01/2014 05:13 PM, John Griffith wrote:
> > On Tue, Apr 1, 2014 at 3:34 PM, Dimitri Maziuk <dmaziuk at bmrb.wisc.edu
> >wrote:
> >>
> >> is there a command to migrate a volume from one cinder host to another?
>
> > [root at osc-1 cinder]# cinder help migrate
> > usage: cinder migrate [--force-host-copy <True|False>] <volume> <host>
>
> FYI: this does not work with bootable volumes. That is, it will make a
> copy of the volume on <host> with new uuid. And since simply
> re-attaching /dev/vda doesn't seem to be possible, you have to either
> nuke and re-create the instance or spend an unknown amount of time
> trying to figure out exactly which tables and xmls you have to edit
> where and what services you need to restart afterwards.
>
> So the answer is you can't move any volume from one storage host to
> another, you can only copy unattached volumes.
>
> This adds to the long list of issues I have with lvm. I wish there was a
> usable zfs backend... for now I'm nuking lvm from this storage node and
> switching to nfs.
>
> --
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140424/eefae3ac/attachment.html>
More information about the Openstack
mailing list