LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-12-2007, 04:14 AM   #1
mickg007
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Rep: Reputation: 0
LUN Device not showing without reboot on Redhat


Hi

I have a EMC CX500 Clarion connected to a RHEL ES 2.1

I have setup a new LUN but need to add this to the server without rebooting

I have read that you do the following

echo "scsi-qlascan" >>/proc/scsi/qla2300/<adapter-id>
echo "scsi add-single-device 3 0 0 3" >>/proc/scsi/scsi

But my adaptor ID is 'HbaApiNode' and was expecting it to be qlaXXX ?

Any ideas if I am on the right track here ..

Thanks

Mick
 
Old 06-13-2007, 01:21 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
RHEL 2 is fairly old so you might want to nudge your management into moving ahead.

The "qla" means Qlogic which is ONE kind of fibre adapter you could have.

There are other types (e.g. Emulex).

So the first thing you'd need to know is which Fibre adapter you had.

I did some work with QLA and Clariion CX700s on RHEL 3 a few months back. There was a tool called something like "qla_scsi_scan" at Qlogic's site that you could download to do the rescan of SCSI.

Also - Are you running EMC PowerPath? EMC Navisphere? there would be additional commands to run on the host to make them see the new path(s).
 
Old 06-14-2007, 02:43 AM   #3
mickg007
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Using PowerPath and Navisphere. I ran :

echo "scsi-qlascan" > proc/scsi/qla2300/2

you are supposed to get an entry in the file for the new device - but nothing changed

"powermt config" does not do anything for me
 
Old 06-14-2007, 08:07 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
1) Have you verified you do in fact have a QLA card (as opposed to Emulex or something else)? If so how?

2) Does "lspci" show you the QLA card?

3) What does "powermt display dev=all" show?

4) Did you read what I said about the scan utility at Qlogic's site? The name of the utility is "ql-scan-lun.sh".

FWIW - Full sequence I used on RHEL 3 using QLA 2340 (QLA 2312 is what lspci displayed) was something like the following. As noted this was NOT RHEL 2 so may not work the same way even if you are using the same QLA card I was.

*************** DO THIS AT YOUR OWN RISK **********************

A) service PowerPath stop # Stop EMC PowerPath
B) service naviagent stop # Stop EMC Navisphere Agent
C) Renamed PowerPath configuration files in /etc:
emcp_devicesDB.dat, emcp_deviceDB.idx, powermt.custom
NOTE: mv NOT cp
D) ql-scan-lun.sh s r # Scan SCSI for new devices
E) service nagiagent start # Restart Navisphere
F) service PowerPath start # Restart PowerPath
G) powermt display dev=all # Show EMC device mappings

*************** DO ABOVE AT YOUR OWN RISK *********************

Note: The /dev/sd? designations will almost certainly change which shouldn't matter so long as you're using the PowerPath pseudo devices (e.g. emcpowera, emcpowerb etc...). The powermt display dev=all will show you which /dev/sd? paths go with which pseudo devices. On your next boot the /dev/sd? will likely change again as it did for me.
 
Old 06-14-2007, 09:26 AM   #5
mickg007
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Already had verified it is a qla2312 and powermt ... shows me the 7 LUN that I already have mounted and no more

I have investigated your point of running the powermt stop start and nav agent start stop, but Qlogic recommend that you unmount any LUNS mounted and proceed with the start stop of above. As this is in production I would prefer to wait till the weekend and either do the above or reboot. Does the qla-scan-lun.sh not effect and LUNs already mounted ?

Thanks for you help here
 
Old 06-14-2007, 09:38 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
When I did all the above I was actually migrating from one array to another (e.g. replacing the LUNs I was using with SANcopy LUNs of same from another CX700). Due to that I stopped everything on the system. Since it reorders your /dev/sd? devices that might be a good idea - looking at the details for the utility on Qlogic's site might help. I'm pretty sure that I ran it at least once with everything up with no untoward effects but wouldn't swear to it.

However, if you can stop your apps and/or db etc... then simply rebooting the box would probably be the simplest way to make it see the new device as it will automatically scan on reboot. I thought you didn't want to reboot though.

The systems I was doing were running Oracle RAC databases so it was a lot more complicated because there were two systems sharing the same LUNs. I basically extracted a subset of commands from the full plan I'd done for that.

Also as a reminder that was on RHEL3 systems - which a 2.4 kernel like RHEL2.1 so is probably very similar at the driver level but not necessarily exact. You'd of course want to have a good backup before you did any of this.

If you can get a downtime window then it might be worthwhile to try the scan without the boot. If it doesn't work then you do the boot but then in future you'd know one way or the other.

Don't feel bad though - coming up with the above even with EMC's help was like pulling teeth. We finally went to an offsite testing facility owned by Oracle with EMC contributed equipment to work it out and do the test.

For just adding a LUN rather than redeploying existing ones though I would think it shouldn't be that difficult. But as they say: Your mileage may vary.

Last edited by MensaWater; 06-14-2007 at 09:39 AM.
 
Old 06-14-2007, 09:59 AM   #7
mickg007
LQ Newbie
 
Registered: Jul 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Once we have Oracle down at the weekend, will try what you suggested - otherwise it is the old reboot

Thanks
 
Old 06-14-2007, 10:04 AM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
I guess I should mention - you probably don't want to mv your EMC config files in /etc the way I had in above steps since you're just adding a LUN. In my scenario we were getting rid of the old LUNs so that is why we had to get the old config files out of the way.

P.S. Good Luck this weekend.
 
  


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
Cant see NEW LUN on RedHat Box bboy-mass Linux - Hardware 5 04-29-2009 11:13 AM
Showing Device Status as Unknown Device for all hardware ganesh_g1982 Linux - Hardware 1 12-02-2006 02:13 PM
LUN device mapping jdepaul Linux - Hardware 0 08-02-2004 02:42 PM
SAN LUN device order jhumeston Linux - Enterprise 3 07-29-2004 07:24 PM
SAN LUN disk device order jhumeston Linux - Software 1 07-28-2004 06:02 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:19 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
Open Source Consulting | Domain Registration