• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1863
  • Last Modified:

Vmware - Cannot delete vmdk from datastore

Hi folks,

I had a number of issues with a server veeam created a ton of snapshots and I needed to clone it.

I have done this and the clone is fine but when i deleted the old server it left the two base vmdk files.

When i go to the datastore I tried to delete them but it says can't / access denied.

I rebooted the ESX host that the server was on but still can't delete them.

I need to delete as I need the space now - how can I delete these files.


2 Solutions
Joseph GanSystem AdminCommented:
Hove you deleted snapshots before clone it?
Veeam may still have a 'hold' on the orig VM. If Veeam is installed on a VM, see if that Veeam VM has a snap of the VM you wanna delete associated with it.

BTW "ganjos", you can clone a VM with snaps and the snaps get committed during the process. But snaps may still be part of the orig VM. If Veeam still has a hold on the orig VM, the VM disks will be locked & you won't be able to delete it.

Danny McDanielClinical Systems AnalystCommented:
if veeam is locking the files, I would think that stopping the management service would break the lock.  So, try running 'service mgmt-vmware stop' and a 'service network restart' then deleting the files.  run 'service mgmt-vmware start' when you're done so you can connect to the host with the client again.

if these files are on a SAN then they could be locked by any host connected to it, so rebooting each host connected to it should free up any locks that are out there.  If the datastore is on a NAS, do a 'ls -al' in the directory and see if there's a .lck file.  Delete the .lck first, then you should be able to delete the files.
mickinoz2005Author Commented:
thanks folks,

I rebooted the hosts and I could delete but I only discovered afterwards that the veeam VM had extra disks which were in fact these vm's
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now