View the Most Wanted LQ Wiki articles.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 06-28-2006, 08:38 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
How do I re-scan the SCSI bus in Red Hat AS 3.0

I am look for something like a devfsadm in Solaris, ioscan in HPUX or cfgmgr in AIX. I want to be able to pick up, make availabe, external storage connected via a Emulex HBA in a SAN. I do not want to reboot the box.


Old 06-29-2006, 06:40 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
I found this a few years ago, cannot remember from where(from the IBM Linux site I think), but this should help;

One of the most useful things to learn as a system administrator is how to add more disk space if you have hot-swap drives available to you, without rebooting the system. Without using /proc, you could insert your drive, but you would then have to reboot in order to get the system to recognize the new disk. Here, you can get the system to recognize the new drive with the following command:

echo "scsi add-single-device w x y z" > /proc/scsi/scsi

For this command to work properly, you must get the parameter values w, x, y, and z correct, as follows:

* w is the host adapter ID, where the first adapter is zero (0)
* x is the SCSI channel on the host adaptor, where the first channel is zero (0)
* y is the SCSI ID of the device
* z is the LUN number, where the first LUN is zero (0)

Once your disk has been added to the system, you can mount any previously formatted filesystems or you can start formatting it, and so on. If you are not sure about what device the disk will be, or you want to check any pre-existing partitions, for example, you can use a command such as fdisk -l, which will report this information back to you.

Conversely, the command to remove a device from your system without a reboot would be:

echo "scsi remove-single-device w x y z" > /proc/scsi/scsi


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
How do I scan my pci bus? Thaidog Linux - Newbie 4 08-31-2004 01:11 PM
red hat 7 doesn't like my SCSI controller hakim Red Hat 3 05-27-2004 04:12 AM
Linux red hat 7 doesn't like my SCSI! hakim Linux - Hardware 0 05-22-2004 05:10 AM
Scsi bus re-scan tmoorman Linux - Hardware 2 01-07-2004 11:33 AM
Red Hat 9 install on scsi hookooekoo Linux - Newbie 1 12-26-2003 04:13 AM

All times are GMT -5. The time now is 11:58 AM.

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