Remove a drive
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
Remove the PhysicalDisk if all repairs are successfully done:
Get-PhysicalDisk | Where-Object { $_.Usage -eq ‘Retired’}
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"