Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 154624 - RHEL4 boot over iscsi HBA fails
Summary: RHEL4 boot over iscsi HBA fails
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Tom Coughlan
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2005-04-13 04:35 UTC by Bala
Modified: 2008-04-07 05:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-09-26 00:31:40 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Bala 2005-04-13 04:35:45 UTC
Description of problem:

If RHEL4 is installed over iSCSI on a remote iSCSI taregt using Adaptec ASA72xx 
card the system doesnât boot up, eventhough the installation goes through. We 
do the installation with "linux dd" command and input the ASA72xx driver.  

We found that the problem could be with Redhat Nash â a boot time shell which 
loads ASA72xx driver. 

It appears that Nash is not waiting till the ASA72xx driver reports all the 
LUNâs and goes ahead and try to mount the root on a non existing device. 

We had a local installation of a RHEL4 on a IDE driver. Using the local 
installation we booted the system and mounted the iscsi disk and modified the
init script on the iscsi installation. We added a few seconds of delay after 
the #insmod asa72xx command and regenerated the initrd. With the new initrd the 
system is able to boot over iscsi.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

Comment 1 Bala 2005-04-13 04:55:07 UTC
-----------modified init file to boot over asa72xx hba----------------------
-----------search for asa72xx below----------------------------------------- 
mount -t proc /proc /proc
echo Mounted /proc filesystem
echo Mounting sysfs
mount -t sysfs none /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs none /dev
mknod /dev/console c 5 1
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mkdir /dev/pts
mkdir /dev/shm
echo Starting udev
echo -n "/sbin/hotplug" > /proc/sys/kernel/hotplug
echo "Loading scsi_mod.ko module"
insmod /lib/scsi_mod.ko 
echo "Loading sd_mod.ko module"
insmod /lib/sd_mod.ko 
echo "Loading asa72xx.ko module"
insmod /lib/asa72xx.ko 
echo "Loading libata.ko module"
insmod /lib/libata.ko 
echo "Loading ata_piix.ko module"
insmod /lib/ata_piix.ko 
echo "Loading jbd.ko module"
insmod /lib/jbd.ko 
echo "Loading ext3.ko module"
insmod /lib/ext3.ko 

#Following sleep fix is required to boot using asa72xx hba
sleep 2

echo Creating root device
mkrootdev /dev/root
umount /sys
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
mount -t tmpfs --bind /dev /sysroot/dev
echo Switching to new root
switchroot /sysroot
umount /initrd/dev
-----------modified init file to boot over asa72xx hba----------------------

Comment 2 Tom Coughlan 2005-09-26 00:31:40 UTC
Red Hat does not ship or support the asa72xx driver. This is primarialy because
it has not been submitted upstream. 

From the problem description, it appears as though the "insmod asa72xx" returns
before all the LUNs have been configured. If we ever add support for this module
we will need to fix that, or make the necessary changes to the system init
script to accommodate this behavior. We are not planning to make a change to fix
this until then.

Note You need to log in before you can comment on or make changes to this bug.