Use Cinder as storage backend for Nova

asked 2015-11-12 09:29:23 -0500

Herr-Herner gravatar image

The first time an image is used on a compute node that image is fetched from Glance into the /var/lib/nova/instances/_base directory. The boot disk for the instance is then created as a qcow2 disk using the image in _base as a backing file. Can we give Nova Compute Cinder as instance storage backend like it can be done in Swift? This would mean: Everytime when Nova creates a VM, it requests a bootable volume from Cinder, creates the VM disk using the image in _base, stores it on the Cinder volume and mounts the volume into the VM.

This procedure can be done manually e.g. in Horizon, but is this scenario also supported natively by the Nova Compute implementation?

edit retag flag offensive close merge delete


Is your end goal to use Cinder or is it to get the VMs on external storage? If it is to use external storage then you could skip Cinder and instead mount an NFS share to /var/lib/nova/instances.

mpetason gravatar imagempetason ( 2015-11-12 12:43:56 -0500 )edit

We are planning to use Cinder on a Fibre SAN. A shared storage based on a Fibre volume would require a cluster file system (OCFS2, GFS2, ...) which we want to avoid because of bad performance experiences under high load. Cinder would be the perfect candidate for that job.

Herr-Herner gravatar imageHerr-Herner ( 2015-11-12 23:23:36 -0500 )edit