https://www.bbsmax.com/A/n2d9y8r0dD/ 
wmic csproduct get name    查看服务器型号
wmic bios get serialnumber 查看序列号
 
https://blog.csdn.net/suankuang/article/details/106242025 
https://www.51sjk.com/b19b157342/ 
https://blog.csdn.net/wojiuwangla/article/details/113940417 
https://www.bbsmax.com/A/KE5QYRo45L/ 
https://it.cha138.com/shida/show-5212.html 
linux 查看信息 
软件raid,禁用 
 
硬件raid 
查看硬件是否支持RAID
1 
2 
lspci | grep -i RAID
 lspci | grep -i smart 
 
查看系统是否配置RAID
1 
2 
dmesg | grep -i raid
 dmesg | grep -i smart 
 
如上所示,在系统日志中可以看到存在RAID设备,以及设备型号等信息。或者通过以下命令查看:
 
确认RAID卡型号 
1 
2 
3 
lspci -v -s $(lspci | grep -i raid | awk '{print $1}')
 
 lspci | grep -i smart 
 
从上述返回信息得到RAID卡型号:Subsystem: xxx
根据型号查看服务器RAID磁盘详情 
HP 
linux 
ssacli-4.21-7.0.x86_64.rpm 
https://support.hpe.com/connect/s/softwaredetails?language=zh_CN&softwareId=MTX_521fc533ba8f468f9ad9db20e4 
1 
2 
3 
4 
rpm -ivh ssacli-4.21-7.0.x86_64.rpm
 
 ssacli ctrl all show config
 ssacli ctrl all show config detail 
 
hpacucli-9.40-12.0.x86_64.rpm 
https://mirror.nforce.com/pub/software/raidtools/ 
1 
2 
3 
4 
rpm -ivh hpacucli-9.40-12.0.x86_64.rpm
 
 hpacucli ctrl all show config
 hpacucli ctrl all show config detail 
 
win 
Smart Array P410i 
https://support.hpe.com/connect/s/softwaredetails?language=zh_CN&softwareId=MTX_33fe6fcf4fcb4beab8fee4d2dc 
HP ProLiant Array Configuration Utility CLI for Windows 64-bit 9.40.12.0.exe 
1 
C:\Documents and Settings>"c:\Program Files\Compaq\Hpacucli\Bin\hpacucli.exe" ctrl all show config 
 
或者用图形界面 HP Array Configuration Utility 8.70.9.exe
Smart Array P830i 
如果系统自带了 Smart Storage Administrator CLI 则:
1 
C:\Windows\system32>"c:\Program Files\HP\hpssacli\bin\hpssacli.exe" ctrl all show config 
 
不然只能用图形界面 Smart Storage Administrator
https://support.hpe.com/connect/s/softwaredetails?language=zh_CN&softwareId=MTX_f9eb4d247d3b4488b87976b33d 
https://support.hpe.com/connect/s/softwaredetails?language=zh_CN&softwareId=MTX_891c6d6803044e5db3e0c2a5ab 
HPE Smart Storage Administrator 2.40.13.0.exe
HPE Smart Storage Administrator 3.40.3.0.exe
HPE Smart Storage Administrator 4.21.7.0.exe
https://support.hpe.com/connect/s/softwaredetails?language=zh_CN&softwareId=MTX_1d00dad72f544c5db131a7a5e4 
HPE Smart Storage Administrator CLI for Windows 64-bit 4.21.7.0.exe 装不上。。。
离线 HPE 智能存储管理员(HPE SSA) 
www.ylys.net/post/946.html
https://support.hpe.com/connect/s/softwaredetails?language=zh_CN&softwareId=MTX_321a88714bff4279abf175b9bd 
离线 HPE 智能存储管理员(Offline Array Configuration,HPE SSA)提供可以安装、刻录到 CD/DVD,或者使用面向 Windows 的 HP USB Key 实用程序存储到 USB 闪存盘或 SD 卡的 ISO 镜像。此可交付的内容允许用户在主机操作系统加载前启动到他们可以选择多种配置实用程序(HPE SSA、HPESSACLI 和 HPESSASCRIPTING)的环境。HPE 智能存储管理员(HPE SSA)可帮助您配置、管理、诊断和监控 HP ProLiant 智能阵列管理器,且现在还可支持其他存储设备,如 主机总线适配器(HBAs)、HP 存储控制器,未来还可支持 SCSI Express 驱动器以及 SAS 交换机设备。HPE SSA 更新了 HP 阵列配置实用程序或 ACU 的设计,并可在上线时为多种智能存储计划提供新的特性和功能。HPE SSA 可让您像以前一样配置和管理存储,但是现在配备了更多特性、功能和支持设备。现有 ACU 脚本只需进行较少的变更(如按照顺序调用相应二进制或可执行命令)便可维持兼容性。
Inspur 等 Broadcom / LSI MegaRAID SAS 9361-8i 
megaraid-utils-1.8-2.el7.x86_64.rpm 
https://repo.aerisnetwork.com/stable/centos/7/x86_64/megaraid-utils-1.8-2.el7.x86_64.rpm 
ln -s /opt/megaraid/megacli /usr/bin/MegaCli
查看raid 状态 
1 
2 
3 
4 
5 
6 
MegaCli64 -LdInfo -lAll -aALL
 
 State               : Degraded(降级)
 State               : Offline(离线)
 State               : Optimal(正常)
 Number Of Drives    : 2  RAID组包含2块磁盘。 
 
查看硬盘所有信息 
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
/opt/megaraid/megacli -PDList -aALL
 
 Slot Number:              ---硬盘槽号
 PD Type:                  -----磁盘接口类型
 InquiryData:              -----硬盘的序列号、型号、固件版本
 Raw Size:                 -----磁盘原始大小
 NonCoerced Size:          -----磁盘标准大小
 CoercedSize:              ------磁盘最大可用大小
 Medai Error Count:        ------表示磁盘可能错误,可能是磁盘有坏道,这个值不为0值得注意,数值越大,危险系数越高。
 Other Error Count:        ------表示磁盘可能存在松动,可能需要重新再插入。
 Predictive Failure Count: -----预测故障计数 
 
查看硬盘数量以及有无损坏 
1 
2 
3 
4 
5 
6 
7 
/opt/megaraid/megacli -PDList -aALL
 
 Firmware state: Online, Spun Up 磁盘正常
 Firmware state: Unconfigured(good), Spun Up 磁盘已安装,但未启用
 Firmware state: Unconfigured(bad) 故障
 Firmware state: Failed 故障
 Firmware state: Rebuild 重建,一般在更换磁盘时显示 
 
查看raid级别, 由哪些硬盘组成的 
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
/opt/megaraid/megacli -LdPdInfo -aALL
 
 raid级别:
 	RAIDLevel : Primary-0, Secondary-0, RAID Level Qualifier-0     这就是raid0           
 	0 0 0 是raid0    
 	1 0 0 是raid1  
 	5 0 3 是raid5  
 	1 3 0 是raid10
 	raid1 还需要结合Span Depth的值来判断
 	Span Depth : 2 表示共2个RAID1盘组做成了RAID10,1表示1个RAID1盘组
 	还有一种情况:Primary-1, Secondary-3, RAID LevelQualifier-0 也是表示 RAID-10;
 
 也可以这么显示raid级别,输入就会返回,这种的基本准确
 
 MegaCli64 -ShowSummary -aALL | grep "RAID Level"
 
 
win 
https://www.intel.com/content/www/us/en/download/19041/intel-raid-web-console-3-rwc3-for-windows.html 
storcli Intel_StorCLI_007.1907.0000.0000.zip 
MegaCli Win_CliKL_8.04.07.zip 
https://www.cnblogs.com/luxiaodai/p/9878747.html 
https://www.dianjilingqu.com/187111.html 
MegaCli 是LSI公司官方提供的SCSI卡管理工具,由于LSI被收购变成了现在的Broadcom,所以现在想下载MegaCli,需要去Broadcom官网查找Legacy产品支持,
现在官方有storcli,storcli已经基本代替了megacli,整合了LSI和3ware所有产品。
1 
2 
3 
storcli64 show [all]  显示raid卡相关信息、raid卡高级软件信息
 
 storcli64 /c0 show    显示控制器0的信息 
 
Adaptec 
https://storage.microsemi.com/en-us/support/raid/sas_raid/asr-8805/ 
https://www.cnblogs.com/my-show-time/p/14701882.html 
linux Arcconf-3.07-23850.x86_64.rpm 
window arcconf_v3_07_23850_win.zip 
arcconf 
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
arcconf LIST                #查询整列卡信息
 arcconf GETCONFIG 1 AD      # 查询 Controller #1 的适配器信息
 arcconf GETCONFIG 1 LD      # 查询 Controller #1 的逻辑设备信息
 arcconf GETCONFIG 1 PD      # 查询 Controller #1 的物理设备信息
 arcconf GETCONFIG 1 AR      # 查询 Controller #1 的阵列信息
 arcconf GETCONFIG 1 AL      # 查询 Controller #1 的所有信息
 arcconf GETCONFIG 1 LD|grep 'Logical Device number'     # 查询 Controller #1 的所有逻辑设备编号
 arcconf GETCONFIG 1 LD|grep 'Logical Device name'       # 查询 Controller #1 的所有逻辑设备名称
 arcconf GETCONFIG 1 PD|grep 'Device #'                  # 查询 Controller #1 的所有物理设备编号
 arcconf GETCONFIG 1 LD|grep -E 'Logical Device number|Device:|Slot:'                # 查询 Controller #1 的所有逻辑设备对应的物理设备
 arcconf GETCONFIG 1 LD|grep -E 'Logical Device number|Device:|Slot:'                # 查询 Controller #1 的所有逻辑设备对应的物理设备
 arcconf GETCONFIG 1 LD|grep -E 'Logical Device number|RAID level|Device:|Slot:'     # 查询 Controller #1 的所有逻辑设备的RAID level以及物理设备
 arcconf GETCONFIG 1 LD|grep -E 'Logical Device number|Logical Device name|RAID level|Device:|Slot:'     # 查询 Controller #1 的所有逻辑设备的关键信息 
 
LSI的阵列卡2008/3008 
https://docs.broadcom.com/docs/SAS3IRCU_P16.zip_p 
linux,window SAS3IRCU_P16.zip 
 
1 
2 
3 
sas3ircu list   #查看所有控制器
 sas3ircu 0 display  #查看控制器0下所有硬盘信息
 sas3ircu 0 status  #查看控制器0的状态 
 
LSI SAS2108/2208/3108阵列卡 
storcli64
https://iknow.lenovo.com.cn/detail/dc_178452.html