From 92c9611a819ef62683245e7b67691fe901c38532 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 22 Apr 2015 15:00:34 +0000 Subject: [PATCH] Disable lvmetad on all virthosts. It causes problems with caching stale iscsi lvm data. --- tasks/virthost.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/virthost.yml b/tasks/virthost.yml index 7ed38790b4..d877c007f8 100644 --- a/tasks/virthost.yml +++ b/tasks/virthost.yml @@ -38,6 +38,12 @@ - name: enable libvirtd service: name=libvirtd state=started enabled=yes +# +# Disable lvmetad as it causes lots of problems with iscsi shared lvm and caching. +# +- name: disable lvmetad + lineinfile: dest=/etc/lvm/lvm.conf regexp="^ use_lvmetad = 1" line=" use_lvmetad = 0" backrefs=yes + - name: set bridging to work right - copy: src="{{ files }}/virthost/99-bridge.rules" dest=/etc/udev/rules.d/99-bridge.rules notify: