Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 05-21-2007, 10:16 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 13

Rep: Reputation: 0
Rescanning LUNs on RHEL 4.0 server without rebooting

Hello All:

I'm running Red Hat Enterrise 4.0 AS, and it's connected to a XP1024 SAN array. I'm using Emulex FC2143 cards.

My question is, I already have SAN space presented to the server, and just got presented more. I need to rescan the LUNS to that the new space is recognized in /proc/partions.

I have HP-Fibreutils, hp-lpfc and hp-multipulse RPM's installed.

I have tried running probe-luns as part of the fibreutils collection, but that does not present them to the OS.

I'd ideally like to be able to present the luns to the server without a reboot, any suggestions would be much appreciated.


Old 05-21-2007, 11:03 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, sorry I do not remember exactly where from;

Working with USB / SCSI devices;

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

Old 05-22-2007, 02:56 PM   #3
LQ Newbie
Registered: Aug 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks Lenard!
Old 05-22-2007, 03:02 PM   #4
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
Your Welcome Qwerty9119


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
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 06:30 AM
Is CentOS RHEL or RHEL Server? mikes63737 Linux - Distributions 1 02-28-2006 04:35 PM
Rescanning for new devices. TheRealDeal Linux - Hardware 3 08-18-2004 05:28 PM
Advanced Server 2.1 max LUNs danrainman Red Hat 0 01-14-2004 11:57 AM
X-server rebooting Mr-D Linux - Newbie 13 08-17-2003 02:43 PM

All times are GMT -5. The time now is 12:54 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