Page 1 of 1

How to enable "Probe all LUNs on each SCSI device" in kernel

Posted: Sun Jun 15, 2014 4:20 am
by delphys
Hello;

Am thinking of getting a cheap 4-bay external raid box with one external interface.. Mediasonic HFR2-SU3S2FW

intending to use as JBOD only..

How do I know the option "Probe all LUNs on each SCSI device" is enabled in Kernel ..

If not, how can I enable it ??

Am runninng HornyHorse-amd64 ..

Thank you

Re: How to enable "Probe all LUNs on each SCSI device" in ke

Posted: Sun Jun 15, 2014 4:43 am
by machinebacon
Hello. Good question, because we can use this method to find other modules, too.

Code: Select all

ls /lib/modules/3.*/kernel/drivers/scsi/scsi_mod.k
This is the module, so it was actually gegerated when building the kernel. If it is loaded,

Code: Select all

lsmod|grep scsi_mod
can show you.

*If* it would not be enabled and built, you would have to compile a kernel by yourself (which is not hard, but takes some time to finish). http://www.linuxbbq.org/bbs/viewtopic.p ... nfig#p4533 has some good hints

Re: How to enable "Probe all LUNs on each SCSI device" in ke

Posted: Sun Jun 15, 2014 1:59 pm
by delphys
Thank you Bacon:

So when I ran the commands:

Code: Select all

[bbq@gilgamesh:~ ] sudo ls /lib/modules/3.*/kernel/drivers/scsi/scsi_mod.k
ls: cannot access /lib/modules/3.*/kernel/drivers/scsi/scsi_mod.k: No such file or directory
[bbq@gilgamesh:~ ] sudo lsmod|grep scsi_mod
scsi_mod              182938  7 scsi_transport_sas,usb_storage,libata,mptsas,sd_mod,sr_mod,mptscsih
[bbq@gilgamesh:~ ] sudo lsmod|grep -i scsi
scsi_transport_sas     33531  1 mptsas
mptscsih               26657  1 mptsas
mptbase                68946  2 mptsas,mptscsih
scsi_mod              182938  7 scsi_transport_sas,usb_storage,libata,mptsas,sd_mod,sr_mod,mptscsih
Not sure what I am looking at though..
Thnx again
Not sure

Re: How to enable "Probe all LUNs on each SCSI device" in ke

Posted: Sun Jun 15, 2014 2:13 pm
by machinebacon
^ The kernel module is loaded, you can see that scsi_mod has bound a few things. You can fap in joy :)

(Of course "find /lib/modules/*|grep scsi_mod" would be possible, too, to show that the .ko is actually existing)

Re: How to enable "Probe all LUNs on each SCSI device" in ke

Posted: Sun Jun 15, 2014 6:12 pm
by delphys
Yes found the module at:

/lib/modules/3.13-trunk-amd64/kernel/drivers/scsi/scsi_mod.ko

Thnx Bacon