"rbd diff" disparity vs mounted usage

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

 



Hello All,

I am currently trying to get an accurate count of bytes used for an rbd image. I've tried trimming the filesystem which relieves about 1.7gb however there is still a huge disparity of size reported in the filesystem vs what 'rbd diff' shows;

$ rbd map backup/cd4e5d37-3023-4640-be5a-5577d3f9307e
/dev/rbd3

$ mount -o discard /dev/rbd3p1 /tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e/

$ df -h /tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e/
Filesystem      Size  Used Avail Use% Mounted on
/dev/rbd3p1      50G   24G   24G  50% /tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e

$ df -i /tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e/
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
/dev/rbd3p1    3276800 582930 2693870   18% /tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e

$ fstrim -v /tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e/
/tmp/cd4e5d37-3023-4640-be5a-5577d3f9307e/: 1.7 GiB (1766875136 bytes) trimmed

$ rbd diff backup/cd4e5d37-3023-4640-be5a-5577d3f9307e | awk '{ SUM += $2 } END { print SUM/1024/1024 " MB" }'
49345.4 MB

Could this be affected by replica counts some how? It seems to be twice as large as what is reported in the filesystem which matches my replica count.

Thanks for any and all assistance!
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux