1 | initial version |
Hi,
Resizes and cold migrations follow the same workflow, which goes like this:
The main advantages of this workflow are that:
We're aware that this comes with a couple of disadvantages that may be addressed in the future:
To answer your questions: it's possible to recover the instance. The required actions depend on which step failed:
The nova revert-resize command won't help too much in this situation. While some docs state that it can be used to recover failed resizes, it doesn't accept instances that are in ERROR state or instances that have been cold migrated and not resized (which may be considered a Nova limitation).
There are a couple of (ugly) workarounds if you don't want the instance to be removed from hyper-v/failover cluster during cold migrations:
There aren't many migration related config options. Here's a full list of Nova config options that are specific to the Hyper-V driver [1]. You may be interested in the live migration timeouts (don't apply to cold migrations or resizes, we may use such an option in the future) or the failover settings. Apart from those, there is an option to force the instance files to use the same location after cold migrations/resizes (some people use that when having multiple CSVs). It's called "movedisksoncoldmigration" and it's True by default.
Let me know if you have further questions.
Best regards,
Lucian Petrut
[1] https://compute-hyperv.readthedocs.io/en/latest/configuration/config.html#hyperv
2 | No.2 Revision |
Hi,
Resizes and cold migrations follow the same workflow, which goes like this:
The main advantages of this workflow are that:
We're aware that this comes with a couple of disadvantages that may be addressed in the future:
To answer your questions: it's possible to recover the instance. The required actions depend on which step failed:
The nova revert-resize command won't help too much in this situation. While some docs state that it can be used to recover failed resizes, it doesn't accept instances that are in ERROR state or instances that have been cold migrated and not resized (which may be considered a Nova limitation).
There are a couple of (ugly) workarounds if you don't want the instance to be removed from hyper-v/failover cluster during cold migrations:
There aren't many migration related config options. Here's a full list of Nova config options that are specific to the Hyper-V driver [1]. You may be interested in the live migration timeouts (don't apply to cold migrations or resizes, we may use such an option in the future) or the failover settings. Apart from those, there is an option to force the instance files to use the same location after cold migrations/resizes (some people use that when having multiple CSVs). It's called "movedisksoncoldmigration" and it's True by default.
Let me know if you have further questions.questions. Feel free to post the actual error message, we may help debugging the actual cause of the migration failure.
Best regards,
Lucian Petrut
[1] https://compute-hyperv.readthedocs.io/en/latest/configuration/config.html#hyperv