Archive

Archive for September, 2019

Storage Spaces–Retiring an old disk (Simple parity volumes)

September 8, 2019 Leave a comment

If you are using HyperV and storage spaces, you will encounter an issue where there is no simple way to retire any volume

image

In this case, i’m trying to retire the older 50GB virtual disks for the larger 100GBs one.

To do so, i first declare a variable to hold the disk i want to retire in by selecting the first disk that is <50GB

$theDisk = Get-PhysicalDisk | ? Size -lt 51GB | Select-Object -first 1

Thereafter, to retire the disk, run the following command

Set-PhysicalDisk -Usage Retired -InputObject $theDisk

and verify it by running Get-PhysicalDisk again

image

Once the disk is marked as Retired, you can run the Repair Job, in this case i’m rebuilding the DB virtual Disk

Repair-VirtualDisk -FriendlyName "DB Virtual Disk"

image

Once this is completed, you may then proceed to remove the disk from the storage pool