Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-27-2011, 07:30 PM
|
#1
|
LQ Newbie
Registered: Apr 2010
Posts: 18
Rep:
|
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?
|
|
|
04-27-2011, 07:36 PM
|
#2
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
You can present as many LUNs from a SAN to one HBA as you want.
|
|
|
04-27-2011, 07:56 PM
|
#3
|
LQ Newbie
Registered: Apr 2010
Posts: 18
Original Poster
Rep:
|
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
|
|
|
04-27-2011, 09:42 PM
|
#4
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
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?
|
|
|
04-27-2011, 10:21 PM
|
#5
|
LQ Newbie
Registered: Apr 2010
Posts: 18
Original Poster
Rep:
|
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..
|
|
|
04-28-2011, 12:00 PM
|
#6
|
LQ Newbie
Registered: Apr 2010
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
05-06-2011, 11:34 AM
|
#7
|
LQ Newbie
Registered: Apr 2010
Posts: 18
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|