LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-28-2006, 07:38 AM   #1
davema1
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.

Thanks,

Dave
 
Old 06-29-2006, 05:40 AM   #2
Lenard
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: 58
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
 
  


Reply



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

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:41 AM.

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