Close Menu
DPC Virtual Tips
    Read More

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    SlurmDBD Is Down: What Continues Working and What Does Not

    August 15, 2026

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    August 14, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Tuesday, August 25
    DPC Virtual Tips
    • Home
    • Operating Systems
    • PowerFlex
    • HPC
    • Virtualization
    • About the Author
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Checking Thick-Provisioned Disks with PowerCLI in a vSAN Cluster
    Virtualization

    Checking Thick-Provisioned Disks with PowerCLI in a vSAN Cluster

    DaniloBy DaniloAugust 13, 2024Updated:August 5, 2026No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    PowerCLI thick provisioned disks
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Checking thick-provisioned disks with PowerCLI in a vSAN cluster is a practical way to identify virtual disks that are using a thick provisioning method. This article shows how to use VMware PowerCLI commands to find these disks in a vSAN environment.

    Before checking the disks, it is important to understand the difference between thin-provisioned and thick-provisioned virtual disks. A thin-provisioned disk consumes physical storage space as data is written, while a thick-provisioned disk reserves the configured capacity during disk creation.

    There are two types of thick-provisioned disks in VMware environments: Lazy Zeroed and Eager Zeroed. The main difference is when the storage blocks are initialized, which can affect performance characteristics and storage allocation behavior.

    First and Foremost, What are Thin-Provisioned and Thick-Provisioned Disks?

    A thin-provisioned disk is a virtual disk that allocates storage space as needed. Initially, it appears as if the full disk size is available, but it only uses physical storage when data is written to it. This helps in optimizing storage utilization by saving space until it’s required.

    On the other hand, a thick-provisioned disk allocates the full amount of storage space at the time of disk creation, regardless of how much data is written to it. There are two types of thick-provisioned disks:

    • Lazy Zeroed: where blocks are allocated but not zeroed out until they are used;
    • Eager Zeroed: where all blocks are pre-zeroed during its creation.

    Thick provisioning ensures that the disk has the full storage space available immediately, which can benefit performance but might lead to inefficient storage use if used with no criteria.

    Do you mean PowerCLI, right? How can I install PowerCLI?

    Yes, I mean PowerCLI 🙂
    We have written both articles explaining how to install and perform a basic usage of the PowerCLI.
    Check the following links to get more details:

    — Introduction to the PowerCLI:
    https://dpcvirtualtips.com/introduction-to-the-vmware-powercli/

    — Install VMware PowerCLI Offline:
    https://dpcvirtualtips.com/install-vmware-powercli-offline/

    Creating a VM Storage Policy and configuring it to use Thick-Provisioned

    Since we use a vSAN cluster, all Virtual Machines (VMs) have an applied vSAN Storage Policy. The vSAN Storage Policy tells the VM how their objects will be placed into the vSAN datastore.

    In this case, for instance, we have created a VM Policy named “Test – Thick Policy”:

    Note: After creating the VM Storage Policy, we have applied it to VMs:

    Connecting to the vCenter Server using the PowerCLI

    First, we need to connect to the vCenter Server:

    Connect-VIServer -Server vcf-vcenter-01.lab.local
    
    #replace the vcf-vcenter-01.lab.local to your vCenter Server FQDN

    We can see an example in the following image. We are using the Windows Powershell ISE:

    After typing the vCenter Server credentials, a successful connection appears like the following image – if you receive something different to it, check your vCenter Server access, credentials, DNS resolution, etc:

    To confirm if the vCenter connection is OK, list all powered-on virtual machines:

    Get-VM | Where-Object {$_.PowerState -eq "PoweredOn"}

    Checking all Thick-Provisioned Disks on all Powered-On VMs

    To get all thick-provisioned disks, apply the following PowerCLI command:

    Get-cluster vcf-cl01 | Get-VM | Where-Object {$_.PowerState -eq "PoweredOn"} | Get-HardDisk | Where-Object {$_.ExtensionData.Backing.ThinProvisioned -eq $false} | Select Parent, Name, CapacityGB
    
    #change "vcf-cl01" for your cluster name

    As we can see in the above image, the virtual machine “Test – Thick Policy” has three hard disks, and all are using a vSAN Storage Policy set up with a thick provision method:

    Note: If you need to check it on all VMs (powered-off and powered-on VMs):

    Get-cluster vcf-cl01 | Get-VM | Get-HardDisk | Where-Object {$_.ExtensionData.Backing.ThinProvisioned -eq $false} | Select Parent, Name, CapacityGB

    To Wrapping This Up

    There is a way to see all Compliance VMs with a specific VM Storage Policy. Go to the “Policies and Profiles” menu –> VM Storage Policies –> Select the desired VM Storage Policy –> Click on the “VM Compliance” tab. This tab will show all compliance VMs:

    In some situations, PowerCLI can help generate reports in large environments or generate outputs that make taking notes easier. PowerCLI is a tool that every vSphere administrator must be familiar with!

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleWhat is vSphere vMotion?
    Next Article Getting Useful vSAN Details with PowerCLI
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    VM Replication with vSphere Replication and Site Recovery Manager

    June 16, 2025

    Changing DNS Settings on ESXi Hosts

    May 20, 2025

    Comments are closed.

    Search
    Categories
    • HPC (12)
    • Operating Systems (85)
    • PowerFlex (22)
    • Virtualization (130)
    Read More
    Virtualization

    How to Troubleshoot Packet Drops on an ESXi Host

    By DaniloAugust 16, 20260
    HPC

    SlurmDBD Is Down: What Continues Working and What Does Not

    By DaniloAugust 15, 20260
    HPC

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    By DaniloAugust 14, 20260
    Operating Systems

    Linux Server Has Free Memory but Is Swapping: Why?

    By DaniloAugust 13, 20260
    Operating Systems

    How to Determine Whether Packet Loss Is Local or Network Related on Linux

    By DaniloAugust 12, 20260
    Latest Posts

    How to Troubleshoot Packet Drops on an ESXi Host

    August 16, 2026

    SlurmDBD Is Down: What Continues Working and What Does Not

    August 15, 2026

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    August 14, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy