Microsoft Virtualization Discussions

cmdlet to map igroup to lun

TDUBB1234
4,419 Views

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

 

 

3 REPLIES 3

mbeattie
4,402 Views

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
4,377 Views

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
4,374 Views

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

 

thanks

Public