On Fri, Mar 9, 2018 at 7:14 AM Yan, Zheng <[email protected]> wrote:

> ceph-dencoder can dump individual metadata. most cephfs metadata are
> stored in omap headers/values. you can write a scripts that fetch
> metadata objects' omap header/values and dump them using
> ceph-dencoder.
>

Keep in mind that if you do this, you may get stale values for directories
and inodes that are very busy, though. (They'll stick around in the mds log
and I don't remember how stale they are allowed to get before being flushed
out.)

Depending on your specific needs, don't forget that if you look at the
recursive statistics you can find out the size of a whole subtree and see
if anything underneath a specific directory has been touched, so you don't
need to traverse ones which haven't changed since the last report.
-Greg

>
> On Fri, Mar 9, 2018 at 10:09 PM, Pavan, Krish <[email protected]>
> wrote:
> > Hi All,
> >
> > We have cephfs with larger size( > PB)  and expected to grow more. I
> need to
> > dump the metadata ( cinode,Cdir with ACL, size, ctime, …)  weekly to
> > find/report usage as well as acl.
> >
> > Is there any tool to dump the metadata pool and decode, without going via
> > MDS servers?.
> >
> > What is the best way to do?
> >
> >
> >
> > Regards
> >
> > Krish
> >
> >
> >
> >
> > _______________________________________________
> > ceph-users mailing list
> > [email protected]
> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
> _______________________________________________
> ceph-users mailing list
> [email protected]
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to