Improve gluster-check-rebalance
This commit is contained in:
parent
3cd8540bd2
commit
6d09d3bf31
@ -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}"
|
||||||
Loading…
Reference in New Issue
Block a user