sginfo command in Linux can be used to get information about the SCSI disks on the system.
Display disk vendor, product code and firmware version :
[root@unixfoo ~]# sginfo /dev/sdd
Device Type 0
Vendor: FUJITSU
Product: XXXXXXXX
Revision level: D406
Display serial number of disk :
[root@unixfoo ~]# sginfo -s /dev/sdd
Serial Number ‘A234284039F6’
Display the disk speed (rpm) :
[root@unixfoo ~]# sginfo -g /dev/sdd | grep -i “Rotational Rate”
Rotational Rate 10025
[root@unixfoo ~]#
The package “sg3_utils” contains the command “sginfo”. Here are the details of this package.
[root@unixfoo ~]# rpm -qf /usr/bin/sginfo
sg3_utils
[root@unixfoo ~]# rpm -qi sg3_utils
Name : sg3_utils Relocations: (not relocatable)
Version : 1.25 Vendor: Redhat
Release : 1.el5 Build Date: xxx
Install Date: Tue 02 Sep 2008 01:45:04 PM PDT Build Host: xx
Group : Utilities/System Source RPM: sg3_utils.src.rpm
Size : 1116360 License: GPLv2+ and BSD
Signature : DSA/SHA1, Mon 24 Mar 2008 05:47:27 PM PDT, Key ID 66c2345e0159
URL : http://sg.torque.net/sg/sg3_utils.html
Summary : Utils for Linux’s SCSI generic driver devices + raw devices
Description :
Collection of Linux utilities for devices that use the SCSI command set.
Includes utilities to copy data based on “dd” syntax and semantics (called
sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
disks (sg_start); do self tests (sg_senddiag); and various other functions.
See the README, CHANGELOG and COVERAGE files. Requires the linux kernel 2.4
series or later. In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
must be used. In the 2.6 series other device names may be used as
well (e.g. /dev/sda).
Warning: Some of these tools access the internals of your system
and the incorrect usage of them may render your system inoperable.
[root@unixfoo ~]#
To read more :
Disk information using smartctl : http://unixfoo.blogspot.com/2007/11/disk-information-using-smartctl.html
How to identify disk speed in netapp : http://unixfoo.blogspot.com/2007/11/netapp-how-to-identify-disk-speed.html