d2787b
From 88523814fe296c9cc9f7619e06210830f59c5edf Mon Sep 17 00:00:00 2001
d2787b
From: Xavi Hernandez <xhernandez@redhat.com>
d2787b
Date: Fri, 12 Mar 2021 10:32:09 +0100
d2787b
Subject: [PATCH 539/539] extras: disable lookup-optimize in virt and block
d2787b
 groups
d2787b
d2787b
lookup-optimize doesn't provide any benefit for virtualized
d2787b
environments and gluster-block workloads, but it's known to cause
d2787b
corruption in some cases when sharding is also enabled and the volume
d2787b
is expanded or shrunk.
d2787b
d2787b
For this reason, we disable lookup-optimize by default on those
d2787b
environments.
d2787b
d2787b
Backport of:
d2787b
> Upstream-patch-link: https://github.com/gluster/glusterfs/pull/2254
d2787b
> Fixes: #2253
d2787b
> Change-Id: I25861aa50b335556a995a9c33318dd3afb41bf71
d2787b
> Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
d2787b
d2787b
BUG: 1939372
d2787b
Change-Id: I25861aa50b335556a995a9c33318dd3afb41bf71
d2787b
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
d2787b
Reviewed-on: https://code.engineering.redhat.com/gerrit/231173
d2787b
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d2787b
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d2787b
---
d2787b
 extras/group-distributed-virt | 1 +
d2787b
 extras/group-gluster-block    | 1 +
d2787b
 extras/group-virt.example     | 1 +
d2787b
 3 files changed, 3 insertions(+)
d2787b
d2787b
diff --git a/extras/group-distributed-virt b/extras/group-distributed-virt
d2787b
index a960b76..6da3de0 100644
d2787b
--- a/extras/group-distributed-virt
d2787b
+++ b/extras/group-distributed-virt
d2787b
@@ -8,3 +8,4 @@ user.cifs=off
d2787b
 client.event-threads=4
d2787b
 server.event-threads=4
d2787b
 performance.client-io-threads=on
d2787b
+cluster.lookup-optimize=off
d2787b
diff --git a/extras/group-gluster-block b/extras/group-gluster-block
d2787b
index 1e39801..b8d3e8d 100644
d2787b
--- a/extras/group-gluster-block
d2787b
+++ b/extras/group-gluster-block
d2787b
@@ -25,3 +25,4 @@ features.shard-block-size=64MB
d2787b
 user.cifs=off
d2787b
 server.allow-insecure=on
d2787b
 cluster.choose-local=off
d2787b
+cluster.lookup-optimize=off
d2787b
diff --git a/extras/group-virt.example b/extras/group-virt.example
d2787b
index 3a441eb..155f5f5 100644
d2787b
--- a/extras/group-virt.example
d2787b
+++ b/extras/group-virt.example
d2787b
@@ -21,3 +21,4 @@ server.tcp-user-timeout=20
d2787b
 server.keepalive-time=10
d2787b
 server.keepalive-interval=2
d2787b
 server.keepalive-count=5
d2787b
+cluster.lookup-optimize=off
d2787b
-- 
d2787b
1.8.3.1
d2787b