LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-06-2008, 04:50 PM   #1
myint45
LQ Newbie
 
Registered: Aug 2006
Posts: 10

Rep: Reputation: 0
Thumbs up 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.
 
Old 03-06-2008, 07:22 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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"
 
Old 03-06-2008, 07:48 PM   #3
myint45
LQ Newbie
 
Registered: Aug 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Smile 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.
 
Old 03-07-2008, 08:23 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by myint45 View Post
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.
 
  


Reply

Tags
hba, lun, san


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
Cant see NEW LUN on RedHat Box bboy-mass Linux - Hardware 5 04-29-2009 12:13 PM
LUN Device Mapping: 2 devices map to same lun DantePasquale Linux - Distributions 0 09-24-2007 03:59 PM
LUN Device not showing without reboot on Redhat mickg007 Linux - Enterprise 7 06-14-2007 11:04 AM
Hot-add SAN LUN dcostakos Linux - Hardware 5 03-11-2005 02:16 PM
HBA+DLT on a RedHat AS Box rhernando Linux - Hardware 1 01-28-2004 06:49 AM


All times are GMT -5. The time now is 08:50 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration