Improve gluster-check-rebalance
This commit is contained in:
parent
3cd8540bd2
commit
6d09d3bf31
@ -1,12 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
VOLS="deepunity"
|
||||
SENDER="icasfs-augustinus@st-augustinus.eu"
|
||||
VOLS="kis-aim01 aug-heyexarchiv-repo"
|
||||
SENDER="icasfs-alert@uniklinik-freiburg.de"
|
||||
RECIPIENT="thomas.gebert@iternity.com"
|
||||
|
||||
for VOL in ${VOLS}; do
|
||||
echo "################################################################################"
|
||||
echo "# ${VOL}"
|
||||
gluster vol rebalance "${VOL}" status
|
||||
sudo gluster vol rebalance "${VOL}" status
|
||||
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}"
|
||||
Loading…
Reference in New Issue
Block a user