Hello there,
Please try with the below scripts and see if that helps.
To verify that all drives are healthy and operational :
Get-PhysicalDisk
Get the FriendlyName of the device :
Get-PhysicalDisk | ft FriendlyName
Retire the disk :
Set-PhysicalDisk -FriendlyName "<DeviceName>" -Usage Retired
Find the name of the Virtual Disk :
Get-VirtualDisk
If the name is too long use :
Get-VirtualDisk | ft -AutoSize
For every Virtual Disk in the storage pool do :
Repair-VirtualDisk -FriendlyName "YourVirtualDisk"
Open a new PowerShell window to monitor the repairs with :
Get-StorageJob
Assign the disk to a variable:
$DiskToRemove = Get-PhysicalDisk | Where-Object { $_.Usage -eq ‘Retired’}
Find the name of the storage pool:
Get-StoragePool
Delete the physical disk from the storage pool:
Remove-PhysicalDisk -PhysicalDisks $DiskToRemove -StoragePoolFriendlyName "Storage pool"
If Repair-VirtualDisk takes a long time to execute, let it run its course, before deciding to reformat and rebuild this Storage Spaces array.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--