mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Rescanning SCSI/SATA bus
@ 2007-09-05  9:41 Jan Engelhardt
  2007-09-05 13:15 ` Martin K. Petersen
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2007-09-05  9:41 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,


when trying to do a rescan on (1) sata_nv/2.6.18 (2) sym53c83xx/2.6.21, 
I get:

11:40 sun:~ # cd /sys/class/scsi_host/host0/
11:40 sun:../scsi_host/host0 # ls
can_queue    device     proc_name  sg_tablesize  subsystem  
unchecked_isa_dma
cmd_per_lun  host_busy  scan       state         uevent     unique_id
11:40 sun:../scsi_host/host0 # echo 1 >scan 
-bash: echo: write error: Invalid argument

What is the proper way to trigger a rescan, if it comes to be necessary?

thanks,
	Jan
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescanning SCSI/SATA bus
  2007-09-05  9:41 Rescanning SCSI/SATA bus Jan Engelhardt
@ 2007-09-05 13:15 ` Martin K. Petersen
  2007-09-05 14:04   ` noah
  0 siblings, 1 reply; 6+ messages in thread
From: Martin K. Petersen @ 2007-09-05 13:15 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

>>>>> "Jan" == Jan Engelhardt <jengelh@computergmbh.de> writes:

Jan> 11:40 sun:../scsi_host/host0 # echo 1 >scan 
Jan> -bash: echo: write error: Invalid argument

Jan> What is the proper way to trigger a rescan, if it comes to be
Jan> necessary?

echo "- - -" > scan

-- 
Martin K. Petersen	Oracle Linux Engineering


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescanning SCSI/SATA bus
  2007-09-05 13:15 ` Martin K. Petersen
@ 2007-09-05 14:04   ` noah
  2007-09-05 14:26     ` Björn Steinbrink
  0 siblings, 1 reply; 6+ messages in thread
From: noah @ 2007-09-05 14:04 UTC (permalink / raw)
  To: Martin K. Petersen; +Cc: Jan Engelhardt, Linux Kernel Mailing List

2007/9/5, Martin K. Petersen <martin.petersen@oracle.com>:
> >>>>> "Jan" == Jan Engelhardt <jengelh@computergmbh.de> writes:
>
> Jan> 11:40 sun:../scsi_host/host0 # echo 1 >scan
> Jan> -bash: echo: write error: Invalid argument
>
> Jan> What is the proper way to trigger a rescan, if it comes to be
> Jan> necessary?
>
> echo "- - -" > scan
>

This doesn't appear to work either (2.6.22, sata_nv).
# find /sys -name scan
/sys/module/scsi_mod/parameters/scan
/sys/class/scsi_host/host9/scan
/sys/class/scsi_host/host8/scan
/sys/class/scsi_host/host7/scan
/sys/class/scsi_host/host6/scan
/sys/class/scsi_host/host5/scan
/sys/class/scsi_host/host4/scan
/sys/class/scsi_host/host3/scan
/sys/class/scsi_host/host2/scan
/sys/class/scsi_host/host1/scan
/sys/class/scsi_host/host0/scan

# echo --- > /sys/class/scsi_host/host9/scan
-bash: echo: write error: Invalid argument

# echo --- > /sys/module/scsi_mod/parameters/scan
-bash: /sys/module/scsi_mod/parameters/scan: Permission denied

  -- noah

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescanning SCSI/SATA bus
  2007-09-05 14:04   ` noah
@ 2007-09-05 14:26     ` Björn Steinbrink
       [not found]       ` <d00698fb0709050745p820f0ednf6592b142d1e409c@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Björn Steinbrink @ 2007-09-05 14:26 UTC (permalink / raw)
  To: noah; +Cc: Martin K. Petersen, Jan Engelhardt, Linux Kernel Mailing List

On 2007.09.05 16:04:13 +0200, noah wrote:
> 2007/9/5, Martin K. Petersen <martin.petersen@oracle.com>:
> > >>>>> "Jan" == Jan Engelhardt <jengelh@computergmbh.de> writes:
> >
> > Jan> 11:40 sun:../scsi_host/host0 # echo 1 >scan
> > Jan> -bash: echo: write error: Invalid argument
> >
> > Jan> What is the proper way to trigger a rescan, if it comes to be
> > Jan> necessary?
> >
> > echo "- - -" > scan
          ^^^^^
> >
> # echo --- > /sys/class/scsi_host/host9/scan
         ^^^
> -bash: echo: write error: Invalid argument

Note the spaces between the dashes.
 - - -
not
 ---

Björn

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescanning SCSI/SATA bus
       [not found]       ` <d00698fb0709050745p820f0ednf6592b142d1e409c@mail.gmail.com>
@ 2007-09-05 15:15         ` Björn Steinbrink
  2007-09-05 15:17           ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Björn Steinbrink @ 2007-09-05 15:15 UTC (permalink / raw)
  To: noah; +Cc: Linux Kernel Mailing List

On 2007.09.05 16:45:29 +0200, noah wrote:
> 2007/9/5, Björn Steinbrink <B.Steinbrink@gmx.de>:
> > On 2007.09.05 16:04:13 +0200, noah wrote:
> > > 2007/9/5, Martin K. Petersen <martin.petersen@oracle.com>:
> > > > >>>>> "Jan" == Jan Engelhardt <jengelh@computergmbh.de> writes:
> > > >
> > > > Jan> 11:40 sun:../scsi_host/host0 # echo 1 >scan
> > > > Jan> -bash: echo: write error: Invalid argument
> > > >
> > > > Jan> What is the proper way to trigger a rescan, if it comes to be
> > > > Jan> necessary?
> > > >
> > > > echo "- - -" > scan
> >           ^^^^^
> > > >
> > > # echo --- > /sys/class/scsi_host/host9/scan
> >          ^^^
> > > -bash: echo: write error: Invalid argument
> >
> > Note the spaces between the dashes.
> 
> Thanks. Unfortunately it produced the same error.
> Is rescanning even supported with the sata_nv driver?

Works just fine here:
root@atjola:/sys/class/scsi_host/host0# echo - - - > scan 
root@atjola:/sys/class/scsi_host/host0# cat proc_name 
sata_nv

Björn

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Rescanning SCSI/SATA bus
  2007-09-05 15:15         ` Björn Steinbrink
@ 2007-09-05 15:17           ` Jan Engelhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Engelhardt @ 2007-09-05 15:17 UTC (permalink / raw)
  To: Björn Steinbrink; +Cc: noah, Linux Kernel Mailing List


On Sep 5 2007 17:15, Björn Steinbrink wrote:
>> > > > Jan> 11:40 sun:../scsi_host/host0 # echo 1 >scan
>> > > > Jan> -bash: echo: write error: Invalid argument
>> > > >
>> > > > echo "- - -" > scan
>> >
>> > Note the spaces between the dashes.
>> 
>> Thanks. Unfortunately it produced the same error.
>> Is rescanning even supported with the sata_nv driver?
>
>Works just fine here:
>root@atjola:/sys/class/scsi_host/host0# echo - - - > scan 
>root@atjola:/sys/class/scsi_host/host0# cat proc_name 
>sata_nv

FWIW, silently does nothing for sym53c8xx. For sata_nv, prints
something in dmesg.


	Jan
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-09-05 15:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-05  9:41 Rescanning SCSI/SATA bus Jan Engelhardt
2007-09-05 13:15 ` Martin K. Petersen
2007-09-05 14:04   ` noah
2007-09-05 14:26     ` Björn Steinbrink
     [not found]       ` <d00698fb0709050745p820f0ednf6592b142d1e409c@mail.gmail.com>
2007-09-05 15:15         ` Björn Steinbrink
2007-09-05 15:17           ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®