From ad1155ea55a042bec47f43973399d0742263c54f Mon Sep 17 00:00:00 2001 From: Jiffin Tony Thottan Date: Fri, 30 Jun 2017 17:11:46 +0530 Subject: [PATCH 566/566] systemd/glusterfssharedstorage : remove dependency for var-run-gluster-shared_storage Currently the script used by glusterfssharedstorage have dependency over var-run-gluster-shared_storage. But this service will be present only if node has rebooted. Also in reboot scenario , there is a chance that this service can be executed before creating var-run-gluster-shared_storage. In that case glusterfssharedstorage will get succeed even without mounting the shared storage Also the type of glusterfssharedstorage changed to "forking" so that it can be active(instead of dead) after the successful start. Upstream reference >Change-Id: I1c02cc64946e534d845aa7ec7b72644bbe4d26f9 >BUG: 1452527 >Signed-off-by: Jiffin Tony Thottan >https://review.gluster.org/#/c/17658/ Change-Id: I1c02cc64946e534d845aa7ec7b72644bbe4d26f9 BUG: 1335090 Signed-off-by: Jiffin Tony Thottan Reviewed-on: https://code.engineering.redhat.com/gerrit/112440 Reviewed-by: Atin Mukherjee --- extras/mount-shared-storage.sh | 43 ++++++++++++------------ extras/systemd/glusterfssharedstorage.service.in | 1 + 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/extras/mount-shared-storage.sh b/extras/mount-shared-storage.sh index 038a59a..3645a0f 100755 --- a/extras/mount-shared-storage.sh +++ b/extras/mount-shared-storage.sh @@ -4,34 +4,33 @@ #try to mount the shared storage if it fails #TODO : Do it for other glusterfs clients in /etc/fstab -ms="var-run-gluster-shared_storage.mount" volume="gluster_shared_storage" -failed=$(systemctl --failed | grep -c $ms) -if [ $failed -eq 1 ] +mp="/var/run/gluster/shared_storage" +#check if there is fstab entry for shared storage +gfc=$(sed -e 's/#.$//'