VM with 0 MB Disk Size

VM with 0 MB Disk Size


let’s see how we can fix  Powered ON VMs which shows disk size is as 0 MB thick provision lazy zeroed, while VM is powered on and working fine but we cannot extend disk space.
In below image you can see VM is powered ON, but its first disk is of only 0MB.


You can fix this issue for all powered on VMs using powercli.
> Get-VM NameofVM | Get-View | %{$_.reload()}
This will reload VM configuration and detect correct size of each disk
VM vMotion to another host will also help to fix this issue, but I have not tried that. 

-
vPRH

2 comments:

  1. I am seeing this issue on a VMDK restored from VEEAM to a new VM. Ive run the suggested cmd '> Get-VM NameofVM | Get-View | %{$_.reload()}' but made no difference, also attempted a vMotion but the VM fails i think due to the disk so large. The drive is 1TB in size but vSphere reports 0MB as provisioned size. Any other suggestions?
    Thanks in advance

    ReplyDelete
  2. Thanks mate ! Its cool solution..Worked like charm.

    ReplyDelete