There is a rbytes mount option [1]. Besides, you can use “getfattr -n 
ceph.dir.rbytes /path/in/cephfs”

[1]: https://docs.ceph.com/en/latest/man/8/mount.ceph/#advanced

Weiwen Hu

在 2021年11月17日,10:26,zxcs <zhuxion...@163.com> 写道:

Hi,

I want to list cephfs directory size on ubuntu 20.04, but when I use ls -alh 
[directory] ,it shows the number of files and directorys under this 
directory(it only count number not size) , i remember when i use ls -alh 
[directory] on ubuntu 16.04, it will shows the size of this directory (include 
it sub directory). i know du -sh can list the directory size, but it very slow 
as our ceph directory has tons of small files.

Would anyone please help to shed some light here? Thanks a ton!


Thanks,
Xiong
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to