从原始存储池中移除磁盘?

从原始存储池中移除磁盘?

我有点不知所措。设置新服务器(用于存储空间)时,我们想用于其他用途的磁盘之一被拉入原始存储池。不知怎的,我看不到删除它的选项。似乎没有办法更改磁盘上的 CanPool 属性。

它没有出现在 get-disk 下,而在 get-physicaldisk 下它被标记为“CanPool true”。

我如何将其从原始池中移除以便可以将其格式化为基本光盘?

答案1

以下是一些帮助我解决此问题的 powershell 命令。Rikuto 分享的命令是解决方案的一部分,但我必须关闭 S2D 才能使该命令正常工作。

#find out the unique id for your disk (look for the disk you just created by size)
Get-PhysicalDisk | Select-Object -Property FriendlyName, uniqueID, Size

#assign the UID of the desired disk to a variable
$DiskUID = "<unique disk ID>"

#disable S2D so that disk can be freed from pool and set disk to not be claimed by pool
Disable-ClusterStorageSpacesDirect
Set-ClusterStorageSpacesDirectDisk -CanBeClaimed:$false -PhysicalDiskIds $DiskUID

#re-enable S2D and wait for your clustered volume to become healthy
Enable-ClusterStorageSpacesDirect

我希望这有帮助。

相关内容