Following this set of steps, we will create a cache tier for our erasure-coded pool:
- Create a cache tier that will associate storage-pools with cache-pools. The syntax is ceph osd tier add <storage_pool> <cache_pool>:
# ceph osd tier add EC-pool cache-pool
- Set the cache mode as either writeback or read-only. In this demonstration, we will use writeback, and the syntax is ceph osd tier cache-mode <cache_pool> writeback:
# ceph osd tier cache-mode cache-pool writeback
- To direct all the client requests from the standard pool to the cache pool, set the pool overlay using the syntax ceph osd tier set-overlay <storage_pool> <cache_pool>:
# ceph osd tier set-overlay EC-pool cache-pool
- On checking the pool details, you will ...