Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
We use a Windows Cluster Shared Volume to host all of our VM's vhdxs. On our FAS2240's, we used to be able to use Copy-NAHostFile in order to make quick copies of a golden master vhdx.
After moving the Cluster Mode (8.2), whenever I try to do this, I get this error:
PS C:\Windows\system32> Copy-NaHostFile "C:\ClusterStorage\Volume2\w2k12r2gui-sysprep.vhdx" "C:\ClusterStorage\Volume2\devops.vhdx" Copy-NaHostFile : Integer value 125837312 out of range [1..2^24] for block-count At line:1 char:1 + Copy-NaHostFile "C:\ClusterStorage\Volume2\w2k12r2gui-sysprep.vhdx" "C:\ClusterS ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Copy-NaHostFile], EINVALIDINPUTERROR + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Windows.CopyNaHostFile
Using version 4.1 of the Powershell Toolkit, on Windows Server 2012.
Solved! See The Solution
I read somewhere that Copy-NAHostFile is synonymous (as a Powershell alias?) with Copy-NCHostfile, and, since I couldn't find the Copy-NCHostFile command, I used the NA version.
I've since noticed that I need to manually Import-Module in order to get access to the Copy-NCHostFile command.
You'll want to switch to using the clustered Data ONTAP version of the cmdlet: Copy-NcHostFile.
Andrew
I read somewhere that Copy-NAHostFile is synonymous (as a Powershell alias?) with Copy-NCHostfile, and, since I couldn't find the Copy-NCHostFile command, I used the NA version.
I've since noticed that I need to manually Import-Module in order to get access to the Copy-NCHostFile command.
That's strange. With Windows Server 2012 R2 you shouldn't have to import the module if the installer put everything in the right place.
At any rate, now that you've upgraded to clustered Data ONTAP 8.2 or newer, you can take advantage of Windwos Server 2012's native copy offload feature called ODX. This will usually offer similar performance to the Copy-NcHostFile Cmdlet.
Give it a shot, and let us know how it works for you.