From 39448cf3e5922d1a081401969c3e22b22eb98b8b Mon Sep 17 00:00:00 2001
From: "m.lorini" <marco.lorini@garr.it>
Date: Wed, 11 Dec 2019 11:42:27 +0100
Subject: [PATCH] Add documentation about migration with instances reboot for
 ephemeral and volume instances

---
 .../kb/openstack/manual_VM_host_migration.rst | 33 +++++++++++++++++--
 1 file changed, 30 insertions(+), 3 deletions(-)

diff --git a/web/support/kb/openstack/manual_VM_host_migration.rst b/web/support/kb/openstack/manual_VM_host_migration.rst
index 3fef743b..42be3813 100644
--- a/web/support/kb/openstack/manual_VM_host_migration.rst
+++ b/web/support/kb/openstack/manual_VM_host_migration.rst
@@ -13,6 +13,22 @@ Migration for ephemeral instances with status *stopped/suspended/paused*::
 
   $ nova migrate --poll 679511f2-4df1-44cc-883d-b3a37402e976
 
+**ACTIVE instances: migration with instances reboot**
+
+If the instance is in Active status and it is build on Ephemeral storage, the follows commands allows the migration with instances reboot::
+
+    $ nova migrate 27924a4a-b48e-4e3a-9786-955284d21e88
+
+If you want it is possible add the *poll* option to report the server migration progress until it completes.
+
+Alternatively you can use the Openstack command for the migration::
+
+ $ openstack migrate 27924a4a-b48e-4e3a-9786-955284d21e88
+
+After the migration command it will be necessary confirm the resize::
+
+    $ nova resize-confirm 27924a4a-b48e-4e3a-9786-955284d21e88
+
 **ACTIVE instances: live migration**
 
 If the instance is built on Ephemeral storage, live migration is possible with the following command::
@@ -28,11 +44,20 @@ Case B: boot volume on non-ephemeral (Ceph) disk
 
 **STOPPED/SHUTDOWN/PAUSED instances: migration**
 
-
-Migration for ephemeral instances with status *stopped/suspended/paused*::
+Migration for non-ephemeral instances with status *stopped/suspended/paused*::
 
   $ openstack server migrate --wait 679511f2-4df1-44cc-883d-b3a37402e976
 
+**ACTIVE instances: migration with instances reboot**
+
+If the instance is in Active status and it is built on Ceph volume, the follows commands allows the migration with instances reboot::
+
+ $ openstack server migrate fcc624c7-24b7-4c11-b6cf-13cdae84d640
+
+Also in this case, after the migration command it will be necessary confirm the resize::
+
+    $ nova resize-confirm fcc624c7-24b7-4c11-b6cf-13cdae84d640
+
 **ACTIVE instances: live migration**
 
 If the instance is built on Ceph volume, execute::
@@ -43,7 +68,9 @@ If you want to have control over the destination host to move the VM to, append
 
   $ openstack server migrate --live ct1-r3-s15 --block-migration fcc624c7-24b7-4c11-b6cf-13cdae84d640
 
-(note the *--block-migration* is needed here)
+If the preview command return an error, you can try without *--block-migration* option::
+
+    $ openstack server migrate --live ct1-r3-s15 fcc624c7-24b7-4c11-b6cf-13cdae84d640
 
 
 Method 2: manual procedure
-- 
GitLab