The data below is from Configuration/DataStores. I have 725.37 gigs free on on 1.36 Terabyte drive. The used data consists, therefore, of ESXi and all the files associated with my VM's.
Identification Device Capacity Free Type Last Update Hardware Acceleration
1.36 TB Datastore Local ATA Disk 1.36 TB 725.37 vmfs3 8/3/2011 Unknown
Server 2008 64 Bit Doub.vmdk 146,800,600
Server 2008 64 Bit Doub-000002.vmdk 122,537,000
Server 2008 64 Bit Doub-000001.vmdk 5,145,600
Server 2008 64 Bit Doub-snapshot1.vmsn 4,199,587
Server 2008 64 Bit Doub-snapshot2.vmsn 4,199,587
Server 2008 64 Bit.vswp 4,194,304
Server 2008 64 Bit.vmdk 1,328,128
Here is how the above files break down:
Server 2008 64 Bit Doub.vmdk 146,800,600 - the virtual machine's 140 GB drive that you assigned
Server 2008 64 Bit Doub-000002.vmdk 122,537,000 - snapshot file #2 of "Server 2008 64 Bit Doub.vmdk"
Server 2008 64 Bit Doub-000001.vmdk 5,145,600 - snapshot file #1 of "Server 2008 64 Bit Doub.vmdk"
Server 2008 64 Bit Doub-snapshot1.vmsn 4,199,587 - snapshot state file #1, part of the snapshotting process - goes with snapshot file #1
Server 2008 64 Bit Doub-snapshot2.vmsn 4,199,587 - snapshot state file #2, part of the snapshotting process - goes with snapshot file #2
Server 2008 64 Bit.vswp 4,194,304 - the VM's swap file - equal to the size of the VM's memory
Server 2008 64 Bit.vmdk 1,328,128 - another VMDK file
vmware-1.log 1,537.71 KB
vmware.log 547.18 KB
vmware-2.log 282.95 KB
Server 2008 64 Bit-Doub.nvram 8.48 KB
Server 2008 64 Bit-Doub.vmx 3.56 KB
Server 2008 64 Bit-Doub.vmsd 1.21 KB
Wll, first I would like to thank you for taking the time to explain these files to me in such detail. <-: would you mind notating the six other files in my directory which I bolded?
I think what I have learned here is this:
When I create a new VM and claim 200 gigs of a 1 terabyte drive for the op system I am automatically claiming more space on my terabyte drive than just 200 gigs..
That extra space will consist of, at minimum, a swap file, log files, and undeleted snapshots.
Once a snapshot is created it should be deleted with 72 hours because VMWare will use it, instead of the parent VMDK, for the op system. This is not the intended purpose of snapshots and even through they can apparently grow to a size of 32 children and one parent this is messy. A snapshot is used to test a configuration and roll back to it. Snapshot deletion consumes a lot of time because snapshot data has to be reincorported into the original VMDK.
In an earlier message you said, "What you have to worry about is filling the datastore. This can happen, and it wouldn't be a good thing."
Now I think I see how this can happen. If I had, for instance, a 1 terabyte hard drive supporting an ESXi host machine and I put 5 180 gig virtuals on it I via non-thin provisioning I would then have claimed 900 gigs of that terabyte drive leaving me with 100 gigs. Assuming that each op system uses a 4 gig swap file for a total of 20 gigs now I am down to 80 free gigs (not counting what ESXi uses and what log files and other smaller files use). So, after creating a few swap files and not deleting them the swap files start to grow. One day I have zero bytes left and this sounds like it's a pretty mess deal to clean up. Is this how it happens?
This article shows the complexity of snapshot relationships to their parent.
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1015180
Thank you for the article on the VMWare Virtual File System.
Thank you again, for your help. I see that this thread has been viewed 55 times which means that others really do learn from the discussions out here.
Mike Gallery