如何取消存储空间中已退役磁盘的退役?

Ian*_*oyd 5 windows storage-spaces windows-server-2012

在过去的某个时刻,Windows Server 2012 机器上的存储空间决定“退役”池中的两个驱动器:

在此输入图像描述

我不希望驱动器退役。我希望你继续使用它们。

如何将驱动器的状态从 更改RetiredAutoSelect

大致如下:

#Assign the "retired" disks to a variable
$retiredDisks = Get-PhysicalDisk | Where-Object { $_.Usage -eq 'Retired'}

#Mark the retired disks as "AutoSelect"
$retiredDisks | Set-PhysicalDisk -Usage AutoSelect
Run Code Online (Sandbox Code Playgroud)

奖励阅读

Yas*_*ash 2

也许这会有所帮助

设置-PhysicalDisk -FriendlyName 驱动器名称 -Usage AutoSelect

参考的详细链接: http ://powershellhelp.space/commands/set-physicaldisk-psv5.php