Microsoft Virtualization Discussions

cmdlet to map igroup to lun

TDUBB1234

What is the cmdlet to map an igroup to a lun?

 

 

3 REPLIES 3

mbeattie

Hi,

 

Depending on if you are using 7-Mode or cDOT it's either Add-NaLunMap or Add-NcLunMap. See cmdlet help for usage:

 

PS C:\> get-help add-nclunmap -examples

NAME
    Add-NcLunMap

SYNOPSIS
    Maps a LUN to all the initiators in the specified initiator group.

    --------------  Example 1 --------------

    C:\PS>Add-NcLunMap /vol/testvol/testlun x3550rre8


    Map LUN 'testlun' to igroup 'x3550rre8'.


    Path                    Size Protocol Online Mapped Thin Vserver  Comment
    ----                    ---- -------- ------ ------ ---- -------  -------
    /vol/testvol/testlun 20.0 GB hyper_v   True   True  True costea01

 

/matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

TDUBB1234

I am not sure why It keeps saying value cannot be null

 

get-nclunmap /vol/myvol/mylun

 

get-nclunmap : Value cannot be null.
Parameter name: Controller parameter neither specified nor set in $global:CurrentNcController
At line:1 char:1

TDUBB1234

oops sorry. I am running 7mode so I used get-nalunmap instead and works fine

 

thanks

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