The 'rc' script is supposed to check for a loaded kernel module and not attempt to re-load it..
FATAL: Error inserting mhvtl (/lib/modules/2.6.18-128.el5/kernel/drivers/scsi/mhvtl.ko): Bad address
The .el5 indicates a RedHat 5.<something> box..
Care to elaborate on how to reproduce the error ?
The error message you pasted is coming from the rc script..
I'd like to fix any startup script to be smarter.
If I get a chance, I'll run up a RH5 box and see if I can reproduce..
Quick overview:
- "lsscsi -g" and identify your '/dev/sgXX' to export via iSCSI
- Compile & install SCSI Target Framework (
http://stgt.sourceforge.net/) - Don't use the OS supplied one, it will be way out of date..
- Create / edit /etc/tgt/targets.conf to look something like below..
(you can create one target and add all LUNs to that or multiple targets with one LUN each - or a combo of both.)
==================
<target iqn.2008-09.com.mhvtl75.nbusyd.com.au:mhvtl.target2>
device-type pt
bs-type sg
backing-store /dev/sg3
backing-store /dev/sg4
backing-store /dev/sg5
backing-store /dev/sg6
allow-in-use yes
</target>
==================
Use 'tgtadm --op show --mode target' to display the scsi target configuration.
Regards from Australia
Mark Harvey