<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic VSC 6.2 Powershell cmdlets not working as expected in VMware Solutions Discussions</title>
    <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/VSC-6-2-Powershell-cmdlets-not-working-as-expected/m-p/119541#M8635</link>
    <description>&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;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&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Command we are trying to run:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Add-VscDatastore -storageSysteId xxxxxxxxx-xxxxx- -svm test-svm -datastoreName&amp;nbsp;test-ds -hostName $hostname -datastoreProtocol NFS -containerName&amp;nbsp;test-aggr &amp;nbsp;-isThin $TRUE -datastoreSize 600000000000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Issue # 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;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. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Issue # 2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;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. &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Has anybody else run into this and what was the fix ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 20:49:23 GMT</pubDate>
    <dc:creator>johnvogel</dc:creator>
    <dc:date>2025-06-04T20:49:23Z</dc:date>
    <item>
      <title>VSC 6.2 Powershell cmdlets not working as expected</title>
      <link>https://community.netapp.com/t5/VMware-Solutions-Discussions/VSC-6-2-Powershell-cmdlets-not-working-as-expected/m-p/119541#M8635</link>
      <description>&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;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&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Command we are trying to run:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Add-VscDatastore -storageSysteId xxxxxxxxx-xxxxx- -svm test-svm -datastoreName&amp;nbsp;test-ds -hostName $hostname -datastoreProtocol NFS -containerName&amp;nbsp;test-aggr &amp;nbsp;-isThin $TRUE -datastoreSize 600000000000&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Issue # 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;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. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Issue # 2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;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. &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Calibri" color="#000000" size="3"&gt;Has anybody else run into this and what was the fix ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:49:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/VMware-Solutions-Discussions/VSC-6-2-Powershell-cmdlets-not-working-as-expected/m-p/119541#M8635</guid>
      <dc:creator>johnvogel</dc:creator>
      <dc:date>2025-06-04T20:49:23Z</dc:date>
    </item>
  </channel>
</rss>

