Improve gluster-check-rebalance

This commit is contained in:
Thomas Gebert 2025-12-02 16:07:35 +01:00
parent 3cd8540bd2
commit 6d09d3bf31

View File

@ -1,12 +1,15 @@
#!/bin/bash #!/bin/bash
VOLS="deepunity" VOLS="kis-aim01 aug-heyexarchiv-repo"
SENDER="icasfs-augustinus@st-augustinus.eu" SENDER="icasfs-alert@uniklinik-freiburg.de"
RECIPIENT="thomas.gebert@iternity.com" RECIPIENT="thomas.gebert@iternity.com"
for VOL in ${VOLS}; do for VOL in ${VOLS}; do
echo "################################################################################" echo "################################################################################"
echo "# ${VOL}" echo "# ${VOL}"
gluster vol rebalance "${VOL}" status sudo gluster vol rebalance "${VOL}" status
echo "" echo ""
done | mail -S sendwait -s "gluster rebalance status on $HOSTNAME" -r "${SENDER}" "${RECIPIENT}" if [ -f "/home/l3support/bin/brick-do.sh" ]; then
/home/l3support/bin/brick-do.sh -v "${VOL}" -c "df -hTa"
fi
done | mail -S sendwait -s "gluster rebalance status on $HOSTNAME" -r "${SENDER}" "${RECIPIENT}"