#!/bin/bash header1 () { cat << HEADER1 ################################################################################ # ${FUSE} has an issue, trying to remount it ################################################################################ HEADER1 } for FUSE in $(grep 'fuse.glusterfs' /proc/mounts | cut -d ' ' -f 2); do if ! stat "${FUSE}" &> /dev/null; then header1 "${FUSE}" umount "${FUSE}" sleep 1s ls -alh "${FUSE}" echo "" fi done