Remove-VirtualDisk : Not Supported

Clint J. Hall 26 Reputation points
2023-12-01T15:53:31.0833333+00:00

I've recently been in the process of retiring our old 2016 7-Node Failover Cluster running Storage Spaces Direct and migrating VM's to a new 2022 7-Node Failover Cluster also running Storage Spaces Direct. As a process, after migrating enough VM's I delete the CSV and associated Virtual Disk from S2D, retire the physical disks and remove them from the Storage Pool. I can then re-use the remaining life of them in the new cluster since they are all the same drive model (albeit, some require FW updates).

The first time, I used the Failover Cluster MMC to delete the CSV and then the Server Manager to delete the Virtual Disk and this worked fine and as expected. The second time i used the Windows Admin Center to remove the CSV. This did not work correctly or something went wrong in the process. It "properly" deleted the CSV and can see no remaining configurations in the Failover Cluster referring to the old CSV; however, Server Manager > File and Storage Services > Volumes > Storage Pools still shows the old Virtual Disk (same when viewed from any of the host servers). It did not seem to remove it and now has a yellow exclamation mark on it. Additionally, each of the Failover Cluster hosts do not agree on which server it's "attached" to. They each will say something different, either themself or some other host but they all disagree:

User's image

User's image

When I attempt to use Powershell to manually remove the Virtual Disk I get the error "Remove-VirtualDisk : Not Supported".

User's image

When attempting to re-attach, I get another error:

User's image

The rest of the Virtual Disks are in healthy operation and the cluster and resources are functioning properly. I would like to reclaim the physical disks and downsize but cannot until the are released from "being used" by the storage pool.

Any ideas?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,738 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
1,012 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ian Xue 37,721 Reputation points Microsoft Vendor
    2023-12-12T07:31:56.3833333+00:00

    Hi Clint,

    Hope you're doing well.

    Q1: virtual disk error

    Please manually remove the virtual disk, and then try to re-add the virtual disk to the cluster.

    Q2: reclaim the physical disks and downsize.

    Due to resource limitation, we suggest you go to the Microsoft Customer Service Center to open a premier-level case so that with their permission level and resource, Microsoft could provide you with better help on your request.

    Hope my answer can help you!

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Clint J. Hall 26 Reputation points
    2023-12-21T17:44:00.5533333+00:00

    Apologies, I meant to get back sooner. I could not remove and re-add as it was already in the process of a failed remove. It was not showing anywhere to "remove" except in the one location mentioned and would fail each which was actually the cause of the post.

    I was able to, using the Failover Cluster MMC snap-in, choose to 'Add Disk' and was able to discover the aforementioned disk that was attempting to be removed. Once the disk was added back, the old volume was seen. At that point I used the MMC snap into remove the disk again and everything work as expected.

    User's image

    This has made be a bit leery of using the commands in the "Windows Admin Center" to manage my on-site cluster going forward.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.