block-migration is not working from command line

asked 2017-03-03 10:05:47 -0600

vathanlal gravatar image

updated 2017-03-03 10:12:52 -0600


I have a newton Openstack test cluster with 3 compute nodes. I configured the nodes for migration and block migration is working fine from the horizon. But when I try to run the block-migration from command line iam getting the error

server-1 is not on shared storage: Live migration can not be used without shared storage except a booted from volume VM which does not have a local disk. (HTTP 400) (Request-ID: req-102e0b57-dfd2-4feb-b776-7abd31cc717c)

Iam doing the migration of my instance from server-1 to server-2 as below

openstack server migrate 924448b6-8226-484f-a40b-c7fe43be59c7  --debug --verbose --live server-2 --block-migration

I didnt configure any shared storage because iam using block migration only. I dont know what is the reason for this because from horizon migration works perfectly. Any help is much appreciated.

edit retag flag offensive close merge delete


This is odd. Something wrong with the openstack client? Try the nova client: nova live-migration --block-migrate 924448b6-8226-484f-a40b-c7fe43be59c7 server-2

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-03 17:25:00 -0600 )edit

I'm having the exact same issue, using Newton. Live block migration from gui/horizon works fine. When attempted from command line I get the "Live migration can not be used without shared storage.." error. Nova command fails all together. Having to rely on the GUI is unacceptable.

Fernando.S gravatar imageFernando.S ( 2018-01-11 09:53:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-03 10:35:05 -0600

is your /var/lib/nova/instances shared and visible between the 2 servers? I know for live migration to work each server instances must me a shared mount.

edit flag offensive delete link more


I think for block-migration that is not needed. This is what they mentioned in the documentation "NOVA-INST-DIR/instances is local to each host rather than shared. No NFS client or server configuration is required."

vathanlal gravatar imagevathanlal ( 2017-03-03 10:41:15 -0600 )edit

from the request it looks like you are trying live. server-1 is not on shared storage: Live migration can not be used without shared storage

power the server off and try to migrate it. or remove the --live option......

bcollins gravatar imagebcollins ( 2017-03-03 15:44:18 -0600 )edit

Shared storage is not required when you use the block migration option.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-03 17:27:09 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2017-03-03 10:05:47 -0600

Seen: 1,369 times

Last updated: Mar 03 '17