Table of Contents

基本

FROM: http://unix.stackexchange.com/questions/5085/how-to-see-disk-details-like-manufacturer-in-linux

lshw -class disk
  *-disk:0
       description: SCSI Disk
       product: PERC H710
       vendor: Winbond Electronics
       physical id: 2.0.0
       bus info: scsi@0:2.0.0
       logical name: /dev/sda
       version: 3.13
       serial: 00d6621b0483fd451f00f570dce03f08
       size: 278GiB (299GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=48992565
  *-disk:1
       description: SCSI Disk
       product: PERC H710
       vendor: Winbond Electronics
       physical id: 2.1.0
       bus info: scsi@0:2.1.0
       logical name: /dev/sdb
       version: 3.13
       serial: 00954bd7048ffd451f00f570dce03f08
       size: 278GiB (299GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=4ea89616

显示是PERC H710的Raid 控制器(PowerEdge RAID Controller)。

FROM http://serverfault.com/questions/381177/megacli-get-the-dev-sd-device-name-for-a-logical-drive

ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root  9 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:1:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:1:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:2:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:2:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:3:0 -> ../../sdd
lrwxrwxrwx 1 root root 10 Sep 28 20:27 pci-0000:02:00.0-scsi-0:2:3:0-part1 -> ../../sdd1

FROM: http://www.cyberciti.biz/faq/linux-checking-sas-sata-disks-behind-adaptec-raid-controllers/

$ lspci | grep -i raid
02:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt] (rev 05)

FROM: https://www.thomas-krenn.com/en/wiki/Smartmontools_with_MegaRAID_Controller#cite_note-1 smartctl provides integrated support for MegaRAID controller. Access is made in the following manner:

sudo smartctl -a -d megaraid,N /dev/sdX Where stands for the device ID on the RAID controller.

FROM man smartctl

megaraid,N - [Linux only] the device consists of one or more SCSI/SAS disks connected to a MegaRAID controller. The non-negative integer N (in the range of 0 to 127 inclusive) denotes which disk on the controller is monitored. Use syntax such as:

smart supported raid control: https://www.smartmontools.org/wiki/Supported_RAID-Controllers

更多