how to get cow usage of a clone

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

 



Hi,

to get the real usage of an image I can run:

rbd diff image1 | awk '{ SUM += $2 } END { print SUM/1024/1024 " MB" }'

To get the cow usage of a snapshot:

rbd diff image1 --from-snap snap1 | awk '{ SUM += $2 } END { print SUM/1024/1024 " MB" }'

But I wonder how I can get the cow usage of a clone? I tried passing an absolute snapshot name "image1@snap1" but that
doesn't work.

rbd diff clone1 --from-snap image1@snap1 | awk '{ SUM += $2 } END { print SUM/1024/1024 " MB" }'
rbd: diff error: (2) No such file or directory

Thanks for any help.

Corin
_______________________________________________
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