projects
/
gnt-info
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finish machine setup to test upgrade
[gnt-info]
/
gnt-drbd-secondary-rebuild.sh
diff --git
a/gnt-drbd-secondary-rebuild.sh
b/gnt-drbd-secondary-rebuild.sh
index
57c9fd9
..
0b22e63
100755
(executable)
--- a/
gnt-drbd-secondary-rebuild.sh
+++ b/
gnt-drbd-secondary-rebuild.sh
@@
-3,7
+3,7
@@
test -z "$1" && echo "Usage: $0 node" && exit 1
node=$1
test -z "$1" && echo "Usage: $0 node" && exit 1
node=$1
-gnt-node list-drbd --no-headers $node | grep secondary | awk '{ print $3 }' | while read instance ; do
+gnt-node list-drbd --no-headers $node | grep secondary | awk '{ print $3 }' |
sort -u |
while read instance ; do
echo "## $instance";
gnt-instance stop $instance
gnt-instance modify -t plain $instance
echo "## $instance";
gnt-instance stop $instance
gnt-instance modify -t plain $instance