Ceph

RBD images real/actual size

There is no direct way to get the real or actual usage or data in Ceph rbd image. But we can get the actual size of an image using the below command:

rbd diff <pool_name>/image_name  | awk '{ SUM += $2} END { print SUM/1024/1024"  MB }'

For ex:

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

One thought on “RBD images real/actual size

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s