projects
/
gnt-info
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/ffzg/gnt-info
[gnt-info]
/
gnt-drbd-check.sh
diff --git
a/gnt-drbd-check.sh
b/gnt-drbd-check.sh
old mode 100644
(file)
new mode 100755
(executable)
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' | \
gnt-cluster command -M cat /proc/drbd | grep cs: | grep -v Connected | tee /dev/shm/drbd.check | \
sed 's/: / /g' | \