Trying to calculate the real risks for a very complex SES upgrade, I found this thread on the ses-users mail list:

http://ceph-users.ceph.narkive.com/PWmM6KVr/real-size-of-rbd-image

Which is very useful... and of course I made a dirty script for easier use.

As the title says, this scripts "scans" all the pools looking for images and then does the math to calculate their real usage:

The output is like:

And the script:

https://gist.github.com/bvera/1d70da331fd3dcb65bbfe3d3a9138a85#file-ceph-rbgsize-sh

Dirty scripter, not a programmer.

Billy Vera © 2017. All Rights Reserved.

The opinions expressed in this blog are purely my own and are not in any way endorsed by my employer.

Proudly published with Ghost using Ghostium Theme