projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
499cf1b
)
report cluster volume groups usage in g
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 16:55:11 +0000
(17:55 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 16:55:11 +0000
(17:55 +0100)
gnt-vg-usage.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/gnt-vg-usage.sh
b/gnt-vg-usage.sh
new file mode 100755
(executable)
index 0000000..
4b5f972
--- /dev/null
+++ b/
gnt-vg-usage.sh
@@ -0,0
+1,4
@@
+#!/bin/sh -xe
+
+gnt-cluster command -M vgs --units g --noheadings | grep -v '^return' | awk '{ print $0 " " $7 - $8 }' | tee /dev/shm/gnt-vgs-usage
+