report cluster volume groups usage in g
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 16:55:11 +0000 (17:55 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 16:55:11 +0000 (17:55 +0100)
gnt-vg-usage.sh [new file with mode: 0755]

diff --git a/gnt-vg-usage.sh b/gnt-vg-usage.sh
new file mode 100755 (executable)
index 0000000..4b5f972
--- /dev/null
@@ -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
+