Rather than use FilerView or LUN setup, you can use individual commands to create LUNs, create igroups, and map the LUNs to the appropriate igroups.
-
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 /vol/vol2/qtree1/lun3
-
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.
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 win_host5_group2 iqn.1991-05.com.microsoft:host5.domain.com
FCP example: igroup create -f -t aix aix-igroup3 10:00:00:00c:2b:cc:92
-
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