Re: query regarding replicas of data

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

 



Hi,
I have created a rbd and mounted it and started using it as a raw
device. Now in ceph every data is replicated. Does ceph replicate each
and every file I created in the rbd or does it replicate the rbd image
only? Also is there any command to find out where these replicas are
stored?
Thanks and Regards,
Kiriti
Sent from my Windows Phone From: Ilya Dryomov
Sent: 19-01-2014 10:32 PM
To: kiriti krishna
Cc: ceph-users@xxxxxxxx
Subject: Re:  writing data to ceph rbd
On Sun, Jan 19, 2014 at 2:32 PM, kiriti krishna
<mvsaikrishnakiriti@xxxxxxxxx> wrote:
> Hi,
>         I have successfully installed ceph, and created and configured ceph
> rados, ceph rbd and cephfs. Now I want to want to write data to ceph rbd. I
> have created ceph rbd write on copy clone but I'm not finding any info
> regarding how to write to ceph rbd. Can you please help me with any
> reference to how to write data to rbd. Also where do all of these rbd snap
> shots and their clones will be stored.
> Thanks and Regards,
> Kiriti

rbd is short for block device, you have to "map" an rbd image to
a block device in order to use it (read or write from it).

$ rbd create --size <size_in_mb> <image_name>
$ rbd map <image_name>

will map image_name image to a /dev/rbd<id> block device.  You can then
use this block device as any other block device on your system: create
a filesystem on it, use it as a raw block device, etc.

$ rbd showmapped

will give you the /dev/rbd<id> id.

The other option is to use fuse.  See documentation links below for
details.

http://ceph.com/docs/master/rbd/rbd-ko/ - rbd map
http://ceph.com/docs/master/man/8/rbd-fuse/ - fuse

http://ceph.com/docs/master/rbd/rbd/ - everything rbd

Thanks,

                Ilya
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux