Subscribe

Powershell Toolkit 3.2 and finding out disk and 8.3

Hi,

 

we want to automate disk assignement. As for 8.3 the disk names are different:

 

8.2:


PS C:\WINDOWS\system32> get-ncdisk

Name                      Shelf Bay Position     Capacity  RPM  FW    Model             Paths Aggregate
----                      ----- --- --------     --------  ---  --    -----             ----- ---------
wdflab101:6c.01.0           1    0  data           417 GB  15k  NA02  X411_HVIPC420A15    2   infinittest01
wdflab101:6c.01.1           1    1  dparity        417 GB  15k  NA02  X411_HVIPC420A15    2   infinittest01
wdflab101:6c.01.10          1   10  data           417 GB  15k  NA02  X411_HVIPC420A15    2   infinittest01
wdflab101:6c.01.11          1   11  data           417 GB  15k  NA02  X411_HVIPC420A15    2   infinittest02

 

 

on 8.3

 


PS C:\WINDOWS\system32> get-ncdisk

Name                      Shelf Bay Position     Capacity  RPM  FW    Model             Paths Aggregate
----                      ----- --- --------     --------  ---  --    -----             ----- ---------
1.11.0                     11    0  dparity        417 GB  15k  NA04  X411_S15K7420A15    4   sas02_201
1.11.1                     11    1  parity         417 GB  15k  NA04  X411_S15K7420A15    4   sas02_201
1.11.10                    11   10  data           417 GB  15k  NA04  X411_S15K7420A15    4   sas02_201
1.11.11                    11   11  present        417 GB  15k  NA04  X411_S15K7420A15    4
1.11.12                    11   12  dparity        417 GB  15k  NA04  X411_S15K7420A15    4   sas02_202
1.11.13                    11   13  parity         417 GB  15k  NA04  X411_S15K7420A15    4   sas02_202

 

 

as you see there is no way to find the owner

 

on CLI its working

wdflab2::> disk show
                     Usable           Disk    Container   Container
Disk                   Size Shelf Bay Type    Type        Name      Owner
---------------- ---------- ----- --- ------- ----------- --------- --------
1.11.0              408.2GB    11   0 SAS     aggregate   sas02_201 wdflab201
1.11.1              408.2GB    11   1 SAS     aggregate   sas02_201 wdflab201
1.11.2              408.2GB    11   2 SAS     aggregate   sas02_201 wdflab201
1.11.3              408.2GB    11   3 SAS     aggregate   sas02_201 wdflab201

 

 

so also command

 get-ncdisk | get-ncdiskowner


Get-NcDiskOwner : This API is not supported as of Data ONTAP 8.3. Please use storage-disk-get-iter.
At line:1 char:30
+  get-ncdisk | get-ncdiskowner <<<<
    + CategoryInfo          : InvalidOperation: (10.68.94.166:NcController) [Get-NcDiskOwner], EAPIUNSUPPORTEDVERSION
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Disk.GetNcDiskOwner


So will this be fixed that get-ncdisk

 

Any ideas?

 

Best wishes,

Markus.

 

 

 

 

 

 

Re: Powershell Toolkit 3.2 and finding out disk and 8.3

Hi Markus,

 

I've not got 8.3 yet but have tried something like:

 

$disk = Get-NcDisk 12a.16.4

$disk.DiskOwnershipInfo.OwnerNodeName

 

Hope this helps!

 

Jason

Re: Powershell Toolkit 3.2 and finding out disk and 8.3

Or maybe something like this will work:

 

Get-NcDisk | ft Name,Shelf,Bay,Position,Capacity,RPM,FW,Model,Paths,Aggregate,{$_.DiskOwnershipInfo.OwnerNodeName} -AutoSize