projects
/
gnt-info
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c886d5
)
added summary by disk model
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 17:33:00 +0000
(18:33 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 17 Feb 2020 17:33:00 +0000
(18:33 +0100)
gnt-disks.sh
patch
|
blob
|
history
diff --git
a/gnt-disks.sh
b/gnt-disks.sh
index
293a67f
..
8be6876
100755
(executable)
--- a/
gnt-disks.sh
+++ b/
gnt-disks.sh
@@
-1,3
+1,6
@@
#!/bin/sh -xe
gnt-cluster command -M lsblk --scsi -m | grep -v '^return' | tee /dev/shm/gnt-disks | grep -v cdrom
+
+gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c
+