O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. In the previous recipe, we created a 500 MB test file named /tmp/file1; we will now put this file in an EC-pool:
        # rados -p EC-pool put object1 /tmp/file1
  1. Since an EC-pool is tiered with a cache-pool, the named file1 will get written to the EC-pool as object metadata, but the actual object will get written into the cache-pool. To verify this, list each pool to get the object names:
        # rados -p EC-pool ls        # rados -p cache-pool ls

This is shown in the following screenshot:

  1. When viewing rados df, we can see the actual space the object is taking up in each of the pools and where it truly resides:
        # rados df
This is shown ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required