ceph : [client] rbd cache = true override qemu cache=none|writeback

spirit

Distinguished Member
Apr 2, 2010
6,800
990
243
www.groupe-cyllene.com
Hi,

a small note about ceph,

currently if you define

[client]
rbd_cache=true|false

in /etc/ceph/ceph.conf

it's override the qemu cache=none|writeback.
(so you'll always have cache enable of disable from rbd_cache value for all your vms)

It's a bug, and ceph team have send a fix this week.

So, for now, it's better to remove rbd_cache from ceph.conf
 
Hi,

a small note about ceph,

currently if you define

[client]
rbd_cache=true|false

in /etc/ceph/ceph.conf

it's override the qemu cache=none|writeback.
(so you'll always have cache enable of disable from rbd_cache value for all your vms)

It's a bug, and ceph team have send a fix this week.

So, for now, it's better to remove rbd_cache from ceph.conf
Hi Spirit,
is an removing of rbd_cache enough?
Because since giant rbd cache is enabled by default (mail from sage about the giant 0.87 release):
Code:
* The client-side caching for librbd is now enabled by default (rbd
  cache = true).  A safety option (rbd cache writethrough until flush
  = true) is also enabled so that writeback caching is not used until
  the library observes a 'flush' command, indicating that the librbd
  users is passing that operation through from the guest VM.
Or do you mean with "all your vms" the vms, which aren't use ceph storage also?

Udo
 
>>is an removing of rbd_cache enough?
yes

>>Because since giant rbd cache is enabled by default (mail from sage about the giant 0.87 release):

In any case, in qemu, we always defined cache=none or cache=writeback, this enable or disable rbd cache in all case.




>>Or do you mean with "all your vms" the vms, which aren't use ceph storage also?
No, of course, only the qemu disks using rbd/ceph.






 
>>is an removing of rbd_cache enough?
yes

>>Because since giant rbd cache is enabled by default (mail from sage about the giant 0.87 release):

In any case, in qemu, we always defined cache=none or cache=writeback, this enable or disable rbd cache in all case.
Hi Spirit,
thanks for the info.

Are other cache params affected by qemu?
E.G. I have in ceph.conf the entry
Code:
#rbd cache = true
rbd cache writethrough until flush = true
Is this setting used by qemu? Or, due commented rbd_cache, useless?

Udo
 
Hi Spirit,
thanks for the info.

Are other cache params affected by qemu?
E.G. I have in ceph.conf the entry
Code:
#rbd cache = true
rbd cache writethrough until flush = true
Is this setting used by qemu? Or, due commented rbd_cache, useless?

Udo

It's only the rbd_cache value. (which is setup by qemu cache option).
Other options in ceph.conf still apply.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!