Re: Nova on RBD Device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/07/2012 11:01 AM, Mandell Degerness wrote:
Can anyone point me in the right direction for setting up Nova so that
it allocates disk space on RBD device(s) rather than on local disk as
defined in the --instances_path flag?

You probably want to use the boot-from-volume api extension. I think there's support in nova-client for this now.

I've already got nova-volume working with RBD.

I suspect that I need to modify _cache_image and _create_image in
nova/virt/libvirt/connection.py.

Nova itself doesn't know how to do I/O to volumes - it just knows how to configure a hypervisor to use one. You'll need to attach the volume to an existing vm to write an image to it, or use a hack like:

rbd rm pool/image && qemu-img convert -f raw -O rbd /path/to/img rbd:pool/image

In the future, once rbd layering is implemented, we'd like to be able to store images in rbd via glance, and clone them into bootable nova volumes.

Regards,
Mandell Degerness

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux