VMware Cloud Community
qwert1235
Enthusiast
Enthusiast

Virtual disk type determination

I saw the same question posted (http://communities.vmware.com/thread/265496), but it was more than a year ago, so I wonder if there is some new info about it.

I'm wonder if there is a way to find out what type of disk (thin, thick or eagerzeroedthick) VM has through CLI.

I might need to change them in future, but it's the next step:)

Thank you!

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

Thick or Thin is available in the StorageFormat property.

Get-VM | Get-Harddisk | Select @{N="VM";E={$_.Parent.Name}},Name,StorageFormat

The eagerZeroThicked type is only valid when creating a virtualdisk afaik. See VirtualDiskType

Once created, this indication is of no more need (as William also stated in the referenced thread).


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

qwert1235
Enthusiast
Enthusiast

Luc,

Thank you for your answer!

Do you know if there is a way to convert disks on VMs from thin to thick without storage Vmotion and without powering VMs down (I saw you did thick to thin recently, but you powered off VMs)?

Thanks a lot!

Reply
0 Kudos
LucD
Leadership
Leadership

No, not that I know of at least.


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

Reply
0 Kudos