Discarding
You might need to manually discard the Persistent Write Log (PWL) cache, for example, if
the data in the cache has expired. You can discard a cache file for an image by using the
rbd persistent-cache invalidate command. The command removes the cache metadata for
the specified image, disables the cache feature, and deletes the local cache file, if it
exists.
Prerequisites
-
A running IBM Storage Ceph cluster.
-
Root-level access to the monitor node.
-
PWL cache is enabled.
Procedure
-
Discard PWL cache:
Syntax
rbd persistent-cache invalidate POOL_NAME/IMAGE_NAMEExample
[ceph: root@host01 /]# rbd persistent-cache invalidate pool1/image1