Link to home
Start Free TrialLog in
Avatar of E White
E WhiteFlag 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.





Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

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!
Avatar of 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.

User generated imageUser generated imageUser generated imageUser generated image
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 ?
Avatar of 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.


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.
Avatar of 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..
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
Avatar of E White

ASKER

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

User generated image

User generated image
Okay, good, so repeat for the Veeam servers.

and check they do not have the 134/135 parent disks attached.
Avatar of E White

ASKER

The below are where the to Veeam and where the VM's are stored:
User generated image
User generated image
Are the Veeam servers virtual or physical ?
Avatar of E White

ASKER

They are Virtual.
ASKER CERTIFIED SOLUTION
Avatar of E White
E White
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was able to Consolidate the vm's.

but maybe didn't work ?
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
Avatar of E White

ASKER

I will!
Avatar of E White

ASKER

There is no snapshots:
User generated image

And here are the files:
User generated image
can you just check the VM settings of the Veeam Server ?