====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sanboot:debian_etch_iscsi [2007/10/25 12:38] gervystar |
sanboot:debian_etch_iscsi [2009/04/27 13:00] (current) commander1024 the module is called "ib_iser" not "iscsi_iser" (Device Drivers -> infiniband support), checked against the hooks script where module ib_iser is modprobed |
||
---|---|---|---|
Line 38: | Line 38: | ||
apt-get install iproute | apt-get install iproute | ||
- | ==== Disable etworking scripts ==== | + | ==== Disable networking scripts ==== |
The file ''/etc/network/interfaces'' must contain only the information needed to setup the loopback adapter or some additional network cards not used in the iSCSI boot process. | The file ''/etc/network/interfaces'' must contain only the information needed to setup the loopback adapter or some additional network cards not used in the iSCSI boot process. | ||
+ | If you have only one interface (in example eth0), be sure to have a stanza like this in ''/etc/network/interfaces'' | ||
+ | |||
+ | <code> | ||
+ | auto eth0 | ||
+ | iface eth0 inet manual | ||
+ | </code> | ||
+ | |||
+ | So ifupdown will report the network card as "up", otherwise some script will not work well (in exemple the nfs mount). | ||
==== Create the initramfs scripts ==== | ==== Create the initramfs scripts ==== | ||
Create two scripts shown below. These scripts have to be executable. | Create two scripts shown below. These scripts have to be executable. | ||
- | * ''/etc/initramfs-tools/hooks/iscsi_tcp'' will copy the ''iscsi_tcp'', ''iscsi_iser'' kernel modules followed by their dependancies, ''/usr/sbin/iscsistart'' and ''/usr/sbin/fwparam_ibft'' to the initial ramdisk. | + | * ''/etc/initramfs-tools/hooks/iscsi_tcp'' will copy the ''iscsi_tcp'', ''ib_iser'' kernel modules followed by their dependancies, ''/usr/sbin/iscsistart'' and ''/usr/sbin/fwparam_ibft'' to the initial ramdisk. |
* ''/etc/initramfs-tools/scripts/local-top/iscsi_tcp'' is copied to the ram disk and run at boot-time, just before the root filesystem is mounted. If the root device string looks like a SCSI device it brings up the appropriate Ethernet device, sets up the ip address passed through dhcp and connects the root file system on the iSCSI target. | * ''/etc/initramfs-tools/scripts/local-top/iscsi_tcp'' is copied to the ram disk and run at boot-time, just before the root filesystem is mounted. If the root device string looks like a SCSI device it brings up the appropriate Ethernet device, sets up the ip address passed through dhcp and connects the root file system on the iSCSI target. | ||
Line 140: | Line 148: | ||
echo "Connecting to iSCSI target $iSCSI_TARGET_NAME on $iSCSI_TARGET_IPADDR..." | echo "Connecting to iSCSI target $iSCSI_TARGET_NAME on $iSCSI_TARGET_IPADDR..." | ||
iscsistart -i $iSCSI_INITIATOR_NAME -t $iSCSI_TARGET_NAME -g 1 -a $iSCSI_TARGET_IPADDR | iscsistart -i $iSCSI_INITIATOR_NAME -t $iSCSI_TARGET_NAME -g 1 -a $iSCSI_TARGET_IPADDR | ||
+ | sleep 5 | ||
;; | ;; | ||
esac | esac |