summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-03-11 09:32:03 -0700
committerVijay Bellur <vbellur@redhat.com>2014-03-11 23:45:14 -0700
commit3076f75e57b971dd07165929b3dc4d0b0e312623 (patch)
tree69a2c2c2491d06729666e84c5c297d31b20aa66e
parentecc475d0a517d7f58014bed93fc0957b3369d1b7 (diff)
scripts: CTDB hooks should add `_netdev` for network mounts
Change-Id: I86ad5e9ed291866a8d478768fb447e269f51c39e BUG: 1075182 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/7221 Reviewed-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Jose A. Rivera <jarrpa@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rwxr-xr-xextras/hook-scripts/start/post/S29CTDBsetup.sh2
-rwxr-xr-xextras/hook-scripts/stop/pre/S29CTDB-teardown.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/extras/hook-scripts/start/post/S29CTDBsetup.sh b/extras/hook-scripts/start/post/S29CTDBsetup.sh
index da077a6..7d5085c 100755
--- a/extras/hook-scripts/start/post/S29CTDBsetup.sh
+++ b/extras/hook-scripts/start/post/S29CTDBsetup.sh
@@ -55,7 +55,7 @@ function add_glusterfs_ctdb_options () {
function add_fstab_entry () {
volname=$1
mntpt=$2
- mntent="`hostname`:/$volname $mntpt glusterfs defaults,transport=tcp 0 0"
+ mntent="`hostname`:/$volname $mntpt glusterfs _netdev,defaults,transport=tcp 0 0"
exists=`grep "^$mntent" /etc/fstab`
if [ "$exists" == "" ]
then
diff --git a/extras/hook-scripts/stop/pre/S29CTDB-teardown.sh b/extras/hook-scripts/stop/pre/S29CTDB-teardown.sh
index 0b6e50e..bfbd356 100755
--- a/extras/hook-scripts/stop/pre/S29CTDB-teardown.sh
+++ b/extras/hook-scripts/stop/pre/S29CTDB-teardown.sh
@@ -60,7 +60,7 @@ function remove_ctdb_options () {
function remove_fstab_entry () {
volname=$1
mntpt=$2
- mntent="`hostname`:/$volname $mntpt glusterfs defaults,transport=tcp 0 0"
+ mntent="`hostname`:/$volname $mntpt glusterfs _netdev,defaults,transport=tcp 0 0"
esc_mntent=$(echo -e "$mntent" | sed 's/\//\\\//g')
exists=`grep "^$mntent" /etc/fstab`
if [ "$exists" != " " ]