1、查看磁盘信息:


#smartctl -i /dev/sda

smartctl 5.42 2011-10-20 r3458 [x86_64-linux-2.6.18-308.16.1.el5] (local build)

Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net


Smartctl open device: /dev/sda failed: DELL or MegaRaid controller, please try adding '-d megaraid,N'

2、查看做了raid的磁盘信息:


#smartctl -a -d megaraid,0 /dev/sda

其megaraid,0中的0代表的是在megaraid中的物理盘编号


3、smartctl命令 -d 参数:

-d TYPE, --device=TYPE

         Specify device type to one of: ata, scsi, sat[,N][+TYPE], usbcypress[,X], usbjmicron[,x][,N], usbsunplus, marvell, areca,N, 3ware,N, hpt,L/M/N, megaraid,N, cciss,N, auto, test