LVM disks support in OpenStack Nova Folsom

Recently, we have implemented LVM disk support functionality (based on our work for Diablo) and successfully delivered it to upstream.

New LVM image backend can be enabled by setting libvirt_images_type flag to value lvm.

You must also specify volume group name for VM disks, which is done by setting libvirt_images_volume_group option (for example libvirt_images_volume_group=NovaVG).

Backend supports usual logical volumes with full space allocation. However, it is possible to use sparse logical volumes (which are created with option –virtualsize). In this case, you need specify libvirt_sparse_logical_volumes=True in nova.conf. When this mode is enabled, nova will file warning messages to log on attempt to allocate sparse logical volume with possible size, that exceeds size of volume group used to hold VM disks.

For more information on this functionality please see blueprint.

You can also review code changes here.


3 thoughts on “LVM disks support in OpenStack Nova Folsom

  1. mathrock

    Nice work. I think it would be useful to break out the base disk from the ephemeral disk, allowing deployers to specify different volume groups for each. As an example, this way you could run with the base OS disk on an SSD-backed VG and the ephemeral disk on a VG backed by spinning rust. Thoughts? I couldn’t figure out how to add this as a comment to the blueprint or gerrit.

  2. Pingback: LVM disks support in OpenStack Nova Folsom | Grid Dynamics … |

  3. Pingback: OpenStack 社区通讯摘要-6月15日 | Xnote

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s