Replies: 1 comment
-
The answer is much related to issue #3563. For OSDs the same counts as for RBD-images when using encryption. Extra options for If you have tried it by now, could you share the results? A pointer to where to set extra |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are trying to cope with a growth in ceph OSD usage that we have been experiencing since enabling encryption for all rbd-backend volumes that are provisioned via ceph-csi (rook installation).
Storage class:
Example volume claim:
I mount the PVC into a simple pod and check disk usage. First the volume is empty:
but it already consumes 240MB in the OSDs:
it is acceptable penalty for sake of some ext4 metadata blocks.
next, I write a random file and check that the extra size is reflected in both the mapped volume and the underlying rbd:
good. 50 MB added in both devices.
however , when I delete the file created earlier the space is reclaim in the mapped device but it is still allocated in the underlying rbd:
our runtime is somewhat chaotic and the pods that mount these volume continuously read and write a large number of files, far worse than this isolated test. as a result we are observing a steady increase in disk usage inside the OSDs.
the "discard" mount option worked perfectly before we had to switch to encrypted volumes. now it is practically useless.
is there a way to sparsify encrypted ceph csi rbd volumes at mapped device layer and reflect the reclaimed blocks down in the encrypted rbd layer?
thank you
Beta Was this translation helpful? Give feedback.
All reactions