All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@dreamhost.com>
To: Mandell Degerness <mandell@pistoncloud.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: Nova on RBD Device
Date: Tue, 07 Feb 2012 18:32:24 -0800	[thread overview]
Message-ID: <4F31DEB8.3070409@dreamhost.com> (raw)
In-Reply-To: <CA+jddaPFD5qVmUFVygW-HgWbCCvhM6A+_2BCann7NuZgmwgRJA@mail.gmail.com>

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


      parent reply	other threads:[~2012-02-08  2:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 19:01 Nova on RBD Device Mandell Degerness
2012-02-07 23:15 ` Florian Haas
2012-02-08  2:32 ` Josh Durgin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F31DEB8.3070409@dreamhost.com \
    --to=josh.durgin@dreamhost.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=mandell@pistoncloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.