修复repair

适用于: Windows Server (半年通道) ,Windows Server 2019,Windows Server 2016,Windows Server 2012 R2,Windows Server 2012Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

通过将故障磁盘区域替换为指定的动态磁盘,修复具有焦点的 RAID-5 卷。Repairs the RAID-5 volume with focus by replacing the failed disk region with the specified dynamic disk.

若要成功执行此操作,必须选择 RAID-5 阵列中的卷。A volume in a RAID-5 array must be selected for this operation to succeed. 使用 " 选择音量 " 命令选择卷并将焦点移动到该卷。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
磁盘 =<n>disk=<n> 指定将替换出现故障的磁盘区域的动态磁盘。Specifies the dynamic disk that will replace the failed disk region. 其中, n 的可用空间必须大于或等于 raid-5 卷中发生故障的磁盘区域的总大小。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>align=<n> 将所有卷或分区区与最接近的对齐边界对齐。Aligns all volume or partition extents to the closest alignment boundary. 其中, n 是从磁盘开始到最接近的对齐边界 (kb) 的千字节数。Where n is the number of kilobytes (KB) from the beginning of the disk to the closest alignment boundary.
noerrnoerr 仅用于脚本编写。for scripting only. 遇到错误时,DiskPart 继续处理命令,就像未发生错误一样。When an error is encountered, DiskPart continues to process commands as if the error didn't occur. 如果没有此参数,则错误会导致 DiskPart 退出并出现错误代码。Without this parameter, an error causes DiskPart to exit with an error code.

示例Examples

若要通过将其替换为动态磁盘4来替换具有焦点的卷,请键入:To replace the volume with focus by replacing it with dynamic disk 4, type:

repair disk=4

其他参考Additional References