NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

VMware Solutions Discussions

VSC 6.2 Powershell cmdlets not working as expected

johnvogel
2,380 Views

We are attempting to write a script to provision and mount datastores in VMWare via the VSC powershell cmdlets. We have run into several issues when attempting to do this. We are using version 6.2

 

Command we are trying to run:

Add-VscDatastore -storageSysteId xxxxxxxxx-xxxxx- -svm test-svm -datastoreName test-ds -hostName $hostname -datastoreProtocol NFS -containerName test-aggr  -isThin $TRUE -datastoreSize 600000000000

 

Issue # 1

The -datastoreSizeGB parameter is invalid when we attempt to use it in Add-VSCDatastore, it appears we have to use -datastoreSize and specify a value in bytes.

 

Issue # 2

The -isThin $True parameter is not working. When we run the Add-VSCDatastore cmdlet with this parameter the output seems to suggest that the datastore has been created, but it never actually creates. If we remove that parameter the datastore does get created, but it is not thin provisioned.  

 

Has anybody else run into this and what was the fix ?

 

 

 

0 REPLIES 0
Public