How to get Unique object ID of object in ceph

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

 



Thanks  Minchen for prompt reply.....

However I have noticed that when I transfer a file say "File100.txt",
it shows as a "File100.txt" , not in that form which you have
mentioned in your reply.
Following is the output of  pool  " .rgw.buckets"
Command  run :  " rados -p .rgw.buckets ls -"
----------------------------------------------------------------------------
default.5088.1_Many-Folders/5/51/organization_239570.xml
default.5088.1_Many-Folders/20/5/51/organization_240005.xml
default.5399.1_Unwise.exe
default.5399.1__shadow__5JkbZRgSjnqGiw86UkvYtkNjBe-W8n7_13
default.5399.1__shadow__5JkbZRgSjnqGiw86UkvYtkNjBe-W8n7_3
default.5088.1_Many-Folders/5/51/52/organization_239565.xml
default.5088.1_Many-Folders/20/5/51/52/53/organization_239583.xml
default.5088.1_set-time.sh
default.5399.1_index.jpg
default.5399.1_File100.txt
------------------------------------------------------------------------------------
You will notice that file names, as well folder structures are appearing.

I checked the data pool also

There  output is like this
----------------------------------------------------------
603.00000000
604.00000000
607.00000000
609.00000000
mds0_inotable
mds0_sessionmap
mds_anchortable
file100.txt
rb.0.1094.238e1f29.000000000001
rb.0.1094.238e1f29.000000000002
rb.0.1094.238e1f29.000000000003
602.00000000
rb.0.1094.238e1f29.000000000004
rb.0.1094.238e1f29.000000000005
rb.0.1094.238e1f29.000000000007
rb.0.1094.238e1f29.000000000008
rb.0.1094.238e1f29.000000000020
-------------------------------------------------------------------
Here the output is somewhat similar as mentioned in your mail but file
name is listed of transferred file (file100.txt).
The ID like (rb.0.1094.238e1f29.000000000020) is what appear to be
Object ID but simple file name doesn't appear to be a Object ID.I
think there is some gap in overall approach.Hope you or many others
will be able to point it out.
Thanks in advance






On 5/26/14, minchen <minchen at ubuntukylin.com> wrote:
> Hi Shashank,
>     I think you should use "rados -p <pool_name> ls" to list all objects in
> <pool_name>,
> if there is a image in <pool_name> , like this :
>
>
> root at ceph0:~# rados -p testpool ls
> rb.0.1017.6b8b4567.000000001806
> rb.0.1017.6b8b4567.000000000f32
> rb.0.1017.6b8b4567.000000001b5b
> rb.0.1017.6b8b4567.00000000181f
> rb.0.1017.6b8b4567.00000000121f
> rb.0.1017.6b8b4567.000000000278
> ......
>
>
> rb.0.1017.6b8b4567    is      image prefix
> 000000001806            is      object id
>
>
> so the output likes this:
> <image_prefix>.<object_id>
>
>
> I wish this will be help !
>                              best regards
>                                           min chen
>
>
>
>
>
> ------------------ Original ------------------
> From:  "Shashank Puntamkar";<spuntamkar at gmail.com>;
> Date:  Mon, May 26, 2014 02:24 PM
> To:  "ceph-users"<ceph-users at lists.ceph.com>;
>
> Subject:  How to get Unique object ID of object in ceph
>
>
>
> I am trying to explore the possibility to use ceph object based
> storage in  software development and client side deployment.I
> configured Rados gateway.I am able to access data with filename
> reference using S3 API and various other s3 clients.I wish to use
> Object ID to access the data rather then file name.Hence I want to
> know about the Objet ID assignment of files/object in Ceph.Can anyone
> tell l how to get ObjectID of object  in Ceph? Is Ceph provides unique
> object ID of objects?
> Thanks in advance
> _______________________________________________
> ceph-users mailing list
> ceph-users at lists.ceph.com
> 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