Avatar of E White
E White
Flag for United States of America asked on

How do I clear the virtual machine needs to have its disks consolidated.

I'm getting a the following warning on 2 of my my Veeam Backup and Replication Jobs:


[Warning] VM all stuck VM snapshot consolidation attempts have failed.  

Most likely reason is a virtual disk being locked by some external process. Please troubleshoot the locking issue, and initiate snapshot consolidation manually in vSphere Client.  


When I try to manually consolidate the snapshots, I get error:  Failed  - Unable to access file since it is locked.


Also, when I look at the 2 VM's in vSphere Client, I'm also getting error, "This virtual machine needs to have it's disks consolidated.  You should consolidate disks to improve performance and optimize disk utilization.


I've just checked to see if there were any Snapshots on the 2 VM's and there were no Snapshots.  It just says you are here.


Any help in this situation would be most appreciated.





VirtualizationVeeamvSphere* vmsware 6.5

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Third Party backup utilities often leave snapshots hanging around on VMs, you as a VMware Administrator need to check either manually after every backup, or use scripts or alarms to do the heavy lifting for you, to warn you of snapshots.

Please have a read of my EE Article to manually check if the VM has a snapshot attached

HOW TO: VMware Snapshots :- Be Patient

and then we can discuss how to deal with it correctly, and that is not to delete it from the datastore browser, or use the consolidation option!

So check now, oh and do not rely on the Snapshot function, to check!
E White

ASKER
Andrew Hancock,
I have a better understanding of Snapshots.
I logged in to vSphere Client viewed the Data of both VM's and it would a appear that I have over 60 snapshots for each of these 2 vm's.  However when I view the Managed Snapshots, there is no snapshots present.

Not sure what's going on here.

Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

So, that's at least 60 days of backups which have created a snapshot, the issue is that you have gone beyond the total number of snapshots that a VM is supposed to support, which is 32 (if memory serves me correct!).

So, you've not been checking, so lesson learnt, let's move on.

Okay, so what we need to try is the following...

Can you check your Veeam Backup and Replication server, and check it does not have any of these VM parent disks attached to it ?
Your help has saved me hundreds of hours of internet surfing.
fblack61
E White

ASKER
If I checked in the right place, I see that the, "Map replicas to existing VM's", is checked.  That's all I can tell.

Hopefully, I'm looking in the right area.


Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I don't think that is the correct place.

Is Veeam installed on a virtual server ?

Edit the Veeam Backup and Replication VM Settings, look at the virtual disks attached to the Veeam VM server.
E White

ASKER
Yes both my Veeam Backup & Replication for Backup and Replication are VM's.

We have 2 ESXi Servers (ESXi1 and ESXi2)'

The Veeam Backup & Replication Server (on EXSI1) is used for Backup only and is attached to a USB External Storage Device (for Backups only ) and the 2 VM's data are stored on the Datastore1.on the ESXi1 server.

Also, the Veeam Backup & Replication Server (on ESXi2) is used for Replication only and  is attacked to the Datasstore1 on the ESXi2 server and the 2 VM's replication also attached to Datastore1 on the ESXi2 server..
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

When Veeam backup a VM, it adds the parent VM disk to  itself, but sometimes fails to unmount it.

You need to check in the disk settings of the Veeam VM include any VM disks of other VMs it has not unmouted, before we can proceed

Right Click the Veeam VMs, and select Edit Settings, and Look a virtual disks
E White

ASKER
This is what I have for the 2 vm's:



Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Okay, good, so repeat for the Veeam servers.

and check they do not have the 134/135 parent disks attached.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
E White

ASKER
The below are where the to Veeam and where the VM's are stored:

Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Are the Veeam servers virtual or physical ?
E White

ASKER
They are Virtual.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

okay, so repeat

the procedure you did for the VMs which are being backed up

https://www.experts-exchange.com/questions/29229881/How-do-I-clear-the-virtual-machine-needs-to-have-its-disks-consolidated.html?anchorAnswerId=43369698#a43369698

for the Veeam VMs to check the disks.
ASKER CERTIFIED SOLUTION
E White

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

no more snapshots ? check regularly ?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

I was able to Consolidate the vm's.

but maybe didn't work ?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Okay, so back to where we were.

Can you check the Veeam virtual server, and just check in the VM Settings, it does not have any of the parent disks connected ?

it should only have Veeam server disks connected to it.

and then I'm going to need a screenshot to listing of the VM folder of all the files for VM-135
E White

ASKER
I will!
E White

ASKER
There is no snapshots:


And here are the files:
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

can you just check the VM settings of the Veeam Server ?