Megacli创建磁盘raid过程

1、

[root@XXX megactl-0.4.1]# ./megasasctl

a0       PERC H710 Mini           encl:1 ldrv:1  batt:good
a0d0        1TiB RAID 10  2x2  optimal
unconfigured :  a0e32s4   a0e32s5   a0e32s6   a0e32s7
a0e32s0    558GiB  a0d0  online
a0e32s1    558GiB  a0d0  online
a0e32s2    558GiB  a0d0  online
a0e32s3    558GiB  a0d0  online
a0e32s4      1TiB        ready
a0e32s5      1TiB        ready

a0e32s6      1TiB        ready

a0e32s7      1TiB        ready


2、[root@XXX megactl-0.4.1]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgSpanAdd -r10 -Array0[32:4,32:5] -Array1[32:6,32:7] -a0


Unconfigured Physical Disk(s).


Exit Code: 0x26


3、/opt/MegaRAID/MegaCli/MegaCli64 -pdlist -a0


4、[root@XXX megactl-0.4.1]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Scan –a0


There are 3 foreign configuration(s) on controller 0.


Exit Code: 0x00


5、[root@XXX megactl-0.4.1]# /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.


Exit Code: 0x00

6、[root@XXX megactl-0.4.1]# /opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Scan –a0


There is no foreign configuration on controller 0.


Exit Code: 0x00

7、/opt/MegaRAID/MegaCli/MegaCli64 -CfgSpanAdd -r10 -Array0[32:4,32:5] -Array1[32:6,32:7] -a0


8、parted -s /dev/sdb -- mklabel gpt mkpart primary 0 100%

9、mkfs.ext3 /dev/sdb1


你可能感兴趣的:(Megacli创建磁盘raid过程)