FreeBSD下SLI卡下硬盘的检测

1、安装smartmontools,用ports最简单了。
2、在默认的状态下,接在sli卡下磁盘的名称为mfisyspd0,此时直接用smartctl 命令,则不认识磁盘:

  1. smartctl -a /dev/mfisyspd2

  2. smartctl 6.1 2013-03-16 r3800 [FreeBSD 9.1-STABLE amd64] (local build)

  3. Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org


  4. /dev/mfisyspd2: Unable to detect device type

  5. Please specify device type with the -option.


  6. Use smartctl -h to get a usage summary

3、需要对这些磁盘做一些映射,加载mfip模块:

  1. #kldload mfip

  2. #kldstat

  3. Id Refs Address Size Name

  4.  1 13 0xffffffff80200000 a0a268 kernel

  5.  2 1 0xffffffff80e19000 d19 mfip.ko

4、在/dev/就会产生一些pass,要注意看这些pass,光驱会占掉一个,比如下面,有三块硬盘,依次是pass1-pass3

  1. # ls /dev/pass*

  2. /dev/pass0 /dev/pass1 /dev/pass2 /dev/pass3

5、对pass1-3再实行smartctl ,就可以看到磁盘信息了:

  1. # smartctl -a /dev/pass2

  2. smartctl 6.1 2013-03-16 r3800 [FreeBSD 9.1-STABLE amd64] (local build)

  3. Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org


  4. === START OF INFORMATION SECTION ===

  5. Vendor: IBM-ESXS

  6. Product: ST9500620SS

  7. Revision: BD2C

  8. User Capacity: 500,107,862,016 bytes [500 GB]

  9. Logical block size: 512 bytes

  10. Rotation Rate: 7200 rpm

  11. Form Factor: 2.5 inches

  12. Logical Unit id: 0x5000c500558e6ceb

  13. Serial number: 9XF1YQ3J00009312T2DP

  14. Device type: disk

  15. Transport protocol: SAS

  16. Local Time is: Mon May 27 08:31:57 2013 CST

  17. SMART support is: Available - device has SMART capability.

  18. SMART support is: Enabled

  19. Temperature Warning: Enabled


  20. === START OF READ SMART DATA SECTION ===

  21. SMART Health Status: OK


  22. Current Drive Temperature: 31 C

  23. Drive Trip Temperature: 65 C


  24. Elements in grown defect list: 0


  25. Vendor (Seagate) cache information

  26.   Blocks sent to initiator = 0


  27. Vendor (Seagate/Hitachi) factory information

  28.   number of hours powered up = 2992.07

  29.   number of minutes until next internal SMART test = 57


  30. Error counter log:

  31.            Errors Corrected by Total Correction Gigabytes Total

  32.                ECC rereads/ errors algorithm processed uncorrected

  33.            fast | delayed rewrites corrected invocations [10^9 bytes] errors

  34. read: 1783224887 0 0 1783224887 0 14002.721 0

  35. write: 0 0 0 0 0 12947.001 0

  36. verify: 110251844 0 0 110251844 0 44.550 0


  37. Non-medium error count: 0


  38. No self-tests have been logged


你可能感兴趣的:(local,Copyright,bruce,Christian)