14f8ab
From d23ad767281af85cf07f5c3f63de482d40ee1953 Mon Sep 17 00:00:00 2001
14f8ab
From: Shwetha K Acharya <sacharya@redhat.com>
14f8ab
Date: Thu, 10 Sep 2020 13:16:12 +0530
14f8ab
Subject: [PATCH 471/473] nfs-ganesha: gluster_shared_storage fails to
14f8ab
 automount on node reboot on rhel 8
14f8ab
14f8ab
The patch https://review.gluster.org/#/c/glusterfs/+/24934/, changes mount point
14f8ab
of gluster_shared_storage from /var/run to /run to address the issue of symlink
14f8ab
at mount path in fstab.
14f8ab
NOTE: mount point /var/run is symlink to /run
14f8ab
14f8ab
The required changes with respect to gluster_shared_storage mount path are
14f8ab
introduced with this patch in nfs-ganesha.
14f8ab
14f8ab
>Fixes: #1475
14f8ab
>Change-Id: I9c7677a053e1291f71476d47ba6fa2e729f59625
14f8ab
>Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
14f8ab
14f8ab
backport of https://review.gluster.org/#/c/glusterfs/+/24970/
14f8ab
BUG: 1873469
14f8ab
Change-Id: I9c7677a053e1291f71476d47ba6fa2e729f59625
14f8ab
Signed-off-by: Shwetha K Acharya <sacharya@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/211392
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
14f8ab
---
14f8ab
 extras/ganesha/ocf/ganesha_nfsd                    | 2 +-
14f8ab
 extras/ganesha/scripts/ganesha-ha.sh               | 2 +-
14f8ab
 extras/hook-scripts/start/post/S31ganesha-start.sh | 2 +-
14f8ab
 3 files changed, 3 insertions(+), 3 deletions(-)
14f8ab
14f8ab
diff --git a/extras/ganesha/ocf/ganesha_nfsd b/extras/ganesha/ocf/ganesha_nfsd
14f8ab
index 93fc8be..f91e8b6 100644
14f8ab
--- a/extras/ganesha/ocf/ganesha_nfsd
14f8ab
+++ b/extras/ganesha/ocf/ganesha_nfsd
14f8ab
@@ -36,7 +36,7 @@ else
14f8ab
 	. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
14f8ab
 fi
14f8ab
 
14f8ab
-OCF_RESKEY_ha_vol_mnt_default="/var/run/gluster/shared_storage"
14f8ab
+OCF_RESKEY_ha_vol_mnt_default="/run/gluster/shared_storage"
14f8ab
 : ${OCF_RESKEY_ha_vol_mnt=${OCF_RESKEY_ha_vol_mnt_default}}
14f8ab
 
14f8ab
 ganesha_meta_data() {
14f8ab
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
14f8ab
index a6814b1..9790a71 100644
14f8ab
--- a/extras/ganesha/scripts/ganesha-ha.sh
14f8ab
+++ b/extras/ganesha/scripts/ganesha-ha.sh
14f8ab
@@ -24,7 +24,7 @@ GANESHA_HA_SH=$(realpath $0)
14f8ab
 HA_NUM_SERVERS=0
14f8ab
 HA_SERVERS=""
14f8ab
 HA_VOL_NAME="gluster_shared_storage"
14f8ab
-HA_VOL_MNT="/var/run/gluster/shared_storage"
14f8ab
+HA_VOL_MNT="/run/gluster/shared_storage"
14f8ab
 HA_CONFDIR=$HA_VOL_MNT"/nfs-ganesha"
14f8ab
 SERVICE_MAN="DISTRO_NOT_FOUND"
14f8ab
 
14f8ab
diff --git a/extras/hook-scripts/start/post/S31ganesha-start.sh b/extras/hook-scripts/start/post/S31ganesha-start.sh
14f8ab
index 90ba6bc..7ad6f23 100755
14f8ab
--- a/extras/hook-scripts/start/post/S31ganesha-start.sh
14f8ab
+++ b/extras/hook-scripts/start/post/S31ganesha-start.sh
14f8ab
@@ -4,7 +4,7 @@ OPTSPEC="volname:,gd-workdir:"
14f8ab
 VOL=
14f8ab
 declare -i EXPORT_ID
14f8ab
 ganesha_key="ganesha.enable"
14f8ab
-GANESHA_DIR="/var/run/gluster/shared_storage/nfs-ganesha"
14f8ab
+GANESHA_DIR="/run/gluster/shared_storage/nfs-ganesha"
14f8ab
 CONF1="$GANESHA_DIR/ganesha.conf"
14f8ab
 GLUSTERD_WORKDIR=
14f8ab
 
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab