大网数据广告活动
服务器运维问答

Replacing a drive in a mirrored set (RAID1), how does it know which is "primary"?

· 52CE 我爱测

Let's say I have a RAID 1 array with two mirrored drives. One goes bad. If I order a spare online and just put it in, the hardware controller will rebuild the array, right? How does it know which drive to mirror? What if the driv…

问题原文

原帖链接 · THE JOATMON · CC BY-SA 3.0

Let's say I have a RAID 1 array with two mirrored drives. One goes bad. If I order a spare online and just put it in, the hardware controller will rebuild the array, right? How does it know which drive to mirror? What if the drive I ordered wasn't wiped and was in another RAID1 array? Is there any risk of it mirroring that drive's contents to my drive?

已采纳解答

原帖链接 · RLines · CC BY-SA 3.0

For most hardware RAID cards, when you remove the failed drive it will know that it is gone. Then when you install a new drive of the same size it will just add that drive as the replacement for the removed drive that failed.

In the case of a drive that was in another RAID, the controller knows the ID of the RAID set that is written to the drives. If it finds an ID on the new drive that doesn't match the array it is configured for, it will not join it to the array. The management interface for the RAID card either by entering it during boot time or via the RAID management software within the OS will have an option to import a foreign disk or in some other way force a disk with a foreign configuration to be use.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-04-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。