VMware Cloud Community
jasonah123
Contributor
Contributor

get-snapshot and sizeMB property

The get-snapshot cmdlet doesn't seem to be grabbing the size correctly. I'm just doing this... Get-VM | Get-Snapshot | Select-Object -property VM,name,Description, SizeMB. The size appears to be close to the size of the actual vmdk files. I would expect to see the actual size of the snapshot. Here is some example output that I am seeing. Names have been changed to protect the guilty.

Appvm 71680.03

Webvm 71680.03

Both VMs have were configured with 2 disks(30 & 40GB). According to vCenter the app vm used storage is 73.27GB and the web vm's used storage is 72.58GB. The provisioned storage for both of them is showing 142GB..?

Thanks,

Jason Horn

http://virtuallygone.wordpress.com

Tags (1)
0 Kudos
4 Replies
esarakaitis
Enthusiast
Enthusiast

I get the same results as you, wonder if this is a bug Smiley Sad

0 Kudos
jasonah123
Contributor
Contributor

Anyone else seeing this? I am using 4.0U1. I tried to use the VI toolkit extensions and use the get-tkesnapshot cmdlet but it wouldn't overwrite the SizeMB parameter. Said something about needing to use a force parameter but I don't see one...

Jason Horn

0 Kudos
LucD
Leadership
Leadership

You're not alone.

See

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
admin
Immortal
Immortal

Hi guys,

Look at the blog post about snapshot size -> http://blogs.vmware.com/vipowershell/2010/09/snapshot-size.html

It describes how the snapshot size is calculated. Also you can find a script that can be used now to get correctly calculated snapshot size.

Vitali

PowerCLI team

0 Kudos