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