Microsoft Virtualization Discussions

DataONTAP Powershell Toolkit Get-NaHostDisk error

STONEDDRUMMER

Hello, I have get an issue with DataONTAP Powersell Toolkit v 3.1.

I have:

vmware 5.1 exsi ,

Netapp 7-mode and

Windows Server 2008 R2 32 bit.

Error with disk 2, it RDM physically mapped LUN.

I get error :

Windows PowerShell

Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Users\Administrator> Get-Module

PS C:\Users\Administrator> Get-Module -ListAvailable

ModuleType Name                      ExportedCommands

---------- ----                      ----------------

Manifest   DataONTAP                 {}

Manifest   DataONTAP                 {}

Manifest   BitsTransfer              {}

Manifest   DataONTAP                 {}

Manifest   PSDiagnostics             {}

PS C:\Users\Administrator> Import-Module DataONTAP

PS C:\Users\Administrator> Connect-NaController myNetAPP -Credential root

Name                 Address           Ontapi   Version

----                 -------           ------   -------

x.x.x.x              x.x.x.X       1.19     NetApp Release 8.1.2 7-Mode: Tue Oct 30 19:56:51 PDT 2012

PS C:\Users\Administrator> Get-NaHostDisk

Get-NaHostDisk : Non-negative number required.

Parameter name: byteCount

At line:1 char:15

+ Get-NaHostDisk <<<<

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

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

PS C:\Users\Administrator> Get-NaHostDisk 0

HostDrivePath                  Disk       Size ControllerPath

-------------                  ----       ---- --------------

C:\                               0    68.4 GB

PS C:\Users\Administrator> Get-NaHostDisk 1

HostDrivePath                  Disk       Size ControllerPath

-------------                  ----       ---- --------------

D:\                               1   120.0 GB

PS C:\Users\Administrator> Get-NaHostDisk 2

Get-NaHostDisk : Non-negative number required.

Parameter name: byteCount

At line:1 char:15

+ Get-NaHostDisk <<<<  2

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

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

PS C:\Users\Administrator> Invoke-NaHostVolumeSpaceReclaim F:\

Reclaim volume free space

Are you sure you want to reclaim free space on volume F:\?

[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):

PS C:\Users\Administrator> Get-NaHostDisk -DataONTAP

Get-NaHostDisk : Non-negative number required.

Parameter name: byteCount

At line:1 char:15

+ Get-NaHostDisk <<<<  -DataONTAP

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

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

PS C:\Users\Administrator> Get-NaHostDisk 1 | fl *

Disk                    : 1

Size                    : 128852164608

ControllerPath          :

ControllerMode          : Unknown

HostDrivePath           : D:\

HostDiskName            : \\?\PhysicalDrive1

HostVolume              : \\?\Volume{19110609-3b6d-11df-b3fe-78e7d5df52f0}\

HostVolumeIsCsv         : False

HostGptGuid             :

HostMbrSignature        : 1447909153

HostDiskIndex           : 1

DiskSerialNumber        : 6000c29fd54dd77815e57c86be611a0c

DiskSize                : 128852164608

DiskWmiPath             : \\HID\root\cimv2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE1"

ControllerName          :

ControllerIgroup        :

ControllerIgroupType    :

ControllerAddresses     :

ControllerLunPath       :

ControllerVolumeName    :

ControllerLunOsType     :

ControllerSnapshot      :

ControllerQtree         :

ControllerOntapRevision :

ControllerModel         :

IScsiTarget             :

FcpTarget               :

PartnerControllerName   :

IsHaEnabled             : False

IsHaIcConnected         : False

PS C:\Users\Administrator> Get-NaHostDisk 2 | fl *

Get-NaHostDisk : Non-negative number required.

Parameter name: byteCount

At line:1 char:15

+ Get-NaHostDisk <<<<  2 | fl *

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

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

PS C:\Users\Administrator> [wmi](Get-NaHostDisk 1).HostDiskWmiPath | fl *

PS C:\Users\Administrator> [wmi](Get-NaHostDisk 2).HostDiskWmiPath | fl *

Get-NaHostDisk : Non-negative number required.

Parameter name: byteCount

At line:1 char:21

+ [wmi](Get-NaHostDisk <<<<  2).HostDiskWmiPath | fl *

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

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

PS C:\Users\Administrator> Get-NaHostDisk 1

HostDrivePath                  Disk       Size ControllerPath

-------------                  ----       ---- --------------

D:\                               1   120.0 GB

PS C:\Users\Administrator> Get-NaHostDisk 2

Get-NaHostDisk : Non-negative number required.

Parameter name: byteCount

At line:1 char:15

+ Get-NaHostDisk <<<<  2

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

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

PS C:\Users\Administrator>

How to fix this error. Many Thanks.


0 REPLIES 0
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