Configure Linux Openfiler as an iSCSI Target Server for ESX Server
Login to Openfiler
using your web browser (Web Administration GUI)
Read the information displayed on the screen when openfiler first boots and
record the connection details (This will be used to gain access to the Web-based
Administration GUI).
Use a web browser on a remote computer to connect to your new openfiler server:
https://ip_address:446
Default login Details:
Username = openfiler
Password = password
Note: Please be aware
that your current openfiler server is configured for DHCP and a hostname of
localhost.localdomain. Change this network configuration at the end.
Create a physical
partition (extended) on the unpartitioned space, a physical volume, a volume
group, actual volumes in the group, enable the iSCSI target server, generate an
iSCSI Target and map the LUNs.
Firstly, create an Extended Partition
and Logical Physical Volume in the unallocated space:
Click on “Block Devices” in the right-hand menu (Volumes section)
Click on “/dev/sda” under “Edit Disk”
Create a partition in /dev/sda (Primary - Extended partition -> Click on
“Create”)
Create a partition in /dev/sda (Logical – Physical volume -> Click on “Create”)
Create a new Volume Group with Volume
Group Management:
Click on the “Volume Groups” link under the “Volumes section” in the right-hand
part of the screen.
Use this screen to select the physical volume you created previously and give
your new Volume Group a Name (e.g. esx03).
Click on the “Add volume group” button to complete the process.
Let’s Add actual Volumes NOW!
Click on the “Add Volume” link under the “Volumes section” in the right-hand
part of the screen.
You should have Create a volume in "esx03" in the lower portion of the screen.
You are now about to create three volumes (about 23 GB each). I will only
describe the creation of the first (the others are similar, not the same,
SIMILAR!).
Volume Name: vol1
Volume Description: volume 1 for esx03 (ARE YOU esx03?).
Required Space (MB): about 23000
Filesystem / volume type: iSCSI
Click on the “Create” button.
Click on the “Add Volume” link again and create another volume.
Volume Name: vol2
Volume Description: volume 2 for esx03 (ARE YOU ESX03?)
Required Space (MB): about 23000
Filesystem / volume type: iSCSI
Click on the “Create” button.
Click on the “Add Volume” link again and create another volume.
Volume Name: vol3
Volume Description: volume 3 for esx03 (ARE YOU ESX03?)
Required Space (MB): Whatever is left (about 23000)
Filesystem / volume type: iSCSI
Click on the “Create” button.
Enable the iSCSI target server service
and MAP the LUNs:
Click on Services in the main menu and enable the “iSCSI target server” service.
Click on “Volumes” in the main menu again and select “iSCSI Targets” in the
right menu.
You should now have a screen displaying “Add new iSCSI Target” and a “Target IQN”.
Even if you don’t like the “Target IQN” name click on the “Add” button anyway.
You should now be presented with a wealth of information related to the new
iSCSI target you just created.
Now click on the “LUN Mapping” from one of the Upper Menus and click on the
“Map” button for each of the LUNs.
You should have only “Unmap” buttons left.
Configure Static Networking Settings
for Openfiler:
Your new hostname will be allocated to you by your instructor (make sure you
change it to the name according to the convention).
Now edit the “Network Interface Configuration” according to the convention allocated to you by the instructor.
Select the
“Configure” link to create a static “Boot Protocol” from the dropdown menu.
Select the “Continue” button and change the IP Address to the one allocated to
you by the instructor.
Select the “Confirm” button for changes to take effect (In fact – this will
completely destabilise the connection as the old address will not exist). In
fact, click on your browser’s stop button to prevent your browser responding and
use the new IP Address to login again (Surely – this makes complete sense!).
Now update the “Network Configuration” settings by entering the “Primary DNS”
and “Gateway” IP addresses.
Don’t forget the
“Update” button.