From: Josh Durgin <josh.durgin@inktank.com>
To: Alexandre DERUMIER <aderumier@odiso.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: qemu-rdb questions
Date: Sun, 20 May 2012 23:07:59 -0700 [thread overview]
Message-ID: <4FB9DBBF.5070107@inktank.com> (raw)
In-Reply-To: <f5e64790-567a-4ad4-8b3d-01f6f6604dd7@mailpro>
On 05/19/2012 09:33 PM, Alexandre DERUMIER wrote:
> Hi,
> i'm planning to do rdb integration in proxmox2 kvm distribution (not using libvirt).
>
> I found some doc here
> http://ceph.com/wiki/QEMU-RBD
> and also in libvirt mailing list.
>
>
> some questions:
>
> qemu drive command line :
> -------------------------
> -drive file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw
>
> is it the right syntax ?
Newer qemu doesn't like the space in auth_supported, so you'll want to
use a semicolon instead:
-drive
file=rbd:pool/image:id=myname:key=QVFDVm41aE82SHpGQWhBQXEwTkN2OGp0SmNJY0UrSE9CbE1RMUE=:auth_supported=cephx;none:mon_host=mon1.example.org\:6321\;mon2.example.org\:6322\;mon3.example.org\:6322,if=virtio,format=raw
The key/value pairs separated by colons are Ceph configuration options.
The above drive line is equivalent the following settings:
/path/to/myname.keyring containing the keyring for myname, as shown by
'ceph auth list'.
/etc/ceph/ceph.conf containing:
[client.myname]
keyring = /path/to/myname.keyring
auth supported = cephx none
mon host =
mon1.example.org:6321;mon2.example.org:6322;mon3.example.org:6322
And a drive line like:
-drive file=rbd:pool/image:id=myname,if=virtio,format=raw
Qemu reads the from the ceph.conf file if it exists. Any extra
options you add override those from the configuration file.
You can have it read from another file by adding ':conf=/path/to/file'.
>
>
> for image management, what is the best way ? qemu-img or rdb ?
>
> rdb creation with qemu-img:
> ----------------------------
> qemu-img create -f rbd rbd:data/foo 10G
>
> how to specify monitor, authentification,.... ?
>
> rdb delete/resize with qemu-img?
> --------------------------------
> don't find any infos.
The rbd tool has more features. As you noticed, qemu doesn't know how
to delete images. It also can't rename them. I'm not sure if qemu-img
lets you resize them. The monitor and auth options for qemu-img are the
same as for qemu's -drive syntax. You can configure them in
/etc/ceph/ceph.conf, or on the command line.
For the rbd tool, if you don't want to use a configuration file, the
options would be:
rbd --mon-host
'mon1.example.org:6321;mon2.example.org:6322;mon3.example.org:6322'
--keyring /path/to/keyring --id myname --auth-supported 'cephx;none'
These are generic ceph options, and work with any ceph command. They can
also be set in the CEPH_ARGS environment variable.
>
>
> rdb commands
> ------------
> Is the rdb kernel module require to use rdb command ?
Nope, it's only needed if you want to have /dev/rbd devices on your
hosts.
> Also,I would like to not have any /dev/rdbx device on my client.
qemu goes directly through the userspace librbd to access rbd images.
The rbd kernel module isn't involved at all, and no devices appear on
the host. The guest does not know it's using rbd; it sees a block
device, just as if you were using e.g. a qcow2 file.
Josh
next prev parent reply other threads:[~2012-05-21 6:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-19 5:22 session lost, hunting for new mon Stefan Priebe
2012-05-19 6:08 ` Josh Durgin
2012-05-19 8:13 ` Stefan Priebe
2012-05-20 4:33 ` qemu-rdb questions Alexandre DERUMIER
2012-05-21 6:07 ` Josh Durgin [this message]
2012-05-21 8:52 ` Alexandre DERUMIER
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=4FB9DBBF.5070107@inktank.com \
--to=josh.durgin@inktank.com \
--cc=aderumier@odiso.com \
--cc=ceph-devel@vger.kernel.org \
/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.