Rescanning SCSI/SATA bus

Rescanning SCSI/SATA bus

Post by Jan Engelh » Thu, 06 Sep 2007 18:50:12


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
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescanning SCSI/SATA bus

Post by Martin K. » Thu, 06 Sep 2007 22:20:11

>>>>> "Jan" == Jan Engelhardt < XXXX@XXXXX.COM > 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

 
 
 

Rescanning SCSI/SATA bus

Post by noah » Thu, 06 Sep 2007 23:10:11

2007/9/5, Martin K. Petersen < XXXX@XXXXX.COM >:

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescanning SCSI/SATA bus

Post by Bjn Steinb » Thu, 06 Sep 2007 23:30:17


^^^^^
^^^

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

Bjn
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescanning SCSI/SATA bus

Post by Jan Engelh » Fri, 07 Sep 2007 00:20:08


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


Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescanning SCSI/SATA bus

Post by Bjn Steinb » Fri, 07 Sep 2007 00:20:12


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

Bjn
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/