Microsoft Virtualization Discussions

Copy-NcHostFile Error

MOHANRANJITH
2,316 Views

I am trying to copy (clone) a VHD file on the same LUN which is a CSV. But I get the following error

Copy-NcHostFile : Exception of type 'System.OutOfMemoryException' was thrown.

at line:1 char:1

Copy-NcHostFile C:\ClusterStorage\Volume1\test.vhd

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   + CategoryInfo          : NotSpecified: (:) [Copy-NaHostFile], OutOfMemoryException

   + FullyQualifiedErrorId : System.OutOfMemoryException,DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Windows.CopyNaHostFile

I have installed the latest version of Powershell toolkit. I have tested this on Windows 2012 and Windows 2008 R2. Both gives me the same error? Did anyone notice this error?

Regards,

Mohan

1 ACCEPTED SOLUTION

MOHANRANJITH
2,316 Views

This has been solved by NetApp PS Team. The magic parameter is -skipunmap at the end of the command line. Example Copy-NcHostFile <src> <dest> -skipunmap

View solution in original post

1 REPLY 1

MOHANRANJITH
2,317 Views

This has been solved by NetApp PS Team. The magic parameter is -skipunmap at the end of the command line. Example Copy-NcHostFile <src> <dest> -skipunmap

Public