[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v8)
From: |
Christian Brunner |
Subject: |
Re: [Qemu-devel] [PATCH] ceph/rbd block driver for qemu-kvm (v8) |
Date: |
Mon, 6 Dec 2010 21:15:28 +0100 |
2010/12/6 Kevin Wolf <address@hidden>:
Hi Kevin,
> This lacks a Signed-off-by. Please merge Yehuda's fix for configure when
> you resend the patch.
I've sent an updated patch.
> What's the easiest way to try it out? I tried to use vstart.sh and copy
> the generated ceph.conf to /etc/ceph/ceph.conf so that qemu-img etc.
> find the monitor address. However, that leads to a hang when I try "rbd
> list" or "./qemu-img create -f rbd rbd:data/test.img 4G", so I seem to
> be missing something.
The most simple ceph.conf I can think about, is the following:
[global]
auth supported = none
[mon]
mon data = /ceph/mon$id
[mon0]
host = {hostname}
mon addr = 127.0.0.1:6789
[osd]
osd data = /ceph/osd\$id
[osd0]
host = {hostname}
btrfs devs = {devicename}
Replace {hostname} with your `hostname -s` and {devicename} with the
name of an empty volume. Create a directory for the monitor and a
mountpoint for the osd volume:
# mkdir -p /ceph/mon0
# mkdir -p /ceph/osd0
After you have created the ceph.conf file, you can create your
ceph-filesystem with the following command (attention - this will
format the configured volume):
# mkcephfs -c /etc/ceph/ceph.conf --mkbtrfs -a
Now you should be able to start ceph (assuming you are using the redhat rpm):
# service ceph start
Check if ceph is running with `ceph -w` or `rados df`. `qemu-img
create -f rbd rbd:data/test.img 4G` should work now, too.
Regards
Christian