From 7f92dec8c4049727d7d47484d9ee3c8f6313ce94 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 17 Sep 2012 15:19:58 +0530 Subject: group-virt: virt template file added Change-Id: Ic124e44c3d3068d78e075c9a66ead9ab66ecb241 Signed-off-by: Amar Tumballi Reviewed-on: https://code.engineering.redhat.com/gerrit/1865 Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- extras/Makefile.am | 2 +- extras/group-virt.example | 6 ++++++ glusterfs.spec.in | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 extras/group-virt.example diff --git a/extras/Makefile.am b/extras/Makefile.am index 0c260de92a5..ae15f2c78d6 100644 --- a/extras/Makefile.am +++ b/extras/Makefile.am @@ -8,4 +8,4 @@ SUBDIRS = init.d benchmarking hook-scripts EXTRA_DIST = specgen.scm MacOSX/Portfile glusterfs-mode.el glusterfs.vim \ migrate-unify-to-distribute.sh backend-xattr-sanitize.sh \ backend-cleanup.sh disk_usage_sync.sh quota-remove-xattr.sh \ - quota-metadata-cleanup.sh glusterfs-logrotate + quota-metadata-cleanup.sh glusterfs-logrotate group-virt.example diff --git a/extras/group-virt.example b/extras/group-virt.example new file mode 100644 index 00000000000..75a5ef31426 --- /dev/null +++ b/extras/group-virt.example @@ -0,0 +1,6 @@ +quick-read=off +read-ahead=off +io-cache=off +stat-prefetch=off +linux-aio=enable +eager-lock=enable diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 09ea4fcafbd..484abd852ef 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -326,6 +326,11 @@ if [ -d /var/lib/glusterd/vols ]; then done fi +# Need to copy the file. + +mkdir -p /var/lib/glusterd/groups +cp %{_docdir}/%{name}-%{version}/group-virt.example /var/lib/glusterd/groups/virt + pidof -c -o %PPID -x glusterd &> /dev/null if [ $? -eq 0 ]; then kill -9 `pgrep -f gsyncd.py` &> /dev/null -- cgit