1
BOYPT 2013 年 4 月 16 日
基本都是看lspci了吧,/sys里面会有一些结构但是具体型号估计会不一样。
|
3
ry_wang 2013 年 4 月 16 日
lspci查看系统的RAID卡型号,然后用对应的RAID卡管理工具来查询。
比如HP的hpacucli,DELL、IBM等的MegaCli等。 |
4
halfbloodrock 2013 年 4 月 16 日
dmesg | grep -i raid 看看,HP,IBM的卡的确不容易找到型号
我的项目上的一个机器的RAID卡,DIY的服务器,卡是自己买加的 :D root@localhost:~# dmesg | grep -i raid LSI 3ware SAS/SATA-RAID Controller device driver for Linux v3.26.00.028-2.6.18RH. mpt2sas0: Protocol=(Initiator,Target), Capabilities=(Raid,TLR,EEDP,Snapshot Buffer,Diag Trace Buffer,Task Set Full,NCQ) md: Autodetecting RAID arrays. md: raid0 personality registered for level 0 raid0: looking at sdj1 raid0: comparing sdj1(39078016) with sdj1(39078016) raid0: END root@localhost:~# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: LSI Model: 9750-16i4e DISK Rev: 5.12 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: LSI Model: 9750-16i4e DISK Rev: 5.12 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: OCZ-REVODRIVE Rev: 1.20 Type: Direct-Access ANSI SCSI revision: 05 Host: scsi3 Channel: 00 Id: 00 Lun: 00 |
5
pyKun OP |
6
huangzxx 2013 年 4 月 26 日
试一试:
sudo udevadm test-builtin blkid "$device" 2>/dev/null | grep -q "^ID_FS_USAGE=raid" |