在linux上用硬件raid热插拔死盘

我有一个带有4个SATA热插拔驱动器和一个3Ware 9650SE-4LPML硬件RAID控制器的服务器。

服务器运行Ubuntu 10.04.3 LTS,我使用tw_cli来控制RAIDarrays。

所以,一个磁盘死了,重新启动后,控制器把它踢出arrays:

# tw_cli /c0 show Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy ------------------------------------------------------------------------------ u0 RAID-5 DEGRADED - - 64K 5587.9 RiW ON VPort Status Unit Size Type Phy Encl-Slot Model ------------------------------------------------------------------------------ p0 OK u0 1.82 TB SATA 0 - ST2000DL003-9VT166 p1 OK u0 1.82 TB SATA 1 - ST2000DL003-9VT166 p3 OK u0 1.82 TB SATA 3 - ST2000DL003-9VT166 

replace磁盘到达今天。

我的问题是,系统pipe理员可以只更换驱动器,或者我需要先运行一些命令来告诉arrays我正在改变驱动器。

另外,我应该运行哪些命令来查看驱动器是否需要重新添加? tw_cli的手册页说:

  /cx rescan [noscan] This command instructs the controller to rescan all ports and reconstitute all units. The controller will update its list of ports (attached disks), and visits every DCB (Disk Configuration Block) in order to re- assemble its view and awareness of logical units. Any newly found unit(s) or drive(s) will be listed. noscan is used to not inform the OS of the unit discovery. Default is to inform the OS. 

这听起来像我应该做的?

提前致谢。

由于控制器已经驱逐驱动器,因此它不再是物理arrays的一部分。

这意味着您可以安全地换出新的。

插入新驱动器后,应该运行/c0 rescan ,然后是/c0 show ; 你应该看到提到的新驱动器作为备用。

然后你可以给命令重build(这将自动使用默认的configuration设置)

你必须使用/cx rescan ,然后控制器将看到一个“空闲”的磁盘,你必须添加到u0arrays。 控制器不会将新磁盘直接添加到arrays,因为此磁盘没有DCB。 当你将这个驱动器添加到数组时,控制器将为这个驱动器创build一个新的DCBlogging,并且从这个时间开始,磁盘将成为数组的一部分。