Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Add-NaLunMap


NAME
Add-NaLunMap

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

SYNTAX
Add-NaLunMap [-Path] <String> [-InitiatorGroup] <String> [-ID <Int32>] [-For
ce] [-Controller <NaController>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Maps the LUN to all the initiators in the specified initiator group.


PARAMETERS
-Path <String>
Path of the LUN.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-InitiatorGroup <String>
Initiator group to map to the given LUN.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-ID <Int32>
If the lun ID is not specified, the smallest number that can be used for
the various initiators in the group is automatically picked.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Force
Forcibly map the lun, disabling mapping conflict checks with the cluster
partner. If not specified all conflict checks are performed.

Required? false
Position? named
Default value false
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.Types.Lun.LunInfo


NOTES


Category: lun
API: lun-map

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

C:\PS>Add-NaLunMap /vol/vol2/lun2 viaRPC.iqn.1991-05.com.microsoft:x3550rre7
.rtprre.testdomain


Map lun 'lun2' to the igroup on server 'x3550rre7'.


BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : False
Mapped : True
MultiprotocolType : windows_gpt
Online : True
Path : /vol/vol2/lun2
ReadOnly : False
SerialNumber : HnSolJNfoTZK
ShareState : none
Size : 21476206080
Uuid : 7dcc97f4-17ef-11df-9cab-00a09806c227
Comment :



RELATED LINKS
Remove-NaLunMap
Get-NaLunMap







 Data ONTAP® PowerShell Toolkit