Data store migration - steps and resources

(Michael Abdou) #1

A few questions came up through Twitter about how to migrate storage configurations from one data store to another. I figure the best place to follow up and share this information is here in the Developers’ Forum.

This functionality is currently available for KVM hypervisors. For vCenter support, it will be included in the upcoming v.5.8 “Edge” release.

Here are the details for KVM:

Hope this is helpful!

(Michael Abdou) #2

I just got this question:

“I just want to move the “harddisk” of the vm from say datastore id 1 (local) to datastore id 106 (some ceph cluster) .”

Answer: You can keep it in the same host (same hostid) and just specify a new datastore ([datastoreid]).

(Florian Heigl) #3

Hi Michael,

thanks for noticing that there are many people who don’t yet know how to use this.
I think a complete example would be better, unfortunately I also don’t got the time to do it.
maybe it helps if I at least indicate what I mean…

Things that would make up a complete example:

  • onevm show of the vm, indicating the original image
  • oneimage show of the image
  • onevm migrate … with the actual parameters and the output
  • what it looks like if it fails (i.e. if i run it against some unsupported datastore/image type)
  • hints about where errors are logged if it goes wrong
  • onevm show output, indicating the exact spot and output it would show if it worked
  • oneimage show output, indicating the exact spot and output it would show if it worked
  • details about conditions that can cause it to fail, and conditions where it could be safely retried

(Why all those steps: The onevm man page is good reference documentation - helpful, but not something that you can verify your own results against.
As is every user still has to do the guesswork and bears the risk of making errors without knowing they do so)