linux如何查看硬盘做了raid?centos怎么知道硬盘做了磁盘阵列?
软件raid:只能通过Linux系统本身来查看 cat /proc/mdstat 硬件raid: 最佳的办法是通过已安装的raid厂商的管理工具来查看,有cmdline,也有图形界面。如Adaptec公司的硬件卡就可以通过下面的命令进行查看: dmesg | grep -i "raid" 如果没有安装相应的管理工具,可以通过如下命令: # cat /proc/scsi/scsi [root@server ~]# cat /proc/scsi/scsi
# /usr/dpt/raidutil -L all
Adaptec aacraid driver 1.1-5[24702]
scsi0 : aacraid
device-mapper: dm-raid45: initialized v0.2594l
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: Adaptec Model: BOOTOS Rev: V1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 01 Id: 00 Lun: 00
Vendor: WDC Model: WD1002FAEX-0 Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 01 Id: 01 Lun: 00
Vendor: WDC Model: WD1002FAEX-0 Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 01 Id: 02 Lun: 00
Vendor: WDC Model: WD1002FAEX-0 Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 01 Id: 03 Lun: 00
Vendor: WDC Model: WD1002FAEX-0 Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05