Microsoft Virtualization Discussions

Intermittent System.IO.FileNotFoundException from Get-NaHostDisk

PATRICKJR

Hi,

I run a script to check specific values on Cluster Nodes. Today I received an error after the script executed Get-NaHostDisk.

The Cluster Nodes change CSV ownership once in a while.

PS C:\Users\Adminguy> Get-NaHostDisk

Get-NaHostDisk : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

At line:1 char:15

+ Get-NaHostDisk <<<<

    + CategoryInfo          : NotSpecified: (:) [Get-NaHostDisk], FileNotFoundException

    + FullyQualifiedErrorId : System.IO.FileNotFoundException,DataONTAP.PowerShell.SDK.Cmdlets.Windows.GetHostDisk

PS C:\Users\Adminguy> $Error[0]|fl -force


Exception             : System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRE
                        SULT: 0x80070002)
                           at DataONTAP.HostUtilities.Vds.IVdsDisk.GetIdentificationData(VdsLunInformation& lunInfo)
                           at DataONTAP.HostUtilities.Vds.VdsDisk.GetLunInformation()
                           at DataONTAP.HostUtilities.DiskDiscovery.DiskService.GetDiskResource(VdsDisk vdsDisk)
                           at DataONTAP.HostUtilities.DiskDiscovery.DiskService.GetDiskResources(IEnumerable`1 vdsDisks
                        )
                           at DataONTAP.HostUtilities.DiskDiscovery.DiskService.GetAllDiskInfo()
                           at DataONTAP.PowerShell.SDK.Cmdlets.Windows.GetHostDisk.ProcessRecord()
                           at System.Management.Automation.CommandProcessor.ProcessRecord()
TargetObject          :
CategoryInfo          : NotSpecified: (:) [Get-NaHostDisk], FileNotFoundException
FullyQualifiedErrorId : System.IO.FileNotFoundException,DataONTAP.PowerShell.SDK.Cmdlets.Windows.GetHostDisk
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {0, 1}
PSMessageDetails      :

Is there a way to solve this problem.

The script worked fine a few days ago.

Thank you

1 REPLY 1

beam

Hi Patrick,

Thanks for the detailed error information.  Does Get-NaHostDisk work if you retry, or does it no longer work at all?

Thanks,

Steven

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.

Public