Book Image

Ceph Cookbook - Second Edition

By : Vikhyat Umrao, Karan Singh, Michael Hackett
Book Image

Ceph Cookbook - Second Edition

By: Vikhyat Umrao, Karan Singh, Michael Hackett

Overview of this book

Ceph is a unified distributed storage system designed for reliability and scalability. This technology has been transforming the software-defined storage industry and is evolving rapidly as a leader with its wide range of support for popular cloud platforms such as OpenStack, and CloudStack, and also for virtualized platforms. Ceph is backed by Red Hat and has been developed by community of developers which has gained immense traction in recent years. This book will guide you right from the basics of Ceph , such as creating blocks, object storage, and filesystem access, to advanced concepts such as cloud integration solutions. The book will also cover practical and easy to implement recipes on CephFS, RGW, and RBD with respect to the major stable release of Ceph Jewel. Towards the end of the book, recipes based on troubleshooting and best practices will help you get to grips with managing Ceph storage in a production environment. By the end of this book, you will have practical, hands-on experience of using Ceph efficiently for your storage requirements.
Table of Contents (15 chapters)

Testing a cache tier

Since our cache tier is ready, during the write operation, clients will see what is being written to their regular pools, but actually, it's being written on cache-pools first and then, based on the cache tier policy data, it will be flushed to the storage tier. This data migration is transparent to the client.

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