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.

Thanks

LVL 5
mickinoz2005Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph GanSystem AdminCommented:
Hove you deleted snapshots before clone it?
0
coolsport00Commented:
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.

~coolsport00
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
coolsport00Commented:
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.

~coolsport00
0
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.
0
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.