Skip to content

Commit f916bf4

Browse files
committed
Improved error handling for VMFS truncate
Improved error #37
1 parent af2dbd3 commit f916bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PureStorage.FlashArray.VMware.VMFS/PureStorage.FlashArray.VMware.VMFS.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ function Set-PfaVmfsCapacity {
444444
$pureVol = $datastore | get-pfaVolfromVMFS -flasharray $fa -ErrorAction Stop
445445
if ($volSize -le $pureVol.size)
446446
{
447-
throw "The new size cannot be smaller than the existing size. VMFS volumes cannot be shrunk."
447+
throw "The new specified size, $($volsize/1024/1024/1024) GB, is smaller than the current size, $($pureVol.size/1024/1024/1024) GB. ESXi does not permit VMFS volumes to be shrunk--please specify a size larger than the existing."
448448
}
449449
New-PfaRestOperation -resourceType "volume/$($pureVol.name)" -restOperationType PUT -flasharray $fa -jsonBody "{`"size`":$($volSize)}" -SkipCertificateCheck |Out-Null
450450
$Global:CurrentFlashArray = $fa

0 commit comments

Comments
 (0)