2015-05-17 04:32 PM
I'm guessing this is an issue in the actual API call. When I query for node with Get-NcLUN is get nothing populated, but I am able to see it from the CLI. Anyone seen this before?
PS C:\Users\Administrator> Get-NcLun | select path,node
cluster1::*>lun show -fields node
vserver path node
------- --------------------- --------------
rg_vs /vol/new_vol/2db_data cm3170-rtp3-01
rg_vs /vol/new_vol/2db_log cm3170-rtp3-01
rg_vs /vol/new_vol/rg1_asm1 cm3170-rtp3-01
rg_vs /vol/new_vol/rg_asm1 cm3170-rtp3-01
rg_vs /vol/new_vol/rg_asm2 cm3170-rtp3-01
rg_vs /vol/new_vol/rg_asm3 cm3170-rtp3-01
vs0 /vol/vol2/lun1 cm3170-rtp3-02
7 entries were displayed.
Solved! SEE THE SOLUTION
2015-05-17 11:08 PM
Which version of the toolkit are you using? With the latest (3.2.1), Node information is correctly displayed. May be this is a problem with an older version?
PS C:\Users\aparajir\Perforce\aparajir_BTC_pstk_3\main> Get-NcLun -VserverContext san_vs | Select Path,Node
2015-05-18 06:47 AM
I never noticed before, but mine does that too.
At first I thought it might be because I was connecting to an SVM management LIF with SVM creds (Nodes aren't SVM concepts), but I tried with a cserver LIF and creds and got the same result.
I am using the latest version posted to the toolchest.
That being said, my controller is running a nightly build of ONTAP 8.2.Xlatest, so all bets are off.
OP, are you running a promoted build?
2015-05-18 07:00 AM
Thanks for the reply. I'm running against a lab box with this:
NetApp Release 8.2.3P1 Cluster-Mode: Mon Feb 02 11:28:04 PST 2015
I'm wondering if maybe this only returns in 8.3?
2015-05-18 08:05 AM
Uh, yes. This works correctly only if toolkit version > 3.2 and DataONTAP version >= 8.3.
I checked the zapidocs for 8.2 and I see the lun-info struct got the node field only in 8.3. So you were right, this was an issue with the api and they fixed it in 8.3.
2015-05-18 01:04 PM
Thanks so much for clarifying everything. One quick question back, are those ZAPI docs somewhere I can cross reference? I'm finding a few others that I seem to be in the same boat with.
2015-05-18 10:47 PM
There is a really great tool available at http://zoom.rtp.netapp.com/, which has the zapidocs for all released versions. If you connect to your filer through this tool it will even automatically choose the appropriate zapidoc for your ONTAP version.
But if you want to access the zapidocs for a particular build, <build_location>/final/bedrock/export/common/zapiprod/adminapi/zapidoc.all is the place to look at. Feel free to send me a private msg or mail if you require any further clarification on this method.