- Create a default LUN and add MAP ID 0 ‘zero’ when ever you are provisioning a new ESX rule of thumb for Invicta is add a default lun lun0_ default with MAP ID 0
- Keep all the LUN’s with the same MAP id on each host when provisioning them. ( Caution : If you do not give the same MAP ID for a LUN which is already provisioned and the lun has VM running. The LUN comes up as a new lun to be added to VMware so the Administrator if he is not aware of this issue may end up formating it assuming its a new LUN to provision using VMFS 5.
- You need to remember that you can right click and drag and drop luns to map them.
Step 1: Creating a LUN
Click on LUN Configuration and LUNs and Click on Create LUN
As I have mentioned in the Notes at the top that we need to first create a default lun which is what I am creating below. just fill in the details I call it lun0_default
![Create a Default lun0](httpss://ibrahimquraishi.com/wp-content/uploads/2014/10/2-creating_default_lun-1.png)
![Create LUN Page](httpss://ibrahimquraishi.com/wp-content/uploads/2014/10/3-lun-page_full-1.png)
Step 2. Adding a Host Initiator Group
Click on LUN Configuration and Initiator Groups and Click on Create New Group
Give the server name or if you have 10 esx host to provision the full storage you can call the group and add all the iqn numbers there. – click on Create Group
After the group is created you will find it as shown below, you can right click and see the options you can perform. We need to Add Initiator to this group. In this case I am going to add only one esx host. Copy the iqn number of from the esx host and add it.
To get the IQN if you are using the iSCSI initiator you can go to the host Click on Configuration tab and click on Storage Aadapters and right click and create iscsi adapter. Copy the IQN number.
You will also need to add the iSCSI target ( Invicta iSCSI target) in the Dynamic Discovery tab
![ESX- Host](httpss://ibrahimquraishi.com/wp-content/uploads/2014/10/esx-host-1.png)
![add initiator to esx-01](httpss://ibrahimquraishi.com/wp-content/uploads/2014/10/add-initiator-to-esx-01-1.png)
Step 3: Provisioning LUNS to the ESX Host
To map a LUN right click the esx-01 Initiator Group you have just added and select the second option Map/Unmap Luns
![mapping lun](httpss://ibrahimquraishi.com/wp-content/uploads/2014/10/mapping-lun-1.png)