From: Dan Mick Date: Tue, 8 Sep 2015 18:32:39 +0000 (-0700) Subject: Output drive letter along with drive number for convenience X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b3eb84e6b96c7a74509e80ec60e40673525b92bc;p=ceph-cm-ansible.git Output drive letter along with drive number for convenience Signed-off-by: Dan Mick --- diff --git a/roles/testnode/files/libexec/smart.pl b/roles/testnode/files/libexec/smart.pl index 0da3d01..addd56b 100644 --- a/roles/testnode/files/libexec/smart.pl +++ b/roles/testnode/files/libexec/smart.pl @@ -90,7 +90,8 @@ sub smartctl foreach ( $sector[9] ) { my $count = $_; - $message = "Drive $drive has $count $type sectors"; + my $l = chr(ord('a') + $drive); + $message = "Drive $drive (sd$l) has $count $type sectors"; if ( ( $type =~ /reallocated/i && $count > $realloc ) && ( $type =~ /pending/i && $count > $pend ) && ( $type =~ /pending/i && $count > $uncorrect ) ) {