Smartctl check for megaraid controller
To display the SCSI devices currently attached to the server
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST4000DM000-1F21 Rev: CC52
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
Vendor: Optiarc Model: DVD RW AD-7710H Rev: 1.01
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: LSI Model: 9750-4i DISK Rev: 5.12
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 01
Vendor: LSI Model: 9750-4i DISK Rev: 5.12
Type: Direct-Access ANSI SCSI revision: 05
RAID volumes in this example are marked by the string “Vendor: LSI”.
Access to hard disks with smartctl. These can be displayed via the StorCLI
# storcli /c0/vall show
Controller = 0
Status = Success
Description = None
Virtual Drives :
——————
DG/VD TYPE State Access Consist Cache sCC Size Name
———————————————————-
0/0 RAID10 Optl RW Yes NRWTD – 3.633 TB
———————————————————-
# storcli /c0 /eall /sall show
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.
Drive Information :
—————————————————————————
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
—————————————————————————
252:0 10 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:1 11 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:2 9 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:3 8 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:4 12 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:5 14 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:6 13 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
252:7 15 Onln 0 930.390 GB SATA HDD N N 512B ST1000DM003-9YN162 U
—————————————————————————
For I SCSI/SAS disks behind LSI MegaRAID controllers, the smartctl check syntax is given below. Argument megaraid,N, the integer N is the physical disk number within the MegaRAID controller.
smartctl -a -d megaraid,N /dev/sda
smartctl -a -d megaraid,4 /dev/sdb
For SATA disk, use the following syntax
smartctl -a -d sat+megaraid,N /dev/sda
=-=-=-=-=-=