LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-27-2011, 07:30 PM   #1
dtd646
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Rep: Reputation: 0
Mounting Multiple LUNs over 1 HBA?


Is it possible to present multiple LUNs from 1 SAN with 1 NFS server? Currently, my NFS server is directly connected to my FC SAN. Do I have to install and configure multipathing for this to work OR is this just not possible to do over one connection?
 
Old 04-27-2011, 07:36 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You can present as many LUNs from a SAN to one HBA as you want.
 
Old 04-27-2011, 07:56 PM   #3
dtd646
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Well, I am currently having a problem where I am adding an additional LUN on my SAN BUT my Ubuntu 10.04 server doesn't allow me to fdisk the new LUN. I can see that it is defintely connecting to the server BUT I get an error when I try to run fdisk:

$ sudo fdisk /dev/sdb

Unable to read /dev/sdb

I can see the new lun in /proc/scsi/scsi. I was thinking it was because I can't do multiple luns to one HBA, also wasn't sure that it was a multi-pathing issue since I just have one physical path...Do you know what command I am missing to get this going?

Thanks
 
Old 04-27-2011, 09:42 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You only need one path. You don't need multipath when you only have one path.

Try
Code:
echo "- - -" > /sys/class/scsi_host/host0/scan
where 0 is the right host (or all of them)

Or have you tried rebooting?
 
Old 04-27-2011, 10:21 PM   #5
dtd646
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, so I have 5 hosts? I tried that command with all 5 hosts and I didn't get any info back from it.

Yes, I have tried rebooting the server a few times but that doesn't help either. Very strange that I can run many commands that give me information regarding the storage but I cannot use it. Here is info on both LUNs that are connected (disk:0 is working and was setup prior to this new one disk:1):

sudo lshw -C disk

*-disk:0
description: SCSI Disk
product: 1726-4xx FAStT
vendor: IBM
physical id: 0.0.1
bus info: scsi@4:0.0.1
logical name: /dev/sda
version: 0617
size: 12TiB (13TB)
capacity: 12TiB (13TB)
capabilities: 7200rpm partitioned partitioned:dos
configuration: ansiversion=5

-disk:1
description: SCSI Disk
product: 1726-4xx FAStT
vendor: IBM
physical id: 0.0.2
bus info: scsi@4:0.0.2
logical name: /dev/sdb
version: 0617
size: 10TiB (11TB)
capacity: 10TiB (11TB)
capabilities: 7200rpm
configuration: ansiversion=5

Thanks in advance for any other ideas..
 
Old 04-28-2011, 12:00 PM   #6
dtd646
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Another clue I have found, when I am directly logged into the box, I see a error like the one below repeating around every 5 secs or so:

"[65026.040045] end_request: I/O error, dev sdb, sector 0"

as well as this in most of my logs:

[66327.900412] sd 4:0:0:2: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Apr 28 10:17:07 nfs1 kernel: [66327.900419] sd 4:0:0:2: [sdb] Sense Key : Illegal Request [current]
Apr 28 10:17:07 nfs1 kernel: [66327.900425] sd 4:0:0:2: [sdb] <<vendor>> ASC=0x94 ASCQ=0x1ASC=0x94 ASCQ=0x1
Apr 28 10:17:07 nfs1 kernel: [66327.900434] sd 4:0:0:2: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
Apr 28 10:17:07 nfs1 kernel: [66327.900446] end_request: I/O error, dev sdb, sector 0

Last edited by dtd646; 04-28-2011 at 12:18 PM.
 
Old 05-06-2011, 11:34 AM   #7
dtd646
LQ Newbie
 
Registered: Apr 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Found the solution to this. Wasn't an OS problem. The problem was on the SAN that I was using. My SAN has 2 controllers but I am currently only using controller A. So, when I created the new array and logical drive, the path was being defaulted to controller B, even though it wasn't plugged in. The LUN information got passed to the OS through controller A, which is what I was seeing BUT the path to the LUN wasn't available.
 
  


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
can't see EMC luns using Emulex LPe 1205-HP HBA bajones Linux - Newbie 0 07-13-2009 04:34 PM
Can not see LUNs attached to FA's above 255 on EMC DMX using RHEL5.1 and emulex HBA'a dfezz1 Linux - Enterprise 1 04-17-2008 09:42 AM
Adding HBA card /LUNs to domU omkarbapat Linux - Distributions 0 02-19-2007 12:35 AM
Command to discover new LUNS with QLOGIC HBA mr_mightyman Red Hat 1 10-04-2006 02:03 PM
Multiple LUNS on Mandrake 10 wihiker Linux - Hardware 0 02-10-2005 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:20 AM.

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