Microsoft Virtualization Discussions

Ask The Experts: NetApp PowerShell Questions, ConverTo-NcVhd: Non-negative number required.

Lin

The version we are using,

NetApp PowerShell Toolkit version:4.7.0
Windows version: VMWare VM Microsoft Windows Server 2012 R2 Standard


Start Windows PowerShell as Administrator

PS C:\> Import-Module DataONTAP

PS C:\> Connect-NcController IP-Address-of-NetApp (entered login credentials)

PS C:\> Get-NcSystemVersion

NcController                                                                    Value
------------                                                                    -----
xx.xxx.xxx.xxx                                                                  NetApp Release 9.5P2: Thu Mar 14 13:59:39 UTC 2019

PS C:\> Get-NcLun /vol/lun_tstapp1_os_vol_clone_2703*/lun_tstapp1_os*

Path                                           Size   SizeUsed Protocol     Online Mapped  Thin  Vserver
----                                           ----   -------- --------     ------ ------  ----  -------
/vol/lun_tstapp1_os_vol_clone_2703201...   110.0 GB    95.3 GB linux         True   True  False  SVMDC5
/vol/lun_tstapp1_os_vol_clone_2703201...   130.0 GB   139.0 MB vmware        True   True  False  SVMDC5

Two LUNs on the same volume /vol/lun_tstapp1_os_vol_clone_24042019_162813_69,

lun_tstapp1_os (110GB) is the SourceLun (Linux VM)
lun_tstapp1_os_vhd (130B) is mapped to VMWare host and mounted on the Windows VM as N: drive

 

Here is the error message I got,

 

PS C:\> ConvertTo-NcVHD -SourceLun /vol/lun_tstapp1_os_vol_clone_24042019_162813_69/lun_tstapp1_os -DestinationVhd N:\tstapp1-os.vhd -SkipUnmap
ConvertTo-NcVHD : Non-negative number required.
Parameter name: byteCount
At line:1 char:1
+ ConvertTo-NcVHD -SourceLun /vol/lun_tstapp1_os_vol_clone_24042019_162813_69/lun_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ConvertTo-NaVhd], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,DataONTAP.PowerShell.SDK.Cmdlets.HyperV.ConvertToNaVhd

 

Any Suggestions?

 

2 REPLIES 2

pandeyji

Looking at the error you have posted.

ConvertTo-NcVHD : Non-negative number required.

In Virtual environment number (or integer) is used to denote child process workers to service requests.

By default, the number of CPUs available is set as the value for workers.

Positive integer value (typically equal to the number of CPUs).

pandeyji
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public