Linux - Smartctl command to find disk info, Smartctl to find HP SmartArray controllers

Smartctl command to find disk info

smartctl is a linux tool which is used to perform disk analysis
 # smartctl -a -d cciss,0 /dev/cciss/c0d0

The smartctl program also allows for you to view and test SMART attributes of a drive. You can quickly check the overall health of a drive by using
 # smartctl -H /dev/sda

   SMART overall-health self-assessment test result: PASSED

For Obtaining drive information -i option will be useful
 # smartctl -i /dev/sda
With the above command you can find information like disk serial number and lots of disk information

Performing short and long disk test
 # smartctl --test=short /dev/sda
 # smartctl --test=long /dev/sda
 # smartctl -a /dev/sda
The above will first perform a short test of the /dev/sda device. This usually takes about a minute to perform, and the smartctl output will tell you when you can check the results. Next, the long test: this one can take quite a bit longer (about two hours here on a 320GB SATA drive). Finally, use the -a option to view the results

scsi_id command to querys a SCSI device via the SCSI INQUIRY
 # /sbin/scsi_id -g -p 0x80 -s /block/sdd
scsi_id command to querys a SCSI device via the SCSI INQUIRY vital product data (VPD) page 0x80 or 0x83 and uses the resulting data to generate a value that is unique across all SCSI devices that properly support page 0x80 or page 0x83

How do I find out hard disk model and serial number
 # cat /proc/scsi/scsi
To find diskinfo you can also use sginfo

sg3_utils is a collection of linux utilities for devices that use the SCSI command set for installing sginfo command install sg3_utils package as below

Install scsiinfo or sg3_utils package
 # yum install sg3_utils

 # sginfo -g /dev/sdb

# sginfo -g /dev/sdb

Rigid Disk Geometry mode page (x)
Number of cylinders                65535
Number of heads                    255
Starting cyl. write precomp        65535
Starting cyl. reduced current      65535
Device step rate                   0
Landing Zone Cylinder              0
RPL                                0
Rotational Offset                  0
Rotational Rate                    15000

To obtail all disk info use sginfo -a
 # sginfo -a /dev/sdd | more

Finding out your hard disk RPM speed using manufactures website/product page, Once obtained hard disk model number, directly go to manufactures website and search for model to get detailed information.

The topic on Linux - Smartctl command to find disk info is posted by - Math

Hope you have enjoyed, Linux - Smartctl command to find disk infoThanks for your time

Tech Bluff