added overview from smart
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 20:52:38 +0000 (21:52 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 17 Feb 2020 20:52:38 +0000 (21:52 +0100)
gnt-disks.sh

index e063925..7764bdd 100755 (executable)
@@ -1,6 +1,9 @@
-#!/bin/sh -xe
+#!/bin/sh -e
 
 gnt-cluster command -M lsblk --scsi -m | grep -v '^return' | tee /dev/shm/gnt-disks | grep -v cdrom
 
+echo "# from lsblk"
 gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings --bytes | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models
 
+echo "# from smart"
+cat /dev/shm/gnt-smart-query | cut -d: -f3,4 | sort | uniq -c