15 lines
535 B
Bash
15 lines
535 B
Bash
#!/bin/bash
|
|
|
|
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}"
|
|
sudo gluster vol rebalance "${VOL}" status
|
|
echo ""
|
|
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}" |