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 nikeshmaha...@vedams.com
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 duncan.tho...@gmail.com
 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 avis...@stratoscale.com
 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
 nikeshmaha...@vedams.com 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 RD*

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



 Web http://www.stratoscale.com/ | Blog
 http://www.stratoscale.com/blog/ | Twitter
 https://twitter.com/Stratoscale | Google+
 https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts
  | Linkedin https://www.linkedin.com/company/stratoscale


 __
 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 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 avis...@stratoscale.com 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
 nikeshmaha...@vedams.com 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 RD*

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



 Web http://www.stratoscale.com/ | Blog
 http://www.stratoscale.com/blog/ | Twitter
 https://twitter.com/Stratoscale | Google+
 https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts
  | Linkedin https://www.linkedin.com/company/stratoscale

 __
 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 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
nikeshmaha...@vedams.com 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


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
 nikeshmaha...@vedams.com 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 RD*

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



Web http://www.stratoscale.com/ | Blog http://www.stratoscale.com/blog/
 | Twitter https://twitter.com/Stratoscale | Google+
https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts
 | Linkedin https://www.linkedin.com/company/stratoscale
__
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?

2015-01-21 Thread Avishay Traeger
On Mon, Jan 19, 2015 at 8:01 PM, Nikesh Kumar Mahalka 
nikeshmaha...@vedams.com wrote:

 do cinder retype (v2) works for lvm?
 How to use cinder retype?


As far as I remember, LVM doesn't really leverage volume types.  What types
did you define, and what command are you running?


 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?


It should work.  Please provide the commands you ran, the result, and all
relevant logs.


 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?


There are several driver APIs that you can implement.  First, you are most
likely inheriting generic migration/retype from the base driver class.
This works by creating a new volume, and moving data from the original to
the new either using the hypervisor (for an attached volume) or by
attaching  both volumes to a server running cinder-volume and running dd.
Your driver may be able to do more optimized migrations/retypes by
implementing the respective APIs.  The IBM storwize/svc driver implements
both, as do several others - I suggest you look at them for examples.

Thanks,
Avishay


-- 
*Avishay Traeger*
*Storage RD*

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



Web http://www.stratoscale.com/ | Blog http://www.stratoscale.com/blog/
 | Twitter https://twitter.com/Stratoscale | Google+
https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts
 | Linkedin https://www.linkedin.com/company/stratoscale
__
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?

2015-01-19 Thread Mike Perez
On 00:31 Tue 20 Jan , Nikesh Kumar Mahalka wrote:
 do cinder retype (v2) works for lvm?
 How to use cinder retype?

In the future, please have your subject prefixed with [cinder].

 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?

Please provide your cinder-api, cinder-vol, and cinder-scheduler service logs.
You can paste things to http://paste.openstack.org

-- 
Mike Perez

__
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-dev] what code in cinder volume driver supports volume migration between two backends of same type but having different volume types?

2015-01-19 Thread Nikesh Kumar Mahalka
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