Avatar of ts11
ts11

asked on 

Consolidating snapshot of a VM that is not found in Snapshot Manager

Hi,

I have an issue where I have a VM running off a snapshot, but I can't consolidate it the usual way because it 's not visible via the Snapshot Manager.

My issue described here: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2003638

The problem for me is, this VM has 65 GB C: and 600 GB data drive.  I have only 50 GB left on the datastore.  I need to take a snapshot of this VM and then delete it immediately afterwards in hopes that it consolidates the other snapshots.  

My question is, how do I know that my 50 GB free space will be enough space for the snapshot? Is there a way to determine this?
VMware

Avatar of undefined
Last Comment
ts11
Avatar of vmwarun - Arun
vmwarun - Arun
Flag of India image

One way you could commit the snapshots of a running VM is by using VMware Standalone Converter. Run the wizard and make sure that you convert the VM into a datastore with sufficient space and your issue should be resolved.
Avatar of ts11
ts11

ASKER

Yes, I did read that work around, but I don't have a datastore with that kind of space.
Avatar of Abhilash
Abhilash

If you have stored the snapshot with your VM you will find the file in your VM's folder.
It will be named example-00000x.vmdk(where example is the VM name).
Seeing the size of it you can determine the space you need to consolidate it.

You could use a converter to move it to a different datastore if you do not have space on the current one. If there is just one datastore, i would suggest you to clean up some space.
one suggestion is, if you have enough memory you could set reservations on all VM's for their required memory which will free up swap space that is being used.
Or you could delete unwanted VM's.
Avatar of ts11
ts11

ASKER

If I turned the virtual machine off and took a snapshot, then attempted to consolidate, would this reduce the amount of space used by the snapshot I created?
Use putty to login through ssh and check how many VMDKs you have in the VM directory. The size of the succeeding snapshot depends on how much data the previous snapshot has recorded.
Avatar of ts11
ts11

ASKER

The virtual machine itself has 2 vmdks.  One for C: and one for the data drive.

There is two snapshots, so an additional 4 vmdks 000001 and 000002.

Here is a picture showing the disks.  Do I add up the size of both 000001 disks and 000002 disks to determine the consolidation size?
exchange-copies.PNG
Well, the delta sync depends on how much has the VM state changed. For example, if you have performed a service pack upgrade, then the C:\ drive would have changed significantly.

Can you resize the existing LUN by say around 50 GB more?
Avatar of Abhilash
Abhilash

Looking at the screenshot you have given it might grow to 80GB at max when you consolidate. not more than that. And it will attain maximum if data is completely stored on the disk. Its better to make sure you have another 50GB like Arun mentioned before consolidating so that you don't run into issues.
Avatar of RickEpnet
RickEpnet
Flag of United States of America image

Depending on what version of VMware there is an option for "Consolidate Snapshots" in addition to delete all and the Snapshot does not always have to show in the Snapshot manager for this to work.

Another thing you can try is to add a Snapshot and then use Delete All or Consolidate Snapshots. I have seen this work.

I would use the "Consolidate Snapshots" option instead of delete all if you have it.
A lot depends on what version you are running.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1023657

Another good read.
https://www.experts-exchange.com/Software/VMWare/A_10300-HOW-TO-VMware-Snapshots-Be-Patient.html
ASKER CERTIFIED SOLUTION
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

Blurred text
THIS SOLUTION IS 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
Avatar of ts11
ts11

ASKER

I will do the above when I find a good time to power off this machine.
Just be cautious and check data store regularly because snapshot will keep increasing.

If data store reaches zero VM will fail on write of snapshot and corruption of snapshot and VM will result causing VM to be corrupted.

So do not wait too long.
Avatar of ts11
ts11

ASKER

All done.  Thanks!
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo