蔚蓝深蓝

导航

 

1 一台Inspur SA5212H2 300G*2 做得raid1装系统,3T*12 做得raid单盘raid0.业务线需要把3T*12重做一个raid5,且系统保持不变。

2

/opt/MegaRAID/MegaCli/MegaCli64 -cfglddel l1 a0 

依次删除raid0信息,l1 l2 ... l12。

3

 /opt/MegaRAID/MegaCli/MegaCli64  -CfgAllFreeDrv r5 WB NORA Cached CachedBadBBU -a0

剩下的未配置盘全部加入raid5中。

4

/opt/MegaRAID/MegaCli/MegaCli64 -LDINFO LALL Aall

查看逻辑盘信息

5

Name :
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
Size : 27.013 TB
Sector Size : 512
Parity Size : 2.728 TB
State : Optimal
Strip Size : 256 KB
Number Of Drives : 11
Span Depth : 1
Default Cache Policy: WriteBack, ReadAheadNone, Cached, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAheadNone, Cached, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
PI type: No PI

6 Number Of Drives : 11 且总容量不对,用

/opt/MegaRAID/MegaCli/MegaCli64 -pdlist a0

发现slot8 是unconfigued bad状态,且有foreing信息,用

 /opt/MegaRAID/MegaCli/MegaCli64 -cfgforeign -clear a0

清除硬盘信息,然后用

/opt/MegaRAID/MegaCli/MegaCli64 -PDMAKEGOOD -PHYSDRV[12:1] -FORCE A0 

转换硬盘状态即可。

posted on 2014-01-08 14:44  蔚蓝深蓝  阅读(2637)  评论(0)    收藏  举报