Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
sanboot:debian_etch_iscsi [2007/10/25 11:36] gervystar |
sanboot:debian_etch_iscsi [2007/11/06 08:25] gervystar |
||
---|---|---|---|
Line 10: | Line 10: | ||
This howto is based on the following assumptions: | This howto is based on the following assumptions: | ||
- | * a base debian >= etch with all the security updates | + | * a base debian etch with all the security updates |
* the system is installed on a single partition "/" on /dev/sda1 | * the system is installed on a single partition "/" on /dev/sda1 | ||
* there is an already done iscsi target on an iscsi server | * there is an already done iscsi target on an iscsi server | ||
Line 37: | Line 37: | ||
apt-get install iproute | apt-get install iproute | ||
+ | |||
+ | ==== 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. | ||
+ | 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 ==== | ||
Line 136: | 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 | ||
Line 145: | Line 158: | ||
This is called [[:pxechaining|PXE Chainloading]] | This is called [[:pxechaining|PXE Chainloading]] | ||
- | A separate stanza containing the 'right 'root-path'' option should be created for each host in ''/etc/dhcp3/dhcpd.conf'', like in the example. | + | A separate stanza containing the right ''root-path'' option should be created for each host in ''/etc/dhcp3/dhcpd.conf'', like in the example. |
+ | |||
+ | <code> | ||
+ | host iscsi-test { | ||
+ | hardware ethernet 00:0C:29:5C:53:C2; | ||
+ | fixed-address 192.168.23.195; | ||
+ | filename ""; | ||
+ | option root-path "iscsi:192.168.23.2::::iqn.2007-10.org.appliedgenomics:test.disk1"; | ||
+ | } | ||
+ | </code> |