Create an initiator group in NetApp



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 WindowsServer iqn.1991-05.com.microsoft:host5.domain.com

FCP example:

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

please note that initiator group gets created with ALUA enabled.

Map a NetApp lun to initiatorgroup


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/italy/venice to the igroup venice_ig at LUN ID 0:

lun map /vol/italy/venice venice_ig 0

Command to create lun in NetApp

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 600-GB LUN called /vol/italy/venice that is accessible by a Windows host. Space reservation is enabled for the LUN.
lun create -s 600g -t windows /vol/italy/venice

vol is aggregate
italy is volume
venice is required lun

Please note that above command creates a thick provisioned NetApp lun