diff options
Diffstat (limited to 'extras/hook-scripts')
| -rwxr-xr-x | extras/hook-scripts/start/post/S29CTDBsetup.sh | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/extras/hook-scripts/start/post/S29CTDBsetup.sh b/extras/hook-scripts/start/post/S29CTDBsetup.sh index f33aa2530ed..4265cba54ee 100755 --- a/extras/hook-scripts/start/post/S29CTDBsetup.sh +++ b/extras/hook-scripts/start/post/S29CTDBsetup.sh @@ -6,12 +6,12 @@  #   to get CTDB based failover up and running.  CTDB_MNT=/gluster/lock +# Make sure ping-timeout is not default for CTDB volume  PING_TIMEOUT_SECS=10  PROGNAME="ctdb"  OPTSPEC="volname:"  HOSTNAME=`hostname` -MNTOPTS="_netdev,defaults" -MNTOPTS_GLUSTERFS="transport=tcp,xlator-option=*client*.ping-timeout=${PING_TIMEOUT_SECS}" +MNTOPTS="_netdev,transport=tcp,xlator-option=*client*.ping-timeout=${PING_TIMEOUT_SECS}"  VOL=  # $META is the volume that will be used by CTDB as a shared filesystem.  # It is not desirable to use this volume for storing 'data' as well. @@ -45,7 +45,7 @@ function parse_args () {  function add_fstab_entry () {          volname=$1          mntpt=$2 -        mntopts="${MNTOPTS},${MNTOPTS_GLUSTERFS}" +        mntopts="${MNTOPTS}"          mntent="${HOSTNAME}:/${volname} ${mntpt} glusterfs ${mntopts} 0 0"          exists=`grep "${mntpt}" /etc/fstab` @@ -60,8 +60,7 @@ if [ "$META" = "$VOL" ]  then          mkdir -p $CTDB_MNT          sleep 5 -        # Make sure ping-timeout is not default for CTDB volume -        mount -t glusterfs -oxlator-option=*client*.ping-timeout=${PING_TIMEOUT_SECS} `hostname`:$VOL "$CTDB_MNT" && \ +        mount -t glusterfs -o${MNTOPTS} ${HOSTNAME}:/$VOL "$CTDB_MNT" && \              add_fstab_entry $VOL $CTDB_MNT          chkconfig ctdb on  fi  | 
