S2D Force 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"

Revision #2
Created 8 December 2018 04:52:11 by Dave
Updated 19 July 2019 15:20:37 by Dave