Subscribe

Intermittent System.IO.FileNotFoundException from Get-NaHostDisk

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: (Smiley Happy [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: (Smiley Happy [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

Re: Intermittent System.IO.FileNotFoundException from Get-NaHostDisk

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