LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-20-2004, 07:10 PM   #1
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
Hot-add SAN LUN


I have a Dell 6650 running RedHat AS 2.1 kernel 2.4.9-e49 enterprise with dual QLogic 2314 cards attached in failover mode. I recently had our storage guy add a new LUN.

I had hoped to add this lun by executing this:
Code:
echo "scsi add-single-device 2 0 0 3" > /proc/scsi/scsi
But sadly, while QLogic SANSurfer can now see the LUN, I cannot run fdisk against it, or make a file system on it.

Is there a way to make this LUN visible to the OS without rebooting or unmounting all my other SAN partitions?

Thanks much.
 
Old 10-21-2004, 10:48 AM   #2
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Original Poster
Rep: Reputation: 15
Nevermind

Nevermind I figured this out by googling.

I had to run this command first for each QLogic adapter if anyone is interested:

Code:
echo "scsi-qlascan" > /proc/scsi/qla2300/<ADAPTER_ID>
 
Old 03-10-2005, 08:33 AM   #3
mousten
LQ Newbie
 
Registered: Mar 2005
Location: Denmark
Posts: 2

Rep: Reputation: 0
stupid queston ...but

What is the ADAPTER_ID ??? where to get it ?

Thanks in advance
 
Old 03-10-2005, 11:10 AM   #4
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Original Poster
Rep: Reputation: 15
The adapter ID is automagically assigned by the kernel. In the directory /proc/scsi/qla2300, there will be 1 or more files named "0", "1", "2" and so on. Each one corresponds to detailed kernel information about your QLogic cards. There is 1 file for each card installed on your system. If you cat the file, you can see detailed information about the cards including firmware and driver version.
 
Old 03-11-2005, 03:18 AM   #5
mousten
LQ Newbie
 
Registered: Mar 2005
Location: Denmark
Posts: 2

Rep: Reputation: 0
Hi again,

mmmmm I am trying to figure out how this works.
The case is that I have Emulex 9200 cards in my proliant servers.... and only have the directory /proc/scsi/lpfc/ ... and in there files 0 and 1.
A cat of the 0 file looks like:
-----
servername:/proc/scsi/lpfc# cat 0
Emulex LightPulse FC SCSI 7.0.3
Emulex LightPulse LP9002 2 Gigabit PCI Fibre Channel Adapter on PCI bus 06 device 08 irq 5
SerialNum: MS34076343
Firmware Version: 3.92A2 (C2D3.92A2)
Hdw: 2002606d
VendorId: 0xf90010df
Portname: 10:00:00:00:c9:38:1c:2d Nodename: 20:00:00:00:c9:38:1c:2d

Link Up - Ready:
PortID 0x160f00
Fabric
Current speed 2G
lpfc0t00 DID 1b0b00 WWPN 50:00:60:e8:02:c5:91:00 WWNN 50:00:60:e8:02:c5:91:00
lpfc0t01 DID 111d00 WWPN 50:00:60:e8:02:c5:51:04 WWNN 50:00:60:e8:02:c5:51:04
---------

So... what should I echo into this file in order to have my HBA recongnize the disks online ???!!!

Thanks in advance
 
Old 03-11-2005, 02:16 PM   #6
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Original Poster
Rep: Reputation: 15
The Emulex cards are not the same as the QLogic cards so echoing qlogic commands won't work. I would google for Linux emulex documentation such as this: http://www.emulex.com/ts/docfc/linux...f/trouble.pdf.
 
  


Reply


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
SAN LUN device order jhumeston Linux - Enterprise 3 07-29-2004 08:24 PM
SAN LUN disk device order jhumeston Linux - Software 1 07-28-2004 07:02 PM
How to findout LUN ? palanisaravanan Linux - Hardware 1 04-19-2004 07:48 AM
LUN information rangel DamnSmallLinux 1 01-05-2004 11:39 PM
IBM ESS Shark SAN disks, how to add without rebooting? tells Linux - Hardware 1 12-06-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration