Table of ContentsView in Frames

Creating LUNs and mapping igroups for iSCSI

As part of configuring your SAN environment, you have to create LUNs and map them to initiator groups.

Before you begin

You must have completed the following tasks:
  1. Created your aggregates, volumes, and Storage Virtual Machines (SVMs)
  2. Enabled block access with iSCSI
  3. Created your LIFs

About this task

When you create a LUN, you must specify the LUN OS type. After the LUN is created, you cannot modify the LUN host operating system type.

The metadata for each LUN requires approximately 64 KB of space in the containing aggregate. When you create a LUN, you must ensure that the containing aggregate has enough space for the LUN's metadata. If the aggregate does not contain enough space for the LUN's metadata, some hosts might not be able to access the LUN.

Note: You can grow a LUN to 10 times its original size. For example, if you create a 100 GB LUN, you can grow that LUN to 1,000 GB. However, you cannot exceed 16 TB, which is the maximum LUN size limit.
Note: The actual size of the LUN may be slightly different based on the OS type of the LUN.
Note: ALUA is always enabled. You cannot change the ALUA setting.


  1. Use the lun create command to create your LUNs.
    If you want... Then use...
    a space-reserved LUN space-reserve enabled
    a thinly provisioned LUN space-reserve disabled
    lun create -vserver vs3 -volume vol3 -lun lun0 -size 50GB -ostype windows -space-reserve disabled
  2. Use the igroup create command to create your igroups.
    igroup create -vserver vs3 -igroup igroup1 -protocol iscsi -ostype windows -initiator
  3. Use the lun map command to map your LUNs to igroups.
    lun map -vserver vs3 -volume vol3 -lun lun0 -igroup igroup1
  4. Use the lun show command to verify that you configured your LUNs correctly.
    lun show -vserver vs3
    Vserver   Path            State   Mapped  Type      Size
    --------- --------------- ------- ------- --------- -------- 
    vs3       /vol/vol3/lun0  online  mapped   windows   50.01GB
    vs3       /vol/vol3/lun1  online  mapped   windows   50.01GB
    vs3       /vol/vol3/lun2  online  mapped   windows   50.01GB
    3 entries were displayed.

After you finish

If you want to limit access to your LUNs to specific LIFs, you must create port sets and bind the port sets to the igroup.