Comment 4 for bug 1238169

Revision history for this message
Andy Igoshin (andy-igoshin) wrote :

ok, let's name it with correct words.

irrespective of hardware ubuntu server 13.10 as of 14.10.2013 does not support hardware accelerated iSCSI. there is simply no corresponding functionality. ubuntu supposes that iSCSI should work exclusively over NIC.

PREREQ

iSCSI initiator for the disk where OS is going to be installed to should be configured in Emulex CNA BIOS.

COMPLETE WORKAROUND

1. during installation when installer fails to detect our disks we need to go to installer shell and run:

# ln -s /sbin/iscsid /usr/sbin
# iscsiadm -m fw -l

after these commands iSCSU LUN should be connected. iscsiadm's output should confirm it. the result is available in dmesg.

now we leave installer shell and go back to the installer.

2. in the installer we select Detect Disc, disk is detected. installation now may be proceeded.

3. installation is finished. installer asks us to reboot. we should select other option and go to installer shell again. in the shell we should run:

# chroot /target
# export HOME=/root
# cd

if we wish to boot the system we installed we need to change files
/usr/share/initramfs-tools/hooks/iscsi
/usr/share/initramfs-tools/scripts/local-top/iscsi
(corresponding patches are attached: iscsi-hooks.diff, iscsi-scripts.diff)

after that initrd should be updated (see Bug #1240502) :

# INITRAMFS_EVENT_DRIVEN=1 update-initramfs -u

now we leave installer shell and go back to the installer. we finish the installation.

4. when installed OS is loaded we should forbid updates of the package open-iscsi if we wish not to lose our changes and finally get unbootable OS. if it were changes in mountall file of the package (Bug #1240502) we also should forbid its updates. or *always* run INITRAMFS_EVENT_DRIVEN=1 update-initramfs -u manually when initrd was updated.