1、安装smartmontools,用ports最简单了。
2、在默认的状态下,接在sli卡下磁盘的名称为mfisyspd0,此时直接用smartctl 命令,则不认识磁盘:
- smartctl -a /dev/mfisyspd2
- smartctl 6.1 2013-03-16 r3800 [FreeBSD 9.1-STABLE amd64] (local build)
- Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
- /dev/mfisyspd2: Unable to detect device type
- Please specify device type with the -d option.
- Use smartctl -h to get a usage summary
3、需要对这些磁盘做一些映射,加载mfip模块:
- #kldload mfip
- #kldstat
- Id Refs Address Size Name
- 1 13 0xffffffff80200000 a0a268 kernel
- 2 1 0xffffffff80e19000 d19 mfip.ko
4、在/dev/就会产生一些pass,要注意看这些pass,光驱会占掉一个,比如下面,有三块硬盘,依次是pass1-pass3
- # ls /dev/pass*
- /dev/pass0 /dev/pass1 /dev/pass2 /dev/pass3
5、对pass1-3再实行smartctl ,就可以看到磁盘信息了:
- # smartctl -a /dev/pass2
- smartctl 6.1 2013-03-16 r3800 [FreeBSD 9.1-STABLE amd64] (local build)
- Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
- === START OF INFORMATION SECTION ===
- Vendor: IBM-ESXS
- Product: ST9500620SS
- Revision: BD2C
- User Capacity: 500,107,862,016 bytes [500 GB]
- Logical block size: 512 bytes
- Rotation Rate: 7200 rpm
- Form Factor: 2.5 inches
- Logical Unit id: 0x5000c500558e6ceb
- Serial number: 9XF1YQ3J00009312T2DP
- Device type: disk
- Transport protocol: SAS
- Local Time is: Mon May 27 08:31:57 2013 CST
- SMART support is: Available - device has SMART capability.
- SMART support is: Enabled
- Temperature Warning: Enabled
- === START OF READ SMART DATA SECTION ===
- SMART Health Status: OK
- Current Drive Temperature: 31 C
- Drive Trip Temperature: 65 C
- Elements in grown defect list: 0
- Vendor (Seagate) cache information
- Blocks sent to initiator = 0
- Vendor (Seagate/Hitachi) factory information
- number of hours powered up = 2992.07
- number of minutes until next internal SMART test = 57
- Error counter log:
- Errors Corrected by Total Correction Gigabytes Total
- ECC rereads/ errors algorithm processed uncorrected
- fast | delayed rewrites corrected invocations [10^9 bytes] errors
- read: 1783224887 0 0 1783224887 0 14002.721 0
- write: 0 0 0 0 0 12947.001 0
- verify: 110251844 0 0 110251844 0 44.550 0
- Non-medium error count: 0
- No self-tests have been logged
时间: 2024-10-10 09:45:21