Identify the Failing Disk: Use the Storage Spaces Management tool (or PowerShell) to identify the specific physical disk that is unhealthy. This will also show up in the Physical Disks Section in storage on windows server.
If you can't or are unable to identify the disk in software, you may have to if possible shut the system down and find the drive. Mark and label the drives that need to be replaced; you can do that by finding the serial number of the drive that failed as down below.
Use the following command to get the status of your storage spaces; note any drives that are failing by serial number.
We can get the serial numbers of the disks we want to replace we can't use the FriendlyName due to both disks having the same friendly name. The disks we want to replace are
So we need to set the disk as retired; to do that we are going to use the following powershell command.
Storage spaces will automatically move data off the drive. Use the command
Get-StorageJob
After the new disk has been added; select the old disk and remove it.
Get-StoragePool -FriendlyName "Data" | Get-PhysicalDisk
We can get the serial numbers of the disks we want to replace we can't use the FriendlyName due to both disks having the same friendly name. The disks we want to replace are
Disk 1 - W381A7X4
Disk 2 - W391A8Z8
Get-PhysicalDisk -SerialNumber $SERIALNUMBER
So we need to set the disk as retired; to do that we are going to use the following powershell command.
$DiskToRemove = Get-PhysicalDisk | Where-Object { $_.SerialNumber -like '*OldSerialNumber*' } | Set-PhysicalDisk -Usage Retired
As shown below
$DiskToRemove = Get-PhysicalDisk | Where-Object { $_.SerialNumber -like '*W391A8Z8*' } | Set-PhysicalDisk -Usage Retired
Get-StorageJob
to get the progress of the job. This shouldn't take very long, once finished remove the bad/retired drive and replace with the new one.
It will find the disk you put in while the disk you removed will still show in your lists of disks until we remove it in software.
After the new disk has been added; select the old disk and remove it.
If you use the Get-PhyscialDisk command in powershell it will show the newly added drives
When Storage Spaces has completed it's rebuild there will be no job running, to check that you can use the command Get-StorageJob to get the status.When completed everything will show up fine and as repaired.