projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add sshkey for dnsadm
[mirror/dsa-puppet.git]
/
modules
/
ganeti2
/
files
/
ganeti-reboot-cluster
diff --git
a/modules/ganeti2/files/ganeti-reboot-cluster
b/modules/ganeti2/files/ganeti-reboot-cluster
index
28f945b
..
bc95de3
100755
(executable)
--- a/
modules/ganeti2/files/ganeti-reboot-cluster
+++ b/
modules/ganeti2/files/ganeti-reboot-cluster
@@
-211,6
+211,15
@@
crossmigrate() {
fi
done
fi
done
+ if [ -e /proc/drbd ]; then
+ echo "Waiting for drbd to be consistent."
+ sleep 5
+ 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
+ fi
+
echo "Migrating from $me to $them."
if ! gnt-node migrate -f -n "$them" "$me"; then
echo >&2 "gnt-node migrate exited with an error. Bailing out."
echo "Migrating from $me to $them."
if ! gnt-node migrate -f -n "$them" "$me"; then
echo >&2 "gnt-node migrate exited with an error. Bailing out."