华为的主机能够使用/opt/MegaRAID/MegaCli/MegaCli64
问题:
当新插入磁盘时候会出现‘The specified physical disk does not have the appropriate attributes to complete’的错误,说指定的物理磁盘没有适当的属性完成。
[root@A03-R12-I69-200-J33FE1K ~]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgSpanAdd -r10 -Array0[8:0,8:1] -Array1[8:2,8:3] WB Direct -a0
The specified physical disk does not have the appropriate attributes to complete
the requested command.
Exit Code: 0x26
去扫描有4块盘是新插入的没有进行清除。
[root@A03-R12-I69-200-J33FE1K ~]# /opt/MegaRAID/MegaCli/MegaCli64 -cfgforeign -scan -a0
There are 4 foreign configuration(s) on controller 0.
Exit Code: 0x00
将新插入的磁盘进行清除
[root@A03-R12-I69-200-J33FE1K ~]# /opt/MegaRAID/MegaCli/MegaCli64 -cfgforeign -clear -a0
Foreign configuration 0 is cleared on controller 0.
Foreign configuration 1 is cleared on controller 0.
Foreign configuration 2 is cleared on controller 0.
Foreign configuration 3 is cleared on controller 0.
Exit Code: 0x00
组raid10 成功
[root@A03-R12-I69-200-J33FE1K ~]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgSpanAdd -r10 -Array0[8:0,8:1] -Array1[8:2,8:3] WB Direct -a0
Adapter 0: Created VD 1
Adapter 0: Configured the Adapter!!
Exit Code: 0x00
显示:
[root@A03-R12-I69-200-J33FE1K ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 557.9G 0 disk
├─sda1 8:1 0 1G 0 part /boot
├─sda2 8:2 0 16G 0 part
├─sda3 8:3 0 100G 0 part /
└─sda4 8:4 0 440.9G 0 part /export
sdb 8:16 0 2.2T 0 disk
其他基础命令:
/opt/MegaRAID/MegaCli/MegaCli64 -ldpdinfo -aall | egrep "(Virtual Drive|Inquiry Data)"
/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -a0|egrep 'Slot Number|Firmware state'
/opt/MegaRAID/MegaCli/MegaCli64 -PDlist -a0|grep "Enclosure Device"|head -1