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...

We will now create a pool that we will use for cache tiering:

  1. Create a new pool with the name cache-pool and set crush_ruleset as 1 so that the new pool gets created on SSD disks:
        # ceph osd pool create cache-pool 16 16        # ceph osd pool set cache-pool crush_ruleset 1

This is shown in the following screenshot:

  1. Make sure that your pool is created correctly, which means that it should always store all the objects on osd.0, osd.3, and osd.6.
  2. List the cache-pool for contents; since it's a new pool, it should not have any content:
        # rados -p cache-pool ls
  1. Add a temporary object to the cache-pool to make sure it's storing the ...

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