From: Michael Prokop Date: Thu, 20 Sep 2012 08:49:31 +0000 (+0200) Subject: Retrieve information about SCSI devices using lsscsi X-Git-Tag: v0.8.0~3 X-Git-Url: http://git.grml.org/?p=grml-hwinfo.git;a=commitdiff_plain;h=211ace9d14bc263087f1e2b8a11b95229888954b Retrieve information about SCSI devices using lsscsi Turns out to be very useful when trying to identify where a specifc block device is coming from, e.g.: | # lsscsi | [0:0:0:0] disk OPNFILER VIRTUAL-DISK 0 /dev/sda Thanks: Christian Hofstaedtler for the hint --- diff --git a/debian/control b/debian/control index dd34ae4..9ff905f 100644 --- a/debian/control +++ b/debian/control @@ -22,6 +22,7 @@ Recommends: acpi, hwinfo, iproute, laptop-detect, + lsscsi, lvm2, mdadm, net-tools, diff --git a/grml-hwinfo b/grml-hwinfo index d2605f5..7643523 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -297,6 +297,8 @@ cd "${OUTDIR}" || exit 1 iscsiadm -m discovery > iscsiadm_discovery 2>iscsiadm_discovery.error fi + exectest lsscsi && lsscsi > lsscsi 2>lsscsi.error + for disk in $disklist; do if exectest smartctl ; then echo -e "smartctl -a /dev/${disk}:\n" >> smartctl