Hi there,
I use VMs with ceph / rbd backend for storage and am confused about the cache settings:
On the wiki (https://pve.proxmox.com/wiki/Performance_Tweaks) the different caching options are explained.
And from the description there I would have thought that writethrough is the thing to use if I want to ensure writes are fsynced pronto without disabling caching altogether.
Now, in the ceph documentation (http://docs.ceph.com/docs/luminous/rbd/qemu-rbd/) there is a warning:
This leaves me confused as this would suggest that cache mode writeback is, in this use case, the more secure thing?
I use VMs with ceph / rbd backend for storage and am confused about the cache settings:
On the wiki (https://pve.proxmox.com/wiki/Performance_Tweaks) the different caching options are explained.
And from the description there I would have thought that writethrough is the thing to use if I want to ensure writes are fsynced pronto without disabling caching altogether.
Now, in the ceph documentation (http://docs.ceph.com/docs/luminous/rbd/qemu-rbd/) there is a warning:
Important - If you set rbd_cache=true, you must set cache=writeback or risk data loss. Without cache=writeback, QEMU will not send flush requests to librbd. If QEMU exits uncleanly in this configuration, filesystems on top of rbd can be corrupted.
This leaves me confused as this would suggest that cache mode writeback is, in this use case, the more secure thing?