Check for Thick Provisioned Disk Space in VMWare

Check-for-Thick-Provisioned-Disk-Space

If you want to run a check against your VMWare infrastructure for virtual machines that have thick provisioned disks, you can use VMWare PowerCLI to do this quickly and easily.

Our step by step guide below will show you what you need to do to bring back the results that you need.

Check for Thick Provisioned Disk – Step by Step Guide

Download VMWare PowerCLI

The first thing that you need to do is download the VMWare PowerCLI utility from the VMWare website. You can do this by clicking the link below:

Download VMWare PowerCLI

Go ahead and install this onto a machine that is on the same network as the VMWare infrastructure.

Connecting to the vCSA

Once you have installed PowerCLI, run the utility as an administrator (elevated):

open powercli

This will now go through and install the modules that PowerCLI requires and you should be left with a console ready to enter commands:

VMWare PowerCLI Console

Now you will need to connect to the vCenter Server Appliance (vCSA). To do this, run the following command:

Connect-VIServer -Server vCSA-1 -User [email protected] -Password Pa55w0rd

where:

  • vCSA-1 = Your VCSA server
  • [email protected] = administrator username with access to the vCSA
  • Pa55w0rd = Your administrator password

This should now show that you are connected to the vCSA.

Thick Disk Provision Command

Now that you are connected successfully to your local vCSA, you can run this command to get the Thick Provisioned Disks and which virtual machines that they are on:

Get-Datastore | Get-VM | Get-HardDisk | Where {$_.storageformat -eq "EagerZeroedThick" } | Select Parent, Name, CapacityGB, storageformat | FT -AutoSize

This will then output into a formatted table within the PowerCLI console, the full list of virtual machines, which disk it is, the capacity (GB) of the disk and the storage format.

Feedback

If you have any questions or problems with the guide, please feel free to leave us a message below in our comments section, or grab us on our social media channels and we will get back to you as soon as we can!

Free Subscription!Subscribe to our site to receive updates via email!

Enter your email address below and click the Subscribe button to receive email notifications about new and exciting downloads available through our website at https://www.techygeekshome.com

You will also receive notifications about new technical guides, latest news and MSI installer downloads that are available through our blog here at https://blog.techygeekshome.info 

We will not spam you and we will not pass on any of your details to anyone else. We tend to post new content once or twice a week.

Join 232 other subscribers

You can unsubscribe any time you like.

About A.J. Armstrong

Founder of TechyGeeksHome and Head Editor for over eight years! IT expert in multiple areas for over 20 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by A.J. Armstrong