Re: ceph cluster with rbd

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

 



Hi,

On Tue, 2011-09-20 at 14:23 +0530, Upendra Moturi wrote:
> Hi
> 
> I trying to create rbd image with ceph cluster.
> I am able to start ceph cluster and mount to a client .
> But not able to create rbd image.
> 
> I am using Linux ubuntu 3.0.0-11-server  kernel
> qemu version : qemu-kvm-0.14.0
> ceph version 0.34 (commit:2f039eeeb745622b866d80feda7afa055e15f6d6)
> 
> As this a test environment i am trying it on a single machine.
> 
> Here is my ceph.conf
> 
> [global]
>         pid file = /var/run/ceph/$name.pid
>         debug ms = 1
> [mon]
>         mon data = /data/mon$id
> [mon.0]
>         host = ceph1
>         mon addr = 192.168.123.148:6789

I'd not use a all-numeric name for your monitor.

You better use something like [mon.alpha]

> [mds]
> 
> [mds.0]
>         host = ceph1

Same goes for the MDS, use something like mds.ceph1.

> [osd]
>         sudo = true
>         osd data = /data/osd$id
>         osd journal = /data/osd$id/journal
>         osd journal size = 512
>         osd use stale snap = true
> [osd.0]
>         host = ceph1
>         btrfs devs = /dev/sdb
> [osd.1]
>         host = ceph1
>         btrfs devs = /dev/sdc
> 
> Using
> mkcephfs -c /etc/ceph/ceph.conf -a --mkbtrfs -k /etc/ceph/keyring.bin
> able to create ceph file system and mount to client
> but not able to create a rbd image on it.
> 
> Followed the url
> http://ceph.newdream.net/wiki/Rbd
> and was not able to check out.
> but when i did
> 
> depmod -a
> modprobe rbd
> i am able to see /sys/bus/rbd directory.
> 
> ceph class list
> did not show me rbd
> Instead it said me
> mon0 -> 'class distribution is no longer handled by the monitor' (-22)

I don't think that loading the classes is needed anymore. I just tried:

root@monitor:~# rbd create alpha --size=1024
root@monitor:~# rbd ls
alpha
root@monitor:~#

This is a fresh cluster, no RBD work has been done yet. Did you try to
create a RBD image?

> 
> Not able to check out qemu-rbd
> $ git clone git://git.qemu.org/qemu.git
> $ cd qemu
> $ ./configure --enable-rbd
> $ make; make install
> 
> From linux-kvm url
> (http://www.linux-kvm.com/content/cephrbd-block-driver-patches-qemu-kvm)
> $ git clone git://ceph.newdream.net/git/qemu-kvm.git
> $ cd qemu-kvm
> $ git checkout -b rbd origin/rbd
> $ ./configure --enable-rbd
> $ make; make install
> 
> I was able to check out using above url but configure gave me following error
> 
>      ./configure --enable-rbd
>      ERROR
>      ERROR: User requested feature rados block device
>      ERROR: configure was not able to find it
>      ERROR

Are the RBD development headers installed? Something like librbd-dev

Wido

> 
> Please guide me in the right direction.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Thanks and Regards,
> Upendra.M
> --
> 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


--
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