sure enough, qla2xxx was loaded;
[EMAIL PROTECTED] host0]# lsmod
Module Size Used by
nfsd 252584 13
exportfs 13312 1 nfsd
lockd 70960 2 nfsd
nfs_acl 11520 1 nfsd
job 37036 0
ipv6 312552 24
sunrpc 166536 9 nfsd,lockd,nfs_acl
ib_iser 37880 0
rdma_cm 33012 1 ib_iser
ib_cm 36520 1 rdma_cm
iw_cm 17032 1 rdma_cm
ib_sa 27232 2 rdma_cm,ib_cm
ib_mad 41892 2 ib_cm,ib_sa
ib_core 56192 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr 14728 1 rdma_cm
iscsi_tcp 28672 0
libiscsi 28544 2 ib_iser,iscsi_tcp
scsi_transport_iscsi 34704 4 ib_iser,iscsi_tcp,libiscsi
joydev 17920 0
binfmt_misc 18316 1
dm_multipath 24464 0
dm_snapshot 22856 0
video 25488 0
sbs 26000 0
button 15520 0
dock 17128 0
battery 17800 0
ac 13064 0
uhci_hcd 30880 0
ehci_hcd 39052 0
e752x_edac 18820 0
edac_mc 32352 1 e752x_edac
e1000 222016 0
floppy 67560 0
qla2xxxt 140328 0
sg 40368 0
scsi_wait_scan 9600 0
ext3 125712 2
jbd 64368 1 ext3
dm_mod 58480 4 dm_multipath,dm_snapshot
ata_piix 21636 0
libata 115608 1 ata_piix
megaraid_mbox 37904 4
megaraid_mm 17720 1 megaraid_mbox
aic7xxx 128952 0
scsi_transport_spi 32128 1 aic7xxx
qla2xxx 156268 0
scsi_transport_fc 44292 2 qla2xxxt,qla2xxx
sd_mod 33280 5
scsi_mod 146232 14
ib_iser,iscsi_tcp,libiscsi,scsi_transport_iscsi,qla2xxxt,sg,scsi_wait_scan,
libata,megaraid_mbox,aic7xxx,scsi_transport_spi,qla2xxx,scsi_transport_fc,sd_mod
[EMAIL PROTECTED] host0]# rmmod qla2xxx
[EMAIL PROTECTED] host0]# modprobe qla2xxxt
[EMAIL PROTECTED] host0]# lsmod
[...]
aic7xxx 128952 0
scsi_transport_spi 32128 1 aic7xxx
scsi_transport_fc 44292 1 qla2xxxt
sd_mod 33280 5
scsi_mod 146232 13
ib_iser,iscsi_tcp,libiscsi,scsi_transport_iscsi,qla2xxxt,sg,scsi_wait_scan,libata,megaraid_mbox,aic7xxx,scsi_transport_spi,scsi_transport_fc,sd_mod
[EMAIL PROTECTED] host0]#
when i checked /sys/class/scsi_host, host0 is gone unlike with qla2xxx
loaded.
if i rmmod qla2xxxt and modprobe -v isp_mod it loads and generates hostX
where X is last used host in /sys/class/scsi_host. rmmod isp_mod; modprobe
isp_mod again and now host X+1, etc:
[EMAIL PROTECTED] scsi_host]# pwd
/sys/class/scsi_host
[EMAIL PROTECTED] scsi_host]# ls
host1 host2
[EMAIL PROTECTED] scsi_host]# modprobe -v isp_mod
insmod
/lib/modules/2.6.22.9-0.1.4.smp.gcc3.4.x86_64/kernel/drivers/scsi/qla_isp/isp_mod.ko
[EMAIL PROTECTED] scsi_host]# ls
host1 host2 host7
[EMAIL PROTECTED] scsi_host]# rmmod isp_mod
[EMAIL PROTECTED] scsi_host]# modprobe -v --first-time isp_mod
insmod
/lib/modules/2.6.22.9-0.1.4.smp.gcc3.4.x86_64/kernel/drivers/scsi/qla_isp/isp_mod.ko
[EMAIL PROTECTED] scsi_host]# ls
host1 host2 host8
[EMAIL PROTECTED] scsi_host]# cat ./host8/proc_name
isp
[EMAIL PROTECTED] scsi_host]#
i don't know if any of this is useful at all :-/
-=dave
----- Original Message -----
From: "Rafiu Fakunle" <[EMAIL PROTECTED]>
To: "Dave Johnson" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Tuesday, October 09, 2007 5:39 PM
Subject: Re: [OF-users] New kernel available for testing
Dave Johnson wrote:
nada:
[EMAIL PROTECTED] host0]# modprobe qla2xxxt
[EMAIL PROTECTED] host0]# ls -l
show "lsmod" output pls.
If you've got qla2xxx loaded, you'll need to "rmmod qla2xxx" then
"modprobe qla2xxxt"
R.
total 0
-rw-r--r-- 1 root root 4096 Oct 9 16:56 beacon
-r--r--r-- 1 root root 4096 Oct 9 16:56 can_queue
-r--r--r-- 1 root root 4096 Oct 9 16:56 cmd_per_lun
lrwxrwxrwx 1 root root 0 Oct 9 16:56 device ->
./../../devices/pci0000:00/0000:00:02.0/0000:01:00.2/0000:03:0b.0/host0
-r--r--r-- 1 root root 4096 Oct 9 16:56 driver_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 fw_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 host_busy
-r--r--r-- 1 root root 4096 Oct 9 16:56 isp_id
-r--r--r-- 1 root root 4096 Oct 9 16:56 isp_name
-r--r--r-- 1 root root 4096 Oct 9 16:56 model_desc
-r--r--r-- 1 root root 4096 Oct 9 16:56 model_name
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_bios_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_efi_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_fcode_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_fw_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 pci_info
-r--r--r-- 1 root root 4096 Oct 9 16:56 proc_name
--w------- 1 root root 4096 Oct 9 16:56 scan
-r--r--r-- 1 root root 4096 Oct 9 16:56 serial_num
-r--r--r-- 1 root root 4096 Oct 9 16:56 sg_tablesize
-rw-r--r-- 1 root root 4096 Oct 9 16:56 state
lrwxrwxrwx 1 root root 0 Oct 9 16:56 subsystem ->
./../../class/scsi_host
--w------- 1 root root 4096 Oct 9 16:56 uevent
-r--r--r-- 1 root root 4096 Oct 9 16:56 unchecked_isa_dma
-r--r--r-- 1 root root 4096 Oct 9 16:56 unique_id
-rw-r--r-- 1 root root 4096 Oct 9 16:56 zio
-rw-r--r-- 1 root root 4096 Oct 9 16:56 zio_timer
[EMAIL PROTECTED] host0]#
-=dave
----- Original Message ----- From: "Rafiu Fakunle" <[EMAIL PROTECTED]>
To: "Dave Johnson" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Tuesday, October 09, 2007 5:29 PM
Subject: Re: [OF-users] New kernel available for testing
Dave Johnson wrote:
Trying to enable scsi target mode on a QLA2460 with OF 2.3a with the
new testing kernel. I am not explicitly familiar with the driver
loading procedure but I have modified /etc/modprobe.conf from:
[EMAIL PROTECTED] etc]# cat modprobe.conf
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter qla2xxx
alias scsi_hostadapter1 aic7xxx
alias scsi_hostadapter2 megaraid_mbox
alias scsi_hostadapter3 ata_piix
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
to:
[EMAIL PROTECTED] etc]# cat modprobe.conf
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter qla2xxxt
alias scsi_hostadapter1 aic7xxx
alias scsi_hostadapter2 megaraid_mbox
alias scsi_hostadapter3 ata_piix
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
as well as:
[EMAIL PROTECTED] etc]# cat modprobe.conf
alias eth0 e1000
alias eth1 e1000
alias scsi_hostadapter isp_mod
alias scsi_hostadapter1 aic7xxx
alias scsi_hostadapter2 megaraid_mbox
alias scsi_hostadapter3 ata_piix
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
and target mode doesn't seem to be a possiblity:
[EMAIL PROTECTED] host0]# pwd
/sys/class/scsi_host/host0
[EMAIL PROTECTED] host0]# ls -l
total 0
-rw-r--r-- 1 root root 4096 Oct 9 16:56 beacon
-r--r--r-- 1 root root 4096 Oct 9 16:56 can_queue
-r--r--r-- 1 root root 4096 Oct 9 16:56 cmd_per_lun
lrwxrwxrwx 1 root root 0 Oct 9 16:56 device ->
./../../devices/pci0000:00/
0000:00:02.0/0000:01:00.2/0000:03:0b.0/host0
-r--r--r-- 1 root root 4096 Oct 9 16:56 driver_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 fw_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 host_busy
-r--r--r-- 1 root root 4096 Oct 9 16:56 isp_id
-r--r--r-- 1 root root 4096 Oct 9 16:56 isp_name
-r--r--r-- 1 root root 4096 Oct 9 16:56 model_desc
-r--r--r-- 1 root root 4096 Oct 9 16:56 model_name
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_bios_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_efi_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_fcode_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 optrom_fw_version
-r--r--r-- 1 root root 4096 Oct 9 16:56 pci_info
-r--r--r-- 1 root root 4096 Oct 9 16:56 proc_name
--w------- 1 root root 4096 Oct 9 16:56 scan
-r--r--r-- 1 root root 4096 Oct 9 16:56 serial_num
-r--r--r-- 1 root root 4096 Oct 9 16:56 sg_tablesize
-rw-r--r-- 1 root root 4096 Oct 9 16:56 state
lrwxrwxrwx 1 root root 0 Oct 9 16:56 subsystem ->
./../../class/scsi_host
--w------- 1 root root 4096 Oct 9 16:56 uevent
-r--r--r-- 1 root root 4096 Oct 9 16:56 unchecked_isa_dma
-r--r--r-- 1 root root 4096 Oct 9 16:56 unique_id
-rw-r--r-- 1 root root 4096 Oct 9 16:56 zio
-rw-r--r-- 1 root root 4096 Oct 9 16:56 zio_timer
[EMAIL PROTECTED] host0]# cat model_name
QLA2460
[EMAIL PROTECTED] host0]# cat driver_version
8.01.07-k7
[EMAIL PROTECTED] host0]# cat state
Link Up - F_Port
[EMAIL PROTECTED] host0]# cat isp_name
ISP2422
[EMAIL PROTECTED] host0]# uname -a
Linux filer3.xxx.xxx 2.6.22.9-0.1.4.smp.gcc3.4.x86_64 #1 SMP Wed Oct 3
19:58:13 BST 2007 x86_64 x86_64 x86_64 GNU/Linux
[EMAIL PROTECTED] host0]#
I'm sure I'm just ignorant of the correct procedure but would
appreciate any pointers here.
What happens when you "modprobe qla2xxxt" ?
R.
Thanks!
-=dave
----- Original Message ----- From: "Rafiu Fakunle"
<[EMAIL PROTECTED]>
To: <[email protected]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2007 6:45 PM
Subject: [OF-users] New kernel available for testing
Hi,
We're readying a new OF release and have worked up an updated kernel
that integrates all the external modules that were once shipped
separately.
************************************************************************
PROCEED WITH CAUTION. ONLY INSTALL IF YOU ARE INTERESTED
IN ASSISTING WITH TESTING
************************************************************************
There are also some nifty new integrations such as FC target support
and something from SGI called Comprehensive System Accounting (CSA).
You can learn more about that here:
http://oss.sgi.com/projects/csa/
CSA might not mean much to you if you're running Openfiler in a small
network, but for larger setups, it allows you to bill individual
users/groups based on their resource usage profile. If you want to
play around with CSA you'll also need to install the userland
components:
1) conary update [EMAIL PROTECTED]:1-contrib
2) conary update [EMAIL PROTECTED]:1-contrib
3) conary update [EMAIL PROTECTED]:1-contrib
Also integrated is SCST and iSCSI-SCST which we might use to replace
IET in the future. Details for both are here:
http://scst.sourceforge.net/
If you wish to play around with FC target support (you'll need an
Qlogic FC controller):
1) conary update [EMAIL PROTECTED]:1-contrib --no-deps
2) service scst start
3) then run scstadmin for instructions
If you have an Qlogic FC controller, please go ahead and use the
isp_mod kernel module (in place of qla2xxx). We're especially
interested in how that performs under load.
caveat emptor: isp_mod seems to hang the system on some configs. So
you could try the alternative qla2xxxt module which is the standard
qla2xxx with target mode support patched in. I've renamed it to
qla2xxxt so that you can have both the original qla2xxx and the
integrated target support qla2xxxt linked into the kernel
concurrently.
To enable FC target support for a qlogic HBA:
1) Edit /etc/modprobe.conf
2) map qla2xxxt to your FC HBA (eg. alias scsi_hostadapter qla2xxxt)
3) echo "1" >/sys/class/scsi_host/host0/target_mode_enabled
Updating to the new kernel will also require an update to the iSCSI
target userland component:
1) conary update iscsi_trgt
Please provide feedback via this mailing list or the bug tracker:
https://project.openfiler.com/tracker/newticket
So without further ado:
conary update kernel:[EMAIL PROTECTED]:kernel-test
R.
_______________________________________________
Openfiler-users mailing list
[email protected]
https://lists.openfiler.com/mailman/listinfo/openfiler-users
_______________________________________________
Openfiler-users mailing list
[email protected]
https://lists.openfiler.com/mailman/listinfo/openfiler-users