offline disk

将具有焦点的联机磁盘带到脱机状态。 If a dynamic disk in a disk group is taken offline, the status of the disk changes to missing and the group shows a disk that's offline. 缺少的磁盘将移动到无效组。 If the dynamic disk is the last disk in the group, then the status of the disk changes to offline, and the empty group is removed.

Note

A disk must be selected for the offline disk command to succeed. Use the select disk command to select a disk and shift the focus to it.

此命令还可以通过将 SAN 模式更改为脱机,在 SAN 联机模式下的磁盘上运行。

Syntax

offline disk [noerr]

Parameters

Parameter Description
noerr 仅用于脚本编写。 遇到错误时,DiskPart 将继续处理命令,就像错误未发生一样。 如果没有此参数,错误会导致 DiskPart 退出并显示错误代码。

Examples

若要使具有焦点的磁盘脱机,请键入:

offline disk