Re: how to list ceph file size on ubuntu 20.04

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

 



Thanks a ton!!! Very helps!

Thanks,
Xiong

在 2021年11月17日,上午11:16,胡 玮文 <huww98@xxxxxxxxxxx> 写道:

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 <zhuxiongcs@xxxxxxx> 写道:

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@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

[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