X-Git-Url: http://git.rot13.org/?p=gnt-info;a=blobdiff_plain;f=gnt-drbd-secondary-rebuild.sh;h=0b22e63a2c1f8dd64d4f69e99d312fd27c03f601;hp=57c9fd9185d0d44fa591021519f1f347f6206dcb;hb=e07f357e9a4fd7433becabdc268941a81b16263a;hpb=425943cdf0aec14761cc400775f61a96cd05da06 diff --git a/gnt-drbd-secondary-rebuild.sh b/gnt-drbd-secondary-rebuild.sh index 57c9fd9..0b22e63 100755 --- 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 -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