SAN Simulation with Openfiler

Configuring Openfiler storage and iSCSI targets

While it’s possible to simulate RAID arrays and other types of storage configurations with Openfiler, as this is all happening in a virtual environment I wish to limit the disk workload as much as possible so I’m keeping the configuration quite simple by just setting up some basic iSCSI targets.

2013-02-25 10_11_14-Openfiler - Settings

For shared storage to be effective there needs to be some storage to share. When I installed Openfiler I used all of the virtual hard drive assigned to the VM for the operating system installation, leaving none that could be shared between the systems that will eventually connect to the Openfiler server.

While all of the storage needed by the system (i.e. the storage to be shared as well as that needed by the OS) can be configured on one virtual drive, I prefer to keep the OS and the shared storage on two separate drives, so it is necessary to add a second, larger virtual hard drive to the VM. The process for adding the second drive is the same as it was for the original drive except this time the drive is set to 100GB in size instead of 8GB.

2013-02-25 10_17_36-Openfiler Storage Control CenterThe main interface for Openfiler is the Web Administration tool presented on port 446 of the server. The default username is openfiler and the default password is password (so this needs to be changed pretty quickly after installation!)

2013-02-25 10_18_02-Status _ System Status

The Openfiler main page presents configuration details and system status information.

2013-02-25 10_43_36-Services Section

Openfiler supports a variety of technologies and the services that provides the functionality of the system are controlled from the services page. In order to facilitate iSCSI enable and start the iSCSI Target service.

2013-02-25 10_21_26-System _ Network SetupThe individual iSCSI targets are configured to be accessible only by certain computers or networks identified by specific IP addresses or ranges of IP addresses. In order to grant access to those specific IP addresses it is first necessary to configure the addresses in Openfiler. Navigate to System > Network Setup and under Network Access Configuration add the IP addresses you wish to grant access to.

2013-02-25 10_21_50-System _ Network Setup

Enter a name for each of the addresses or ranges you wish to configure. I created a Network Access Configuration setting for each of the hosts that are to connect to Openfiler.

2013-02-25 10_23_09-Volumes _ Volume Groups

The management of the storage presented by Openfiler is handled under the Volumes tab. Access Volumes at this point displays the page above, as no configuration has been completed.

Click create new physical volumes to start the configuration.

2013-02-25 10_23_26-Volumes _ Block Devices

The Block Device Management page lists the physical drives available to Openfiler. In my configuration the /dev/sda drive is the 8GB virtual drive where Openfiler is installed. /dev/sdb is the new, empty 100GB drive allocated for shared storage.

Click on the link for the 100GB drive to create a partition on the device.

2013-02-25 10_23_45-Volumes _ Block Devices _ Edit Partitions

Create a new partition on the drive. For simplicity I created a single partition that used the entire drive.

2013-02-25 10_24_46-Volumes _ Block Devices _ Edit Partitions

With a physical volume now ready to be used, navigate to Volumes > Volume Groups to create a new volume group.

2013-02-25 10_25_19-Volumes _ Volume Groups

Unlike on the previous visit to this page the create new volume group section now contains the elements needed to configure a volume group.

2013-02-25 10_25_37-Volumes _ Volume Groups

Once the volume group is ready navigate to Volumes > Add Volume.

2013-02-25 10_26_01-Volumes _ Add Volume

On the Add Volume page you can add individual volumes to a volume group.

2013-02-25 10_27_10-Volumes _ Add Volume

I created three volumes, each approximately a third of the size of the underlying drive (in this case 100GB). I labelled each volume with a name that corresponded to the host that was going to access that particular volume.

2013-02-25 10_28_27-Volumes _ Manage Volumes

The Manage Volumes page allows you to review and edit the settings of each of the volumes configured within a volume group.

Click the link to iSCSI Targets to begin the actual iSCSI configuration.

2013-02-25 10_45_02-Volumes _ iSCSI Targets

Under Add new iSCSI Target you can enter a name for the new target you are creating (or accept the default as long as you make a note of what that target name relates to for future reference!).

2013-02-25 10_56_27-Volumes _ iSCSI Targets

Under the LUN Mapping tab you assign the storage volume you wish to use with this iSCSI target. More details on LUNs can be found here.

2013-02-25 10_54_15-Volumes _ iSCSI Targets

Finally, on the Network ACL page you grant access to the iSCSI target to a network host configured previously by selecting Allow from the drop-down list next to the grantee host name.

As my system is purely for testing purposes I have not configured any security which would be essential for any system where real data was being stored.

Next –>

Advertisements
SAN Simulation with Openfiler

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s