Table of ContentsView in Frames

Setting up LUNs and igroups using individual commands

Instead of using LUN setup, you can use individual commands to create LUNs, create igroups, and map the LUNs to the appropriate igroups.

Before you begin

The LUN type must be specified.

About this task

After the LUN is created, you cannot modify the LUN host operating system type.
Note: You can grow a LUN to approximately 10 times its original size. For example, if you create a 10 GB LUN, you can grow that LUN to approximately 100 GB. However, you cannot exceed 16 TB, which is the approximate maximum size of a LUN.

Steps

  1. Create a space-reserved LUN by entering the following command on the storage system command line:
    lun create -s size -t ostype lun_path

    -s size indicates the size of the LUN to be created, in bytes by default.

    -t ostype indicates the LUN type. The LUN type refers to the operating system type, which determines the geometry used to store data on the LUN.

    lun_path is the LUN’s path name that includes the volume and qtree.

    Example

    The following example command creates a 5-GB LUN called /vol/vol2/qtree1/lun3 that is accessible by a Windows host. Space reservation is enabled for the LUN.

    lun create -s 5g -t windows_2008 /vol/vol2/qtree1/lun3

  2. Create an igroup by entering the following command on the storage system command line:
    igroup create {-i | -f} -t ostype initiator_group [node ...]

    -i specifies that the igroup contains iSCSI node names.

    -f specifies that the igroup contains FCP WWPNs.

    -t ostype indicates the operating system type of the initiator. The values are solaris, Solaris_efi, windows, windows_gpt, windows_2008, hpux, aix, linux, netware, vmware, xen, and hyper_v.

    initiator_group is the name you specify as the name of the igroup.

    node is a list of iSCSI node names or FCP WWPNs, separated by spaces.

    Example

    iSCSI example:

    igroup create -i -t windows_2008 win_host5_group2 iqn.1991-05.com.microsoft:host5.domain.com

    FCP example:

    igroup create -f -t aix aix-igroup3 10:00:00:00:0c:2b:cc:92

  3. Map the LUN to an igroup by entering the following command on the storage system command line:
    lun map lun_path initiator_group [lun_id]

    lun_path is the path name of the LUN you created.

    initiator_group is the name of the igroup you created.

    lun_id is the identification number that the initiator uses when the LUN is mapped to it. If you do not enter a number, Data ONTAP generates the next available LUN ID number.

    Example

    The following command maps /vol/vol1/qtree1/lun3 to the igroup win_host5_group2 at LUN ID 0:

    lun map /vol/vol2/qtree1/lun3 win_host5_group2 0