LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   add a new FC/HBA LUN to Redhat 4 (https://www.linuxquestions.org/questions/linux-server-73/add-a-new-fc-hba-lun-to-redhat-4-a-626237/)

myint45 03-06-2008 03:50 PM

add a new FC/HBA LUN to Redhat 4
 
guys,
I just got passed on to support a new Redhat 4 server. It has two Qlogic HBA cards attached to a FC switch and a fabric that has a LUN presented to the Linux Server. According to the department, which has no Linux admins, the driver for Qlogic is already installed.

Here are my questions:

How do I discover the LUN?
How do I mount the LUN?
How do I add the LUN to fstab?

Is there a command to discover the LUN, to add the LUN, etc..

HELP.

trickykid 03-06-2008 06:22 PM

Well first, make sure you actually have support for the QLogic card. It might be running as a module, usually starting with qlaXXXX, depending on the model you have installed.

Code:

# lsmod | grep qla
Not sure or don't see anything related, could have been built into the kernel. You could get the model maybe from:

Code:

# lspci
You can find out the LUN info by cat'ing the /proc/scsi/<qlogic-device>/<scsi-number>

Code:

cat /proc/scsi/qlaXXXX/<number>
Then hot adding a LUN should look something like this from the info you get from the previous cat output:

"echo "scsi add-single-device Controller Channel Target LUN" > /proc/scsi/scsi"

myint45 03-06-2008 06:48 PM

thanks.
 
I just downloaded the qlogic drivers and it seems to rebuild initrd and backup the file and modules.conf was also done for me..so, I guess it usually depends on the hardware being used. But, thanks for the reponse, I also found a .sh file does the scanning for new LUNs...great stuff.

trickykid 03-07-2008 07:23 AM

Quote:

Originally Posted by myint45 (Post 3080556)
I just downloaded the qlogic drivers and it seems to rebuild initrd and backup the file and modules.conf was also done for me..so, I guess it usually depends on the hardware being used. But, thanks for the reponse, I also found a .sh file does the scanning for new LUNs...great stuff.

Yeah, it's been awhile since a previous employer had actual SAN over fiber for me to toy with, the QLogic drivers do come with some handy scripts to install/discover, etc.


All times are GMT -5. The time now is 12:07 PM.