887953
From 2ef41e27b452f215e56bfc08c8117f8f18c33619 Mon Sep 17 00:00:00 2001
887953
From: Krutika Dhananjay <kdhananj@redhat.com>
887953
Date: Wed, 28 Nov 2018 12:39:31 +0530
887953
Subject: [PATCH 466/493] extras: Add group-distributed-virt for single-brick
887953
 ovirt-gluster use-case
887953
887953
 > Upstream: https://review.gluster.org/21735
887953
 > BUG: 1654138
887953
 > Change-Id: I930011327332b7ba30cc76f614efaf5932eb4f3d
887953
887953
Change-Id: I930011327332b7ba30cc76f614efaf5932eb4f3d
887953
BUG: 1653613
887953
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
887953
Reviewed-on: https://code.engineering.redhat.com/gerrit/158487
887953
Tested-by: RHGS Build Bot <nigelb@redhat.com>
887953
Reviewed-by: Milind Changire <mchangir@redhat.com>
887953
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
887953
---
887953
 extras/Makefile.am            |  6 +++++-
887953
 extras/group-distributed-virt | 10 ++++++++++
887953
 glusterfs.spec.in             |  4 ++++
887953
 3 files changed, 19 insertions(+), 1 deletion(-)
887953
 create mode 100644 extras/group-distributed-virt
887953
887953
diff --git a/extras/Makefile.am b/extras/Makefile.am
887953
index 7b791af..e0e05b5 100644
887953
--- a/extras/Makefile.am
887953
+++ b/extras/Makefile.am
887953
@@ -12,7 +12,9 @@ SUBDIRS = init.d systemd benchmarking hook-scripts $(OCF_SUBDIR) LinuxRPM \
887953
 
887953
 confdir = $(sysconfdir)/glusterfs
887953
 conf_DATA = glusterfs-logrotate gluster-rsyslog-7.2.conf gluster-rsyslog-5.8.conf \
887953
-	logger.conf.example glusterfs-georep-logrotate group-virt.example group-metadata-cache group-gluster-block group-nl-cache group-db-workload
887953
+	logger.conf.example glusterfs-georep-logrotate group-virt.example \
887953
+	group-metadata-cache group-gluster-block group-nl-cache group-db-workload \
887953
+	group-distributed-virt
887953
 
887953
 voldir = $(sysconfdir)/glusterfs
887953
 vol_DATA = glusterd.vol
887953
@@ -49,3 +51,5 @@ install-data-local:
887953
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/nl-cache
887953
 	$(INSTALL_DATA) $(top_srcdir)/extras/group-db-workload \
887953
 		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/db-workload
887953
+	$(INSTALL_DATA) $(top_srcdir)/extras/group-distributed-virt \
887953
+		$(DESTDIR)$(GLUSTERD_WORKDIR)/groups/distributed-virt
887953
diff --git a/extras/group-distributed-virt b/extras/group-distributed-virt
887953
new file mode 100644
887953
index 0000000..a960b76
887953
--- /dev/null
887953
+++ b/extras/group-distributed-virt
887953
@@ -0,0 +1,10 @@
887953
+performance.quick-read=off
887953
+performance.read-ahead=off
887953
+performance.io-cache=off
887953
+performance.low-prio-threads=32
887953
+network.remote-dio=enable
887953
+features.shard=on
887953
+user.cifs=off
887953
+client.event-threads=4
887953
+server.event-threads=4
887953
+performance.client-io-threads=on
887953
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
887953
index f6a4ab0..a4accd9 100644
887953
--- a/glusterfs.spec.in
887953
+++ b/glusterfs.spec.in
887953
@@ -1522,6 +1522,7 @@ exit 0
887953
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
887953
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
887953
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
887953
+            %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/distributed-virt
887953
             %attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
887953
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind
887953
        %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glusterfind/.keys
887953
@@ -2169,6 +2170,9 @@ fi
887953
 %endif
887953
 
887953
 %changelog
887953
+* Thu Dec 13 2018 Krutika Dhananjay <kdhananj@redhat.com>
887953
+- Install /var/lib/glusterd/groups/distributed-virt by default (#1653613)
887953
+
887953
 * Fri Jul 6 2018 Atin Mukherjee <amukherj@redhat.com>
887953
 - Added db group profile (#1597506)
887953
 
887953
-- 
887953
1.8.3.1
887953