Solved

too many vmdk files created

Posted on 2011-09-18
7
852 Views
Last Modified: 2012-05-12
I installed VmWare Fusion 3.1.3 and installed 1 windows 7 OS. I created one snapshot. 3 weeks back when i used right "Vmware Fusion" and click "get info" it was 4 GB. Today when I did, it was 32 GB. there are like 12 2GB .vmdk files and many many 384KB .vmdk files.

if this rate keeps going I will be out of space on my mac. why are those 2GB files created everyday and can I delete them
0
Comment
Question by:learningunix
  • 4
  • 3
7 Comments
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
That's correct, and that's how Snaphsots work.

You are not supposed to run on a snapshot disk for ever, only use them for patching, small changes etc

A snapshot is NOT a backup of a VM; that is a gross misconception.  

A snap shot is a way to preserve a point in time when the VM was running OK before making changes. A snapshot is NOT a way to get a static copy of a VM before making changes.  When you take a snapshot of a VM what happens is that a delta file gets created and the original VMDK file gets converted to a Read-Only file.  There is an active link between the original VMDK file and the new delta file.  Anything that gets written to the VM actually gets written to the delta file.   The correct way to use a snapshot is when you want to make some change to a VM like adding a new app or a patch; something that might damage the guest OS. After you apply the patch or make the change and it’s stable, you should really go into snapshot manager and delete the snapshot which will commit the changes to the original VM, delete the snap, and make the VMDK file RW. The official stance is that you really shouldn’t have more than one snap at a time and that you should not leave them out there for long periods of time. Adding more snaps and leaving them there a long time degrades the performance of the VM.  If the patch or whatever goes badly or for some reason you need to get back to the original unmodified VM, that’s possible as well.  

I highly recommend reading these 2 articles on VMware Virtual Machine Snapshots:

Understanding Snapshots - http://kb.vmware.com/kb/1015180
Snaphot Best Practices - http://kb.vmware.com/kb/1025279

Also check out the following Snapshot Articles by Eric Siebert

Pt.1- http://is.gd/Lajg4p
Pt.2- http://is.gd/NdKQWC
Pt.3- http://is.gd/tp2vEK
0
 

Author Comment

by:learningunix
Comment Utility
but if delete the snapsot and something goes wrong how will i bw able to revert back?
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
The idea behind snapshots is

1. you create/start a snapshot
2. apply patches
3. if patches do not work
4. Revert Snapshot e.g. role back the changes
5. if changes have worked successfully
6. Committ the Changes by Deleting the Snapshot.

The point being you do not contiuously run on a snapshot (ever), otherwise it grows out of control, because every single change is benig written to a new file, it expands, becomes too large, and you run out of disk space, and the VM fails!

I would recommend, ONLY running on a snapshot for a short period of time, Max 2 days!

The other issue, is when you now try to Delete (committ) these changes, they will get merged and written to the main vmdk file, this can take, many hours or days to complete, many VMware users panic, and mess around, causing further complications.

So if you are currently happy with your VM currently, committ the changes, (delete) the snapshot.

then create a new one before making the next changes.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:learningunix
Comment Utility
ohhhhhh....

that was really a bad misconception by me.  

i badly misunderstood it as you explained in your bad post. i m stupid.
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
So, just use Snapshots, when you want to prove a change, that gives you the flexibility to Role Back (Revert or Delete) if required.
0
 

Author Comment

by:learningunix
Comment Utility
thanks a ton. i never knew about the linkage. i thought it was just a point in time snapshot
0
 

Author Closing Comment

by:learningunix
Comment Utility
Excellent!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now