I have a ESXi 6.5 with vmfs5 datastore, with 2 virtual machines, when I try to delete from disk one of they, the another one hangsup and cant restart it, I need to restart the entire host, after the first attempt, the VM is no more on the inventory, but the files are still on the datastore.
I try erase it from CLI, with the same results. Hope someone can help, thank you in advance.
I just had to use PowerCLI, worked like a charm I might add.
You can leave off the Confirm:0 part
Regards,
Randhir
In order to do that, the virtual machine need's to be on the inventory?
Oh, and another detail, is a standalone ESXi server.
Yes, The virtual machine will need to be registered in the ESXi inventory in order to use powershell. It sounds like VMDK file is locked by a process, follow the below VMware article to find out more.
Do you also have VM snapshot based backup solution integrated with the VMhost?
Regards,
Deepak Negi
No, there is no backups, but the production virtual machines has a intensive I/O use, let me try the powershell solution and tell you how it come.
Something that I didn't checked, aparently after the first attempt of deletion of the VM, it delete the configuration files, the only files on the VM folder are some .log and the .vmdk, in order to attempt the PowerCLI deletion I need to create a new virtual machine, attach that disk and then delete it? or there is a way for delete the folder directly?
Thank you in advance.
Yes, you will need to create a new VM and attach the old virtual machine VMDK to it. Just remember to use the -deletepermanenlty switch when you run it from powershell.
Some thing wrong inside esxi........ Could you please share vmkernal log to do further investigation about this issue ....
Regards,
Randhir
Hi guys!, going back on my footsteps, the ESXi didn't erase only some files and let the .vmdk on the VM folder, after the first hangup of the ESXi trying to delete the VM, I try to delete the folder manually from the datastore, I think at that time is when the another files have erased, and when the server attempts to erase the .vmdk it hangup again.
I'm already tryed to erase the VM from PowerCLI with the same results, after a while the server hangsup.
The virtual machine desapear from the inventory, but the folders (the one of the new machine and the one of the old machine) are untouched on the datastore.
