cannot delete VM role from failover cluster manager

Mohamed Nagi 41 Reputation points
2023-03-26T09:23:39.94+00:00

I have a cluster containing 10 VMs and we want to delete one of them so my teammate delete it incorrectly from the Hyper-V manager first now it still appears in failover cluster and then try to delete error message appears "the file cannot be opened because it is in the process of being deleted" .

can any one help how to delete it from failover cluster.

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,896 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,206 Reputation points
    2023-03-27T12:22:59.79+00:00

    Hello there,

    Whether these VMs were modified on the Hyper-V console before the issue occurs? If they are modified on the Hyper-V console, the result may not be passed to the Cluster console which causes the issue.

    1. When you begin to delete the VM, do you use the cluster GUI to remove the VM, then remove the VM in Hyper-V?

    If the VM files haven't been deleted completely, you may check if restoring the VM and then removing the VM from cluster GUI could work.

    1. Try to restart the Cluster MMC or restart the Server and see if that helps.
    2. If the above method couldn't work, you may also try Process Monitor, we may capture the detailed process when we delete the VM.

    Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry, and process/thread activity. You can get the tool from here https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

    Similar discussion here https://social.technet.microsoft.com/Forums/en-US/faaf2bbf-b623-45c8-b82c-1b9115e6afb8/the-file-cannot-be-opened-because-it-is-in-the-process-of-being-deleted?forum=winserverClustering

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

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.