LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Rescanning LUNs on RHEL 4.0 server without rebooting (https://www.linuxquestions.org/questions/red-hat-31/rescanning-luns-on-rhel-4-0-server-without-rebooting-555561/)

Qwerty9119 05-21-2007 10:16 AM

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.

Thanks,

Q

Lenard 05-21-2007 11:03 AM

I found this a few years ago, sorry I do not remember exactly where from;

Working with USB / SCSI devices;

/proc/scsi
/proc/scsi/scsi
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

HTH

Qwerty9119 05-22-2007 02:56 PM

Thanks Lenard!

Lenard 05-22-2007 03:02 PM

Your Welcome Qwerty9119


All times are GMT -5. The time now is 01:30 AM.