You shouldn't rely on "rados ls" when working with cache pools. It
doesn't behave properly and is a silly operation to run against a pool
of any size even when it does. :)

More specifically, "rados ls" is invoking the "pgls" operation. Normal
read/write ops will go query the backing store for objects if they're
not in the cache tier. pgls is different — it just tells you what
objects are present in the PG on that OSD right now. So any objects
which aren't in cache won't show up when listing on the cache pool.
-Greg

On Thu, Mar 26, 2015 at 3:43 AM, Udo Lembke <ulem...@polarzone.de> wrote:
> Hi all,
> due an very silly approach, I removed the cache tier of an filled EC pool.
>
> After recreate the pool and connect with the EC pool I don't see any content.
> How can I see the rbd_data and other files through the new ssd cache tier?
>
> I think, that I must recreate the rbd_directory (and fill with setomapval), 
> but I don't see anything yet!
>
> $ rados ls -p ecarchiv | more
> rbd_data.2e47de674b0dc51.0000000000390074
> rbd_data.2e47de674b0dc51.000000000020b64f
> rbd_data.2fbb1952ae8944a.000000000016184c
> rbd_data.2cfc7ce74b0dc51.0000000000363527
> rbd_data.2cfc7ce74b0dc51.000000000004c35f
> rbd_data.2fbb1952ae8944a.000000000008db43
> rbd_data.2cfc7ce74b0dc51.000000000015895a
> rbd_data.31229f0238e1f29.00000000000135eb
> ...
>
> $ rados ls -p ssd-archiv
> #### nothing ####
>
> generation of the cache tier:
> $ rados mkpool ssd-archiv
> $ ceph osd pool set ssd-archiv crush_ruleset 5
> $ ceph osd tier add ecarchiv ssd-archiv
> $ ceph osd tier cache-mode ssd-archiv writeback
> $ ceph osd pool set ssd-archiv hit_set_type bloom
> $ ceph osd pool set ssd-archiv hit_set_count 1
> $ ceph osd pool set ssd-archiv hit_set_period 3600
> $ ceph osd pool set ssd-archiv target_max_bytes 50000000000
>
>
> rule ssd {
>         ruleset 5
>         type replicated
>         min_size 1
>         max_size 10
>         step take ssd
>         step choose firstn 0 type osd
>         step emit
> }
>
>
> Are there any "magic" (or which command I missed?) to see the excisting data 
> throug the cache tier?
>
>
> regards - and hoping for answers
>
> Udo
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to