How to configure iSCSI Storage in Openfiler ?

Hello friends as this is the LAB guides in previous post we have seen about how to install & how to configure the Openfiler for the first time. So after successful installation now is the step to create the storage LUN in the openfiler so that it can be used as the datastore in vSphere ESXi. In this post we will see how to configure the iSCSI Storage in the Openfiler step by step.

Configuring iSCSI in Openfiler:-

Step 1:
Login to Openfiler using the Web browser.

Step 2:
Before creating the storage we need to start the iSCSI service in the Openfiler.
So to start the service go to Services menu.
Choose Manage services in the Services Section on the Right.
Here you can see the iSCSI Target Service so First start the service from Start/stop option & also Enable the service.



Step 3:
Now the real process starts.
First you need to add the new Disk to the VM (In case of LAB) or if you already have it in the server you can see that Disk as below.
Volumes > Volumes Section > Block Devices.
Click on the Disk “/dev/sdc” (In your case it might be different)



Step 4:
Now you can see the Partition here.
Scroll down to the Create a Partition in /dev/sdc
You can see that all the details are filled already so just check the starting & ending cylinder & the size then click on Create button to create new partition.



Step 5:
At this stage we have successfully created iSCSI partition.
Now we will be creating new volume group for that partition.
So to create partition go to Volumes > Volumes Section > Volume Groups.
Here you can see the Create a new volume group section.
Provide the Name for your volume group (Do not use Spaces in the Name.)
Choose the Box to which volume you will be using.
Click on the button Add volume group.


Now you can see that your newly created volume group is showing with all the details such as name, size etc.



Step 6:
Now we will create a volume from the Volume group which we had created.
So to create volume go to Volumes > Volumes Section > Add Volume.
First select the Volume group from the Drop down. (If you are using for the first time you will see the first volume group or if you have multiple volume group then you need to choose the specific volume group) .
Scroll down to the Create Volume section.
Here you have to provide your volume details.
Provide the Volume Name, Volume Description, Size for the Volume & choose the block(iSCSI,FC,etc) from the File System/Volume Type.
Click Create button to create new volume.



You can see your created volume in the Manage Volumes from Volumes Section.
It will show the details such as Volume Name, Description, Size etc.



Step 7:
At this stage we have successfully created volume group & volume.
Now it is the time to Add the iSCSI Target & LUN Mapping.
First we will add the iSCSI Target.
Go to Volumes > iSCSI Targets > Target Configuration.
You will see the Target IQN Here so just click on Add button to add new iSCSI Target.



Step 8:
We have created the iSCSI Target now we will Map to LUN to the iSCSI Target.
So to Map the LUN go to Volumes > iSCSI Targets > LUN Mapping.
Here you can see the iSCSI LUN you have created so just choose the ” Write-thru ” from R/W Mode drop down.
Click on Map to Map the LUN.



Step 9:
We are almost finished now we just have to provide Network Access to the iSCSI Target.
So to Provide the Access to the iSCSI Target.
Go to Volumes > iSCSI Targets > Network ACL.
Choose the Allow from Access Drop down.
Click on Update button to save.



We have successfully created the iSCSI LUN & Provided Network Access to the iSCSI Target So now you can directly add this iSCSI LUN to the ESXi to check how to add iSCSI Datastore check below link.

Checkout Our Posts on Openfiler :-

That’s it for Today Friends. I Hope you liked reading this post & If you find anything more to be added or removed feel free to write it in our comments. If you find it useful You are Feel free to share this on social media to help others & spread knowledge.
If you have any query on any thing you are free to write it in our comments section & we will make sure to provide you the better solution as soon as possible.

Checkout our Facebook Group for discussions & more.
You can also Like & Share our Facebook Page for Latest Updates.

Mayur Parmar

Hi I am Mayur Parmar. Independent Author & Founder of Mastering VMware. I am working in IT industry for more than 4 Years with knowledge of VMware , Microsoft Server's, Linux Server's.

Related Articles


  1. Hi Mr Mayur
    Please answer my question because it is the very urgent issue.I cant find openfiler cluster configuration guide.Can you send me guide ? for how can i configured the cluster of openfiler

    1. Hi,
      I didn’t configured openfiler cluster , you can check online or openfiler documentation for the same.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button