修复

通过用指定的动态磁盘替换失效的磁盘区域来修复选中的 RAID-5 卷。

必须选择 RAID-5 数组中的卷,此操作才能成功。 Use the select volume command to select a volume and shift the focus to it.

Syntax

repair disk=<n> [align=<n>] [noerr]

Parameters

Parameter Description
disk=<n> 指定将替换故障磁盘区域的动态磁盘。 Where n must have free space greater than or equal to the total size of the failed disk region in the RAID-5 volume.
align=<n> 将所有卷或分区范围与最近的对齐边界对齐。 Where n is the number of kilobytes (KB) from the beginning of the disk to the closest alignment boundary.
noerr 仅用于脚本。 出现错误时,DiskPart 继续处理命令,就像未发生错误一样。 如果没有此参数,则错误会导致 DiskPart 退出并显示错误代码。

Examples

若要通过将卷替换为动态磁盘 4 来替换具有焦点的卷,请键入:

repair disk=4