Este contenido no está disponible en el idioma seleccionado.

Chapter 38. Removing a Cache Tier


Removing a cache tier differs depending on whether it is a writeback cache or a read-only cache.

38.1. Removing a Read-Only Cache

Since a read-only cache does not have modified data, you can disable and remove it without losing any recent changes to objects in the cache.

  1. Change the cache-mode to none to disable it. :

    ceph osd tier cache-mode {cachepool} none
    Copy to Clipboard Toggle word wrap

    For example:

    ceph osd tier cache-mode hot-storage none
    Copy to Clipboard Toggle word wrap
  2. Remove the cache pool from the backing pool. :

    ceph osd tier remove {storagepool} {cachepool}
    Copy to Clipboard Toggle word wrap

    For example:

    ceph osd tier remove cold-storage hot-storage
    Copy to Clipboard Toggle word wrap

38.2. Removing a Writeback Cache

Since a writeback cache may have modified data, you must take steps to ensure that you do not lose any recent changes to objects in the cache before you disable and remove it.

  1. Change the cache mode to forward so that new and modified objects will flush to the backing storage pool. :

    ceph osd tier cache-mode {cachepool} forward
    Copy to Clipboard Toggle word wrap

    For example:

    ceph osd tier cache-mode hot-storage forward
    Copy to Clipboard Toggle word wrap
  2. Ensure that the cache pool has been flushed. This may take a few minutes:

    rados -p {cachepool} ls
    Copy to Clipboard Toggle word wrap

    If the cache pool still has objects, you can flush them manually. For example:

    rados -p {cachepool} cache-flush-evict-all
    Copy to Clipboard Toggle word wrap
  3. Remove the overlay so that clients will not direct traffic to the cache. :

    ceph osd tier remove-overlay {storagetier}
    Copy to Clipboard Toggle word wrap

    For example:

    ceph osd tier remove-overlay cold-storage
    Copy to Clipboard Toggle word wrap
  4. Finally, remove the cache tier pool from the backing storage pool. :

    ceph osd tier remove {storagepool} {cachepool}
    Copy to Clipboard Toggle word wrap

    For example:

    ceph osd tier remove cold-storage hot-storage
    Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat