From db7ab8ba36b4c675aa60f1c112b18c6a815eb803 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Fri, 15 May 2015 17:37:33 -0700 Subject: [PATCH] doc: add rbd cache settings to nova.conf To actually get the benefit of writeback caching, qemu must be aware of it so it pases flushes to rbd. Since hammer rbd caching is enabled by default, so add the nova option to make qemu aware of it. Signed-off-by: Josh Durgin --- doc/rbd/rbd-openstack.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/rbd/rbd-openstack.rst b/doc/rbd/rbd-openstack.rst index 17999264865..ca53856435e 100644 --- a/doc/rbd/rbd-openstack.rst +++ b/doc/rbd/rbd-openstack.rst @@ -333,6 +333,7 @@ On every Compute node, edit ``/etc/nova/nova.conf`` and add:: libvirt_images_type = rbd libvirt_images_rbd_pool = vms libvirt_images_rbd_ceph_conf = /etc/ceph/ceph.conf + libvirt_disk_cachemodes="network=writeback" rbd_user = cinder rbd_secret_uuid = 457eb676-33da-42ec-9a8c-9293d545c337 @@ -366,6 +367,7 @@ section and add:: images_rbd_ceph_conf = /etc/ceph/ceph.conf rbd_user = cinder rbd_secret_uuid = 457eb676-33da-42ec-9a8c-9293d545c337 + disk_cachemodes="network=writeback" It is also a good practice to disable file injection. While booting an -- 2.47.3