Re: [openstack-dev] what code in cinder volume driver supports volume migration between two backends of same type but having different volume types? [cinder]

2015-03-01 Thread Duncan Thomas
Please do feel free to write a  patch - you can probably do the best job,
given that the questions are still fresh in your mind.

On 1 March 2015 at 21:37, Nikesh Kumar Mahalka 
wrote:

>
> Thanks,
> I think if these informations are added in openstack documents having
> topic "volume migration" then it would be good for new folks in cinder.
>
> Regards
> Nikesh
>
> On Sun, Mar 1, 2015 at 10:12 PM, Duncan Thomas 
> wrote:
>
>> Migrate - move between backends of the same volume type
>> Retype - move between types. Will migrate the volume for you if necessary
>>
>> On 1 March 2015 at 09:40, Avishay Traeger 
>> wrote:
>>
>>> Nikesh,
>>> The case you are trying is supposed to fail.  You have a volume of type
>>> dothill_realstor1 which is defined to say "this volume must be on backend
>>> DotHill_RealStor1".  This is a requirement that you defined for that
>>> volume.  Now you want to migrate it to realstor2, which is a violation of
>>> the requirement that you specified.  To migrate it, you should change the
>>> volume type (retype), which changes the requirement.
>>>
>>> Thanks,
>>> Avishay
>>>
>>> On Sat, Feb 28, 2015 at 11:02 AM, Nikesh Kumar Mahalka <
>>> nikeshmaha...@vedams.com> wrote:
>>>
 I tried below link  for volume migration on my driver and also similar
 efforts for LVM.
 Even whatever documents available in openstack for
 volume-migration,each one showing volume migration of a volume having
 volume type None

 I added host assisted volume migration function in my cinder driver.
 When i am trying volume migration on a volume without volume type,then
 my volume migration function is getting called and i  am able to do
 volume migration.

 But when i am trying volume migration on a volume having volume
 type,then my volume migration function is not getting called.


 http://paste.openstack.org/show/183392/
 http://paste.openstack.org/show/183405/



 On Tue, Jan 20, 2015 at 12:31 AM, Nikesh Kumar Mahalka
  wrote:
 > do cinder retype (v2) works for lvm?
 > How to use cinder retype?
 >
 > I tried for volume migration from one volume-type LVM backend to
 > another volume-type LVM backend.But its failed.
 > How can i acheive this?
 >
 > Similarly i am writing a cinder volume driver for my array and want to
 > migrate volume from one volume type to another volume type for my
 > array backends.
 > so want to know how can i achieve this in cinder driver?
 >
 >
 >
 > Regards
 > Nikesh


 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe:
 openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

>>>
>>>
>>>
>>> --
>>> *Avishay Traeger*
>>> *Storage R&D*
>>>
>>> Mobile: +972 54 447 1475
>>> E-mail: avis...@stratoscale.com
>>>
>>>
>>>
>>> Web  | Blog
>>>  | Twitter
>>>  | Google+
>>> 
>>>  | Linkedin 
>>>
>>>
>>> __
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>>
>>
>> --
>> Duncan Thomas
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Duncan Thomas
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] what code in cinder volume driver supports volume migration between two backends of same type but having different volume types? [cinder]

2015-03-01 Thread Nikesh Kumar Mahalka
Thanks,
I think if these informations are added in openstack documents having topic
"volume migration" then it would be good for new folks in cinder.

Regards
Nikesh

On Sun, Mar 1, 2015 at 10:12 PM, Duncan Thomas 
wrote:

> Migrate - move between backends of the same volume type
> Retype - move between types. Will migrate the volume for you if necessary
>
> On 1 March 2015 at 09:40, Avishay Traeger  wrote:
>
>> Nikesh,
>> The case you are trying is supposed to fail.  You have a volume of type
>> dothill_realstor1 which is defined to say "this volume must be on backend
>> DotHill_RealStor1".  This is a requirement that you defined for that
>> volume.  Now you want to migrate it to realstor2, which is a violation of
>> the requirement that you specified.  To migrate it, you should change the
>> volume type (retype), which changes the requirement.
>>
>> Thanks,
>> Avishay
>>
>> On Sat, Feb 28, 2015 at 11:02 AM, Nikesh Kumar Mahalka <
>> nikeshmaha...@vedams.com> wrote:
>>
>>> I tried below link  for volume migration on my driver and also similar
>>> efforts for LVM.
>>> Even whatever documents available in openstack for
>>> volume-migration,each one showing volume migration of a volume having
>>> volume type None
>>>
>>> I added host assisted volume migration function in my cinder driver.
>>> When i am trying volume migration on a volume without volume type,then
>>> my volume migration function is getting called and i  am able to do
>>> volume migration.
>>>
>>> But when i am trying volume migration on a volume having volume
>>> type,then my volume migration function is not getting called.
>>>
>>>
>>> http://paste.openstack.org/show/183392/
>>> http://paste.openstack.org/show/183405/
>>>
>>>
>>>
>>> On Tue, Jan 20, 2015 at 12:31 AM, Nikesh Kumar Mahalka
>>>  wrote:
>>> > do cinder retype (v2) works for lvm?
>>> > How to use cinder retype?
>>> >
>>> > I tried for volume migration from one volume-type LVM backend to
>>> > another volume-type LVM backend.But its failed.
>>> > How can i acheive this?
>>> >
>>> > Similarly i am writing a cinder volume driver for my array and want to
>>> > migrate volume from one volume type to another volume type for my
>>> > array backends.
>>> > so want to know how can i achieve this in cinder driver?
>>> >
>>> >
>>> >
>>> > Regards
>>> > Nikesh
>>>
>>>
>>> __
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>
>>
>>
>> --
>> *Avishay Traeger*
>> *Storage R&D*
>>
>> Mobile: +972 54 447 1475
>> E-mail: avis...@stratoscale.com
>>
>>
>>
>> Web  | Blog
>>  | Twitter
>>  | Google+
>> 
>>  | Linkedin 
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
>
> --
> Duncan Thomas
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] what code in cinder volume driver supports volume migration between two backends of same type but having different volume types? [cinder]

2015-03-01 Thread Duncan Thomas
Migrate - move between backends of the same volume type
Retype - move between types. Will migrate the volume for you if necessary

On 1 March 2015 at 09:40, Avishay Traeger  wrote:

> Nikesh,
> The case you are trying is supposed to fail.  You have a volume of type
> dothill_realstor1 which is defined to say "this volume must be on backend
> DotHill_RealStor1".  This is a requirement that you defined for that
> volume.  Now you want to migrate it to realstor2, which is a violation of
> the requirement that you specified.  To migrate it, you should change the
> volume type (retype), which changes the requirement.
>
> Thanks,
> Avishay
>
> On Sat, Feb 28, 2015 at 11:02 AM, Nikesh Kumar Mahalka <
> nikeshmaha...@vedams.com> wrote:
>
>> I tried below link  for volume migration on my driver and also similar
>> efforts for LVM.
>> Even whatever documents available in openstack for
>> volume-migration,each one showing volume migration of a volume having
>> volume type None
>>
>> I added host assisted volume migration function in my cinder driver.
>> When i am trying volume migration on a volume without volume type,then
>> my volume migration function is getting called and i  am able to do
>> volume migration.
>>
>> But when i am trying volume migration on a volume having volume
>> type,then my volume migration function is not getting called.
>>
>>
>> http://paste.openstack.org/show/183392/
>> http://paste.openstack.org/show/183405/
>>
>>
>>
>> On Tue, Jan 20, 2015 at 12:31 AM, Nikesh Kumar Mahalka
>>  wrote:
>> > do cinder retype (v2) works for lvm?
>> > How to use cinder retype?
>> >
>> > I tried for volume migration from one volume-type LVM backend to
>> > another volume-type LVM backend.But its failed.
>> > How can i acheive this?
>> >
>> > Similarly i am writing a cinder volume driver for my array and want to
>> > migrate volume from one volume type to another volume type for my
>> > array backends.
>> > so want to know how can i achieve this in cinder driver?
>> >
>> >
>> >
>> > Regards
>> > Nikesh
>>
>> __
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
>
>
> --
> *Avishay Traeger*
> *Storage R&D*
>
> Mobile: +972 54 447 1475
> E-mail: avis...@stratoscale.com
>
>
>
> Web  | Blog
>  | Twitter
>  | Google+
> 
>  | Linkedin 
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Duncan Thomas
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] what code in cinder volume driver supports volume migration between two backends of same type but having different volume types? [cinder]

2015-02-28 Thread Avishay Traeger
Nikesh,
The case you are trying is supposed to fail.  You have a volume of type
dothill_realstor1 which is defined to say "this volume must be on backend
DotHill_RealStor1".  This is a requirement that you defined for that
volume.  Now you want to migrate it to realstor2, which is a violation of
the requirement that you specified.  To migrate it, you should change the
volume type (retype), which changes the requirement.

Thanks,
Avishay

On Sat, Feb 28, 2015 at 11:02 AM, Nikesh Kumar Mahalka <
nikeshmaha...@vedams.com> wrote:

> I tried below link  for volume migration on my driver and also similar
> efforts for LVM.
> Even whatever documents available in openstack for
> volume-migration,each one showing volume migration of a volume having
> volume type None
>
> I added host assisted volume migration function in my cinder driver.
> When i am trying volume migration on a volume without volume type,then
> my volume migration function is getting called and i  am able to do
> volume migration.
>
> But when i am trying volume migration on a volume having volume
> type,then my volume migration function is not getting called.
>
>
> http://paste.openstack.org/show/183392/
> http://paste.openstack.org/show/183405/
>
>
>
> On Tue, Jan 20, 2015 at 12:31 AM, Nikesh Kumar Mahalka
>  wrote:
> > do cinder retype (v2) works for lvm?
> > How to use cinder retype?
> >
> > I tried for volume migration from one volume-type LVM backend to
> > another volume-type LVM backend.But its failed.
> > How can i acheive this?
> >
> > Similarly i am writing a cinder volume driver for my array and want to
> > migrate volume from one volume type to another volume type for my
> > array backends.
> > so want to know how can i achieve this in cinder driver?
> >
> >
> >
> > Regards
> > Nikesh
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
*Avishay Traeger*
*Storage R&D*

Mobile: +972 54 447 1475
E-mail: avis...@stratoscale.com



Web  | Blog 
 | Twitter  | Google+

 | Linkedin 
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] what code in cinder volume driver supports volume migration between two backends of same type but having different volume types? [cinder]

2015-02-28 Thread Nikesh Kumar Mahalka
I tried below link  for volume migration on my driver and also similar
efforts for LVM.
Even whatever documents available in openstack for
volume-migration,each one showing volume migration of a volume having
volume type None

I added host assisted volume migration function in my cinder driver.
When i am trying volume migration on a volume without volume type,then
my volume migration function is getting called and i  am able to do
volume migration.

But when i am trying volume migration on a volume having volume
type,then my volume migration function is not getting called.


http://paste.openstack.org/show/183392/
http://paste.openstack.org/show/183405/



On Tue, Jan 20, 2015 at 12:31 AM, Nikesh Kumar Mahalka
 wrote:
> do cinder retype (v2) works for lvm?
> How to use cinder retype?
>
> I tried for volume migration from one volume-type LVM backend to
> another volume-type LVM backend.But its failed.
> How can i acheive this?
>
> Similarly i am writing a cinder volume driver for my array and want to
> migrate volume from one volume type to another volume type for my
> array backends.
> so want to know how can i achieve this in cinder driver?
>
>
>
> Regards
> Nikesh

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev