How can I tell if a vmdk file I have is sparse or not?
thanks,
- h
Not exactly sure what you mean!?
From the GUI you can take a look at the VM's HDD settings or the datastore browser to find out. On the console, you can look at the vmdk descriptor file.
André
I mean how can you tell if the vmdk file is thin or thick without actually doing something like adding zeros to it with "vmkfstools -k"
vmkfstools -k win2k3sp2_64v_harb-07.vmdk
Eager zeroing operation is not allowed on virtual disk win2k3sp2_64v_harb-07.vmdk of type "eagerzeroedthick"
vmkfstools -K win2k3sp2_64v_harb-07.vmdk
Hole Punching: 100% done.
Is there something that will just tell me if its "thin"?
You can check out this script: http://communities.vmware.com/docs/DOC-10885
If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!
I would have preferred a simple command. The script is nice, but overkill for what I needed.
I am not sure that there is a simple command such as vmkfstools you can run to get that information. Most of the time I would believe you need to utilize the API to get that information.
If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!
You could grep for ddb.thinProvisioned in the VMDK as this will be set to 1 if it is.
If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!
Following KB Article can help you out
