get amount of space used by snapshots

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

 



Hello,

If I have an rbd image and a series of snapshots of that image, is there
a fast way to determine how much space the objects composing the
original image and all the snapshots are using in the cluster, or even
just the space used by the snaps?

The only way I've been able to find so far is to get the
block_name_prefix for the image with rbd info and then grep for that
prefix in the output of rados ls, eg. rados ls|grep
rb.0.396de.238e1f29|wc -l. This is relatively slow, printing ~250
objects/s, which means hours to count through 10s of TB of objects.

Basically, if I'm keeping daily snapshots for a set of images, I'd like
to be able to tell how much space those snapshots are using so I can
determine how frequently I need to prune old snaps. Thanks!

-Steve

-- 
Steve Anthony
LTS HPC Support Specialist
Lehigh University
sma310 at lehigh.edu



[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