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

delphys
Oyster-Slurper
Posts: 27
Joined: Sun Jun 30, 2013 1:49 am

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

Unread post by delphys » Sun Jun 15, 2014 4:20 am

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

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

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

Unread post by machinebacon » Sun Jun 15, 2014 4:43 am

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
..gnutella..

delphys
Oyster-Slurper
Posts: 27
Joined: Sun Jun 30, 2013 1:49 am

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

Unread post by delphys » Sun Jun 15, 2014 1:59 pm

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

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

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

Unread post by machinebacon » Sun Jun 15, 2014 2:13 pm

^ 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)
..gnutella..

delphys
Oyster-Slurper
Posts: 27
Joined: Sun Jun 30, 2013 1:49 am

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

Unread post by delphys » Sun Jun 15, 2014 6:12 pm

Yes found the module at:

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

Thnx Bacon

Post Reply