How to setup ISCSI SAN with Openfiler
Install openfiler and browse the host IP address on the secured port 446. In this example it is https://192.168.125.130:446
The default username is openfiler and the password is password
The first thing to do is to enable ISCSI services by visiting the services link at the top bar
The ISCSI initiator and the ISCSI target service are disabled by default. Enable the service and start the services
The next step is to setup the network access list. This will be used when we configure the ISCSI target. Add a network by visiting the system link at the top bar. Ensure that the network access configuration type is shared
Now that the services are running and the network defined, we will have to prep the disk for ISCSI target.
Click on the volumes link at the top bar
Since we do not have the disk configured, the system provides a notification to create a volume group first. Notice the highlighted link on the left under volumes section. Click the create new physical volumes or block devices from the menu on the right
This screen gives you a list of available disk. In this example we will be using /dev/sdb. Click on the /dev/sdb under edit disk
The disk partitions are displayed. We will be using the entire disk. Scroll down the page and click create disk. Ensure that the mode is primary and that the partition type is physical volume
Now that the disk is created. Click on volumes group from the menu on the right to create a volume group
Once the volume group is created, its details are displayed
The next step is to create a volume. Click on add volume link on the right
Specify the volume name, space and file system and click the create button
Now we are ready to setup our ISCSI target. Click on ISCSI target on the right menu
Click add under add new ISCSI target
Leave it at default and click the LUN mapping link
Click the map button to map the LUN. Ensure the mode is write-thru.
Now click the network ACL link and set the network displayed to allow
Next click on CHAP authentication
Add an incoming user. Ensure that the password is at least 12 character long
This completes our ISCSI setup.
Click the status link from the top bar and then click ISCSI targets from the left menu to check the status
Once you connect a server to this ISCSI san, you will see the details of the status here