LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 02-23-2009, 09:58 PM   #1
kuhazor
Member
 
Registered: Jul 2005
Posts: 36

Rep: Reputation: 15
SAN Volume not mapping to SCSI devices


Hi there,

I have QLogic fibre channel card connected to a SAN. QLogic dynamic LUN discovery tools works fine and detects the new added volumes from the SAN (/dev/sg0 below) just fine without rebooting. However, the new volume doesn't get automatically mapped into SCSI device i.e. it doesn't have /dev/sdb mapping. If I reboot this happens automatically, but I cannot reboot these servers! Please help!

Both volumes are visible, verify with QLogic SanSurfer CLI tool:

scli -L 0
--------------------------------------------------------------------------------
HBA Instance 0: QME2472 Port 1 WWPN 20-01-00-22-19-40-53-E0 PortID 01-04-00
--------------------------------------------------------------------------------
Target WWPN 50-00-D3-10-00-0E-79-03 PortID 01-11-00
------------------------------------------------------------
Product Vendor : COMPELNT
Product ID : Compellent Vol
Product Revision : 0401
LUN : 0
Size : 10.00 GB
Type : SBC-2 Direct access block device
(e.g., magnetic disk)
WWULN : 60-00-D3-10-00-0E-79-00-00-00-00-00-00-00-00-16
OS LUN Name : /dev/sg0;
------------------------------------------------------------
Target WWPN 50-00-D3-10-00-0E-79-05 PortID 01-12-00
------------------------------------------------------------
Product Vendor : COMPELNT
Product ID : Compellent Vol
Product Revision : 0401
LUN : 0
Size : 160.00 GB
Type : SBC-2 Direct access block device
(e.g., magnetic disk)
WWULN : 60-00-D3-10-00-0E-79-00-00-00-00-00-00-00-00-0F
OS LUN Name : /dev/sda;/dev/sg1;
------------------------------------------------------------

The first volume doesn't get mapped to /dev/sdb like it should. How do your force this to happen? Do you force SCSI device re-scan or how do you make this happen?

Thanks for any help!

Double confirm with fdisk:

fdisk -l

Disk /dev/sda: 171.7 GB, 171798691840 bytes
255 heads, 63 sectors/track, 20886 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 20886 167662372+ 8e Linux LVM
 
Old 02-24-2009, 06:48 AM   #2
bigjimlefou
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Hi,

there is another tool to download from qlogic that i've used before.
The script is called ql-dynamic-tgt-lun-disc.sh .

I hope it could help you,

Cédric
 
Old 02-24-2009, 11:15 AM   #3
kuhazor
Member
 
Registered: Jul 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Scan tools

This is the dynamic discovery tool I used, however it does not map the found volumes to the SCSI devices....
 
Old 02-24-2009, 11:30 AM   #4
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 352

Rep: Reputation: 43
I have attached a file I found some time ago called scsi_rescan.txt
Make it executable and give it a whirl.
Attached Files
File Type: txt scsi-rescan.txt (5.8 KB, 19 views)
 
Old 02-24-2009, 03:57 PM   #5
kuhazor
Member
 
Registered: Jul 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Script

Thanks for the script... Still didn't work with this script, but I did get it working.

I went to the SAN, remapped the second volume as LUN 1 and the QLogic dynamic recovery script works just fine assigning the new volume as device. Previously I had both volumes as LUN 0.

Thanks.
 
  


Reply

Tags
lun, map, qlogic, 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount SAN volume with its increased volume size prvnrk Linux - General 4 03-22-2008 11:48 AM
LXer: Report: San Francisco Turns To Open Source For Mapping Urban Forest LXer Syndicated Linux News 0 03-30-2007 02:31 PM
name mapping change for SCSI devices on kernel 2.6 Lkpaturi@tcs Linux - Kernel 0 06-22-2006 05:44 AM
Emulex LP8000 and HP SAN Drive Mapping idubrawsky Linux - Software 0 02-16-2006 03:42 PM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 12:50 PM


All times are GMT -5. The time now is 08:02 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration