I'm attempting to add a new HardDisk to a VM on an NFS datastore that enforces thin provisioning. Our NFS volumes are set to auto grow if they reach a certain threshold. This normally isn't a problem, and so we over-provision like crazy.
Recently, however, we've run into an issue where the size of a new Harddisk exceeds the free space of the datastore. It responds with the following error (creating a 1.99TB VMDK):
PowerCLI D:\> New-HardDisk -VM $vm -CapacityGB (1.99 * 1024) -Datastore $datastore
New-HardDisk : 4/8/2014 10:44:09 AM New-HardDisk The operation for the entity VirtualMachine-vm-10964 failed with the following message: "Insufficient disk space on datastore 'datastore1'."
Performing the same task in the vSphere Client produces the following warning, which can be bypassed by clicking "OK":
I've attempted to create a smaller disk and increase it, but I get the same error. I don't see a -Force parameter or anything equivalent. Is it possible to overcommit via PowerCLI?