Download Openfiler
Use the links (below) to download Openfiler 2.2 x86 (respin 2). After downloading Openfiler, you will then need to burn the ISO image to CD.
http://www.rpath.org/project/openfiler/build?id=8825
Install Openfiler on VMware
After downloading and burning the Openfiler ISO image (ISO file) to CD, insert the CD into the network storage server (openfiler1 in this example), power it on, and answer the installation screen prompts as noted below.
Boot Screen
The first screen is the Openfiler boot screen. At the boot: prompt, hit [Enter] to start the installation process.
Media Test
When asked to test the CD media, tab over to [Skip] and hit [Enter]. If there were any errors, the media burning software would have warned us. After several seconds, the installer should then detect the video card, monitor, and mouse. The installer then goes into GUI mode.
Welcome to Openfiler NAS/SAN Appliance
At the welcome screen, click [Next] to continue.
Keyboard Configuration
The next screen prompts you for the Keyboard settings. Make the appropriate selection for your configuration.
Disk Partitioning Setup
The next screen asks whether to perform disk partitioning using "Automatic Partitioning" or "Manual Partitioning with Disk Druid". You can choose either method here, put atleast 10GB space for internal hard drive.
Select [Automatically partition] and click [Next] continue.
You will then be prompted with a dialog window asking if you really want to remove all partitions. Click [Yes] to acknowledge this warning.
Partitioning
The installer will then allow you to view (and modify if needed) the disk partitions it automatically selected for /dev/hda.
Network Configuration
I made sure to install NIC interfaces (cards) in the network storage server before starting the Openfiler installation. This screen should have successfully detected each of the network devices.
eth0:
- Check OFF the option to [Configure using DHCP]
- Leave the [Activate on boot] checked ON
- IP Address: 192.168.1.195
- Netmask: 255.255.255.0
Continue by setting your hostname manually. I used a hostname of "openfiler1". Finish this dialog off by supplying your gateway and DNS servers.
Time Zone Selection
The next screen allows you to configure your time zone information. Make the appropriate selection for your location.
Set Root Password
Select a root password and click [Next] to continue.
About to Install
This screen is basically a confirmation screen. Click [Next] to start the installation.
Congratulations
And that's it. You have successfully installed Openfiler on the network storage server.

Configure iSCSI Volumes using Openfiler

Openfiler administration is performed using the Openfiler Storage Control Center a browser based tool over an https connection on port 446. For example:
https://openfiler1:446/
From the Openfiler Storage Control Center home page, login as an administrator. The default administration login credentials for Openfiler are:
Username: openfiler
Password: password
To use Openfiler as an iSCSI storage server, we have to perform three major tasks; set up iSCSI services, configure network access, and create physical storage.
Services
To control services, use the Openfiler Storage Control Center and navigate to [Services] / [Enable/Disable]:
To enable the iSCSI service, click on 'Enable' under the 'iSCSI target' service name. After that, the 'iSCSI target' status should change to 'Disable'.
[root@openfiler1 ~]# service iscsi-target status
ietd (pid 3784) is running...
Network Access Restriction
The next step is to configure network access in Openfiler so the nodes (linux1) have permissions to our iSCSI volumes through the storage (private) network.
Navigating to [General] / [Local Networks]. The Local Networks screen allows an administrator to setup networks and/or hosts that will be allowed to access resources exported by the Openfiler appliance.
Physical Storage
We have a 200GB VMWare hard drive for our storage needs. To see this and to start the process of creating our iSCSI volumes, navigate to [Volumes] / [Physical Storage Mgmt.] from the Openfiler Storage Control Center.
Partitioning the Physical Disk
By clicking on the /dev/sda link, we are presented with the options to 'Edit' or 'Create' a partition. Since we will be creating a single primary partition that spans the entire disk.
Mode: Primary
Partition Type: Physical volume
Starting Cylinder: 1
Ending Cylinder: 60801

Volume Group Management
The next step is to create a Volume Group. We will be creating a single volume group named linux1 that contains the newly created primary partition.
Navigate to [Volumes] / [Volume Group Mgmt.]. Using the Volume Group Management screen, enter the name of the new volume group (linux1), click on the checkbox in front of /dev/sda1 to select that partition, and finally click on the 'Add volume group' button.
Logical Volumes
We can now create the five logical volumes in the newly created volume group (linux1).

Navigate to [Volumes] / [Create New Volume]. There we will see the newly created volume group (linux1). Use this screen to create the following five logical (iSCSI) volumes. After creating each logical volume, the application will point you to the "List of Existing Volumes" screen. You will then need to click back to the "Create New Volume" tab to create the next logical volume until all five iSCSI volumes are created:
In effect we have created five iSCSI disks that can now be presented to iSCSI clients (linux1) on the network.
Grant Access Rights to New Logical Volumes
Before an iSCSI client can have access to the newly created iSCSI volumes, it needs to be granted the appropriate permissions. Navigate to [Volumes] /[List of Existing Volumes]. This will present the screen shown in the previous section. For each of the logical volumes, click on the 'Edit' link (under the Properties column). This will bring up the 'Edit properties' screen for that volume. Scroll to the bottom of this screen; change the host from 'Deny' to 'Allow' and click the 'Update' button. Perform this task for all five logical volumes.
Make iSCSI Targets Available to Clients
At this point we have five iSCSI logical volumes. Before an iSCSI client can have access to them, however, an iSCSI target will need to be created for each of these five volumes. Each iSCSI logical volume will be mapped to a specific iSCSI target and the appropriate network access permissions to that target will be granted to the nodes.
Navigate to [Volumes] / [iSCSI Targets]. Verify the grey sub-tab "Target Configuration" is selected. This page allows you to create a new iSCSI target. A default value is automatically generated for the name of the new iSCSI target (better known as the "Target IQN"). An example Target IQN is "iqn.2006-01.com.openfiler:tsn.ae4683b67fd3": You should give for example:
iqn.2006-01.com.openfiler:linx.strg1
iqn.2006-01.com.openfiler:linx.strg2
iqn.2006-01.com.openfiler:linx.strg3
iqn.2006-01.com.openfiler:linx.strg4
iqn.2006-01.com.openfiler:linx.strg5
Once you are satisfied with the new Target IQN, click the "Add" button.

After creating the new iSCSI target, the next step is to map the appropriate iSCSI logical volumes to it. Under the "Target Configuration" sub-tab, verify the correct iSCSI target is selected in the section "Select iSCSI Target". If not, use the pull-down menu to select the correct iSCSI target and hit the "Change" button. Next, click on the grey sub-tab named "LUN Mapping" (next to "Target Configuration" sub-tab). Locate the appropriate iSCSI logical volume and click the "Map" button. You do not need to change any settings on this page.

Every time a new logical volume is added, we need to restart the associated service on the Openfiler server. To restart the iSCSI target service, Navigate to [Services] / [Enable/Disable]. The iSCSI target service should already be enabled (several sections back). If so, disable the service then enable it again.

The same task can be achieved through an SSH session on the Openfiler server:
[root@openfiler1 ~]# service iscsi-target restart
Stopping iSCSI target service: [ OK ]
Starting iSCSI target service: [ OK ]

Configure iSCSI Volumes on Linux 4 Nodes

iSCSI (initiator) service
We have to make sure the iSCSI (initiator) service is up and running. If not installed as part of the operating system setup, the iscsi-initiator-utils RPM (i.e. iscsi-initiator-utils-4.0.3.0-5.i386.rpm) http://glitesoft.cern.ch/cern/slc4X/...4.0.3.0-5.html should be downloaded and installed.
# rpm -qa | grep iscsi
iscsi-initiator-utils-4.0.3.0-5

If not installed, the iscsi-initiator-utils RPM package can be found on disk 3 of 4 of the RHEL4 Update 5 distribution or downloaded from one of the Internet RPM resources.

Use the following command to install the iscsi-initiator-utils RPM package if not present:
# rpm -Uvh iscsi-initiator-utils-4.0.3.0-5.i386.rpm
Edit the /etc/iscsi.conf file and include an entry for DiscoveryAddress which specifies the hostname of the Openfiler network storage server. In our case that was:
...
DiscoveryAddress=oenfiler hostname present in the /etc/hosts file
...
Start (or restart) the iscsi initiator service:
# service iscsi restart

Configure as
# chkconfig --level 345 iscsi on