LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-22-2005, 03:45 AM   #1
hodgsonjk
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
scanning for new scsi devices


I have a Red Hat As 3 machine and have installed a qlogic fibre card 2340 which works fine. The modules loads on boot and I can scan the fibre card for scsi devices. The cards sees an 18gb scsi device which I have presented to it via the san. But my questions is how do I get Linux to see the disk without rebooting the machine. If the machine is rebooted it will pick up the disk and I will be able to fdisk it etc, but if I don't want to have to reboot the machine is there anyway I can get linux to see this scsi device?
 
Old 04-22-2005, 03:39 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
New devices can be added using echo "scsi add-single-device <h> <b> <t> <l>" > /proc/scsi/scsi where the variables are host, bus (channel), target (scsi id) and lun. The success (or otherwise) of this command can be determined by sending a subsequent cat /proc/scsi/scsi command.

..from the scsi-howto (proc interface) at www.tldp.org - see it for more info.

i have a script "rescan-scsi-bus.sh" here on debian which uses the above method to recheck devices.

HTH ritch.
 
Old 05-13-2005, 07:01 PM   #3
hitchhikerjim
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
OK -- I got that script working...

but the further complilcation that I imagine the above user is having too is that I have a fiber device. Something maps the fiber devices to SCSI devices names... and rescan-scsi-bus.sh only maps things that have assigned SCSI IDs.

How do I get something to scan the fiber fabric and map any new devices on it to a new SCSI ID so that rescan-scsi-bus.sh will be able to find the new device?

(i'm on redhat E3 too)

jim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel not scanning ISA PNP devices Woodsman Slackware 5 11-23-2005 11:18 PM
Scanning new scsi hardware with RH AS3 consty Linux - Hardware 0 11-16-2005 04:21 PM
Re-Scanning a SCSI BUS Crazy Joe Davol Linux - Hardware 6 08-15-2004 01:18 PM
allow non root users add devices to /proc/scsi/scsi ? ewto Linux - Newbie 5 10-14-2003 12:36 PM
Mandrake 9.1 scanning for SCSI rufius Linux - Hardware 3 08-15-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration