今天遇到这个事,服务器不能停,新加的2块硬件要做Raid1,说实在的以前都是重启后进Raid的配置界面来做,这不停机的还真没做过,所以就在网上找啊找的,还好找到了。
不过现在这台服务器使用的是Debian的系统(wheezy),所以需要添加源deb http://hwraid.le-vert.net/debian wheezy main。
官方网站给的建议配置是
We provide a Debian repository containing all packages to install
proprietary and opensource tools for you RAID card.
Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size: 0
Firmware state: Online, Spun Up
Device Firmware Level: W1CG
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000cca028561225
SAS Address(1): 0x0
Connected Port Number: 4(path0)
Inquiry Data: HGST HUS724020ALS640 W1CGP6HJADVV
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive Temperature :39C (102.20 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Port-1 :
Port status: Active
Port's Linkspeed: Unknown
Drive has flagged a S.M.A.R.T alert : No
接下来根据这些信息来创建raid1
MegaCli -CfgLdAdd -r1 [32:4,32:5] WB Direct -a0