Skip to content
Snippets Groups Projects
glusterfsheltest.sh.j2 402 B
Newer Older
healinfo=`gluster volume heal gv info | grep -c "Number of entries: 0"`
HEADER="glusterfs preventing start of slurmctld on `hostname`"
MAILTO={{ admin_email }}
if [ $healinfo != "4" ]
then
    EmailBody="glusterfs preventing start of slurmctld on `hostname` on `date` \ncheck via gluster volume heal gv info"
    echo -e "$EmailBody" | mail -s "$HEADER" "$MAILTO"
fi
[[ $healinfo == "3" ]]