X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-drbd-check.sh;h=ac940b0fffb7b0fdc09656c60eb74db165a46c78;hb=5b70980ff47cf78f1473db59f3a7c73ba1d8d2eb;hp=55fa38617c67e06d53bb66f7b57e3455afe57df4;hpb=6f62860270c13195f115c420aeb142bf6b080a92;p=gnt-info diff --git a/gnt-drbd-check.sh b/gnt-drbd-check.sh old mode 100644 new mode 100755 index 55fa386..ac940b0 --- a/gnt-drbd-check.sh +++ b/gnt-drbd-check.sh @@ -1,5 +1,6 @@ +#!/bin/sh -e -gnt-cluster command -M ls -l /var/run/ganeti/instance-disks/ | awk '{ print $1 $12 " " $10 }' | tr ':' ' ' | tee /dev/shm/node.drbd.instance.disk +gnt-cluster command -M ls -l /var/run/ganeti/instance-disks/ | awk '{ print $1 $12 " " $10 }' | tr ':' ' ' > /dev/shm/node.drbd.instance.disk gnt-cluster command -M cat /proc/drbd | grep cs: | grep -v Connected | tee /dev/shm/drbd.check | \ sed 's/: / /g' | \