User Manual

Rev 2.1-1.0.6
Mellanox Technologies
233
Step 10. Close initrd.
At this stage, the modified initrd (including the Ethernet driver) is ready and located at
/tmp/new_init_ib.img.gz. Copy it to the original initrd location and rename it properly.
A.9 iSCSI Boot
Mellanox FlexBoot enables an iSCSI-boot of an OS located on a remote iSCSI Target. It has a
built-in iSCSI Initiator which can connect to the remote iSCSI Target and load from it the kernel
and
initrd (Linux). There are two instances of connection to the remote iSCSI Target: the first
is for getting the kernel and
initrd via FlexBoot, and the second is for loading other parts of the
OS via
initrd.
If you choose to continue loading the OS (after boot) through the HCA device driver, please ver-
ify that the initrd image includes the HCA driver as described in Section A.8.
A.9.1 Configuring an iSCSI Target in Linux Environment
Prerequisites
Step 1. Make sure that an iSCSI Target is installed on your server side.
You can download and install an iSCSI Target from the following location:
http://sourceforge.net/projects/iscsitarget/files/iscsitarget/
Step 2. Dedicate a partition on your iSCSI Target on which you will later install the operating sys-
tem
Step 3. Configure your iSCSI Target to work with the partition you dedicated. If, for example, you
choose partition /dev/sda5, then edit the iSCSI Target configuration file
/etc/ietd.conf
to include the following line under the iSCSI Target iqn line:
Example of an iSCSI Target iqn line:
Step 4. Start your iSCSI Target.
Example:
Configuring the DHCP Server to Boot From an iSCSI Target
Configure DHCP as described in Section 4.3.3.1, “IPoIB Configuration Based on DHCP”.
Edit your DHCP configuration file (
/etc/dhcpd.conf) and add the following lines for the
machine(s) you wish to boot from the iSCSI target:
The following is an example for configuring an IB/ETH device to boot from an iSCSI target:
host1$ cd /tmp/initrd_en
host1$ find ./ | cpio -H newc -o > /tmp/new_initrd_en.img
host1$ gzip /tmp/new_init_en.img
Lun 0 Path=/dev/sda5,Type=fileio
Target iqn.2007-08.7.3.4.10:iscsiboot
host1# /etc/init.d/iscsitarget start
Filename "";
option root-path "iscsi:iscsi_target_ip::::iscsi_target_iqn";
host host1{
filename "";