VMware Cloud Community
vGuy
Expert
Expert

Update-VmfsDatastore

Has anyone seen this below error while trying to upgrade VMFS Datastore from version 5 to 6 using Update-VmfsDatastore cmdlet?

============================

2019-03-12T06:46:02 [Preflight Check] DS-TEMP is of VMFS 5 type

2019-03-12T06:46:03 [Preflight Check] checking Datastores capacity

2019-03-12T06:46:03 [Preflight Check] DS-TEMP having Capacity : 6291200 MB Greater or Equal than DS-Source capacity : 6291200 MB

Update-VmfsDatastore : Cannot validate argument on parameter 'Id'. The argument is null or empty. Provide an argument that is not null or empty, and

then try the command again.

At line:1 char:1

+ Update-VmfsDatastore -Datastore $source -TemporaryDatastore $temp -Ta ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidData: (:) [Update-VmfsDatastore], ParameterBindingValidationException

    + FullyQualifiedErrorId : ParameterArgumentValidationError,Update-VmfsDatastore

============================

0 Kudos
10 Replies
LucD
Leadership
Leadership

Depends a bit of what you have in $source.
Did you use the name (string) of the datastore or the result of a Get-Datastore?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
vGuy
Expert
Expert

$source = Get-Datastore "DS-Source"

$temp = Get-Datastore "DS-TEMP"

0 Kudos
LucD
Leadership
Leadership

And you are sure there are single objects in both variables?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
vGuy
Expert
Expert

yes, the variables return only a single Datastore object.

0 Kudos
LucD
Leadership
Leadership

I'm afraid that I can't recreate the issue.
Which PowerCLI version and PowerShell version are you using?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
vGuy
Expert
Expert

VMware PowerCLI 11.0.0 build 10380590

PowerShell Version:

Major  Minor  Build  Revision

-----  -----  -----  --------

5      1      15063  1631

The actual length of Datastores names is 23 characters, not sure if that is causing the issue?

0 Kudos
LucD
Leadership
Leadership

I don't think so, afaik the limit is 42 characters.

I would suggest to open a SR.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

vGuy
Expert
Expert

we shortened the DS names to be sure but still no luck..

0 Kudos
a_p_
Leadership
Leadership

Another user reported a similar issue, so I'd recommend that you follow LucD​'s recomendation to open a SR.

see Upgrade to vmfs 6 using Update-VmfsDatastore


André

0 Kudos
tobyjosham
Contributor
Contributor

Hi

I have exactly the same problem so was wondering if anyone had any further information

0 Kudos