Remove unused buildd_master from local.yaml
[mirror/dsa-puppet.git] / modules / ganeti2 / files / ganeti-reboot-cluster
index 383eb7a..bc95de3 100755 (executable)
@@ -214,7 +214,7 @@ crossmigrate() {
   if [ -e /proc/drbd ]; then
     echo "Waiting for drbd to be consistent."
     sleep 5
-    while egrep -C2 --color -i 'iconsistent|finish' /proc/drbd; do
+    while egrep -C2 --color -i 'iconsistent|finish' /proc/drbd || ! /usr/lib/nagios/plugins/dsa-check-drbd -d All ; do
       echo "Still waiting.."
       sleep 5
     done