Storage Spaces Direct - Can't Remove Physical Disk from the pool in order to able to use it by operating system

Krisztian 46 Reputation points
2022-07-29T20:35:55.093+00:00

Unable to remove disk from S2D
I have a virtual lab /virtual box/ windows 2019 server environment
Lab setup:

  • 1 Domain controller windows 2019 Datacenter server
  • 3 windows server 2019 Datacenter each of them member of the domain, failover clustering installed on each server /3 Nodes/.
  • Storage space is enabled

My problem is when I add on additional disk in virtual box, S2D takes it immediately and I can not remove it from the pool.
I wanna remove "disk5" 30GB see below screenshot pls.

Following command I have done in powershell:
Step 1: Set-PhysicalDisk -FriendlyName “disk5” -Usage Retired
Step 2: Repair-VirtualDisk -FriendlyName “YourVirtualDisk”
Step 3: Get-StorageJob
Step 4: Get-PhysicalDisk | Where-Object { $.Usage -eq ‘Retired’}
Step 5: $DiskToRemove = Get-PhysicalDisk | Where-Object { $
.Usage -eq ‘Retired’}
Step 6: Remove-PhysicalDisk -PhysicalDisks $DiskToRemove -StoragePoolFriendlyName “disk5”
Step 7: Remove-PhysicalDisk $DiskToRemove -StoragePoolFriendlyName "SD2 on BlackRock"

See attachments for details please.

Thank you!

226296-step1.png
226297-step2.png
226250-step3.png
226283-step4.png
226361-step5.png
226298-step6.png
226299-step7.png
226362-step8.png
226265-step9.png

Windows for business | Windows Server | Storage high availability | Clustering and high availability
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Server | Storage high availability | Other

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2022-08-03T08:48:36.35+00:00

Hi Krisztian,

For your situation, in the penultimate picture, we can see that disk5 "CanPool" status is "True", so disk5 does not exist in the storage pool, you can use the command to check:
Get-StoragePool -FriendlyName "pool name" | Get-PhysicalDisk

Therefore, we can directly perform the Remove operation on disk5. The specific operation steps are as follows:
(1)Open a Windows PowerShell session as an administrator.

(2)Type the following command, replacing <diskname> with the friendly name of the disk:
Set-PhysicalDisk -FriendlyName <diskname> -Usage Retired

(3)Type the following command for each storage space that depends on the old disk, replacing <virtualdiskname> with the friendly name of the storage space:
Repair-VirtualDisk -FriendlyName <virtualdiskname>

(4) Prior to performing step 5, you must wait for all active repair jobs to complete. To monitor the status of repair jobs, type the following command:
Get-StorageJob

(5)Type the following command:
Remove-PhysicalDisk -FriendlyName <diskname>

(6)Physically disconnect the old disk.

Best Regards,
Xu Gu

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Oldest
  1. Vivian Ballantyne 0 Reputation points
    2026-06-30T07:21:08.9866667+00:00

    4years to late, but no one else has mentioned it. You have 'FriendlyName' ? but you've got a typo in your screenshot Fried not Friendly

    Was this answer helpful?

    0 comments No comments