Ask Your Question

moving instance root

asked 2017-04-25 19:19:02 -0500

starnight gravatar image


I accidentally created an instance on the /var/lib/nova/instances directory. I need to move to a cinder volume. Also, reduce from root disk from 100G (flavo disk size) to 20G cinder volume. Any help is appreciated.

Thanks, SN

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-04-26 05:46:36 -0500

Delete the instance, then start another one from a volume. The flavor disk size doesn't count when you boot from volume.

If you need to keep the current state of the ephemeral root disk, take an instance snapshot. This results in an image. Create a volume from that image and launch an instance from it. I am not sure how large that volume would be, though.

There is no support for changing an instance from ephemeral to volume storage. While you could attach a volume and copy the root disk to it, I don't know how you can convince the instance to boot from the volume next time you reboot it.

edit flag offensive delete link more

answered 2017-04-27 06:51:20 -0500

starnight gravatar image


Thanks. Since the instance contents cannot be destroyed, we will take the attach volume route.

Thanks, Ashok

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-25 19:19:02 -0500

Seen: 317 times

Last updated: Apr 27 '17