r/openstack • • Jun 08 '23

nova vs cinder as boot volume

good morning,

any good reason to keep nova glance images as default boot, instead of using creating a new volume in cinder?

using cinder for me is good at all because i can cinder-backup volumes to external nfs, nova boot volumes can only snap and create a new image in glance...

thank you

7 Upvotes

6 comments sorted by

5

u/SilverSQL Jun 08 '23

There's no good reason to keep booting from a local image. This is pure legacy and the official stance is to use Cinder volumes.

If you don't care about a particular volume past the instances' life, you can tell Nova to delete a particular volume when the instance is deleted.

1

u/Sepherjar Jun 22 '23

Hmmmm, I'm not the OP but, can we use the same volume to boot multiple instances?

I own a small homelab but I don't have cinder/swift there yet and so I don't boot from volume or create backups. Now I'm curious with the boot volume approach :O

Is there any reason why the best approach are volumes? I always thought it'd be images.

2

u/SilverSQL Jun 23 '23

Using Cinder block storage, hence volumes, only makes sense if you intend to use a storage system. Note that a storage system is an LVM setup that exports volumes via iSCSI too.

A major benefit is that you can save the disks of a VM for later use. While you can achieve the same goal by saving an instance to an image, keep in mind that you can attach only a single image to an instance. Using volumes you can manage what devices are attached to the instance in far greater depth.

Also, volumes can be attached and detached without powering down an instance.

2

u/przfr Jun 08 '23

The reason could be disk performance, mainly latency and IOPs.

2

u/rmdf Jun 08 '23 edited Jun 14 '23

I used to boot from a image using 'openstack server create --image imagename ...' because you need to write less,but...

Today I prefer the two steps approach:

vol=$(openstack volume create --image...)
openstack server create --volume vol... 

For a reason. If there is an error, you can see if the problem is in cinder or is in nova. If the problem is Nova, you can solve and launch faster, because the volume was already created. Also, you set the volumes name for free.