Ask Your Question
0

moving instance root

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

starnight gravatar image

Hello,

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
0

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

starnight gravatar image

Bernd,

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

Thanks, Ashok

edit flag offensive delete link more
0

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

Bernd Bausch gravatar image

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 102 times

Last updated: Apr 27