LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2008, 01:55 PM   #1
sachdev23
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Question Storage Questions at Redhat Level


Friends,

I am new on storage basics and want to know the details like.

What is HBA card?
How to detect HBA card in server?
How to check how many HBA are installed?
How to check if one or more (if any ) HBA card is working or not.
How to make lun visible to redhat os?
whats are features of lun?
how to check link betwwen switch and card is working or not?
how to use lun as partition?
can we use lun as raw devices?
What is multipathing?
how to check is multipathing configured or not?


Please provide me specific or broad details so that i can found my all queries????

Dev
 
Old 12-01-2008, 02:09 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
These should all be answered by your storage vendor documentation. It's important to take the time to read it. (More general questions - e.g. "What is a HBA?" - are answered by google and wikipedia.)
 
Old 12-01-2008, 03:38 PM   #3
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
This is all slightly over my head, but that has never stopped me before. I'll answer what I can. If I'm wrong or incomplete on any points, someone please correct or add. To make matters worse, my Fibrechannel experience is
limited to Linux on Z (the IBM mainframe).

What is HBA card?

An HBA is a Host Bus Adapter. It is the Fibrechannel equivalent of an ethernet NIC.
Unlike most NICs, it can be configured with target LUN information so that you can
boot off of it. If you have a blade server with no local disk, this comes in handy.


How to detect HBA card in server?

We needed to rebuild the initial ramdisk to include Fibrechannel drivers. Then add configuration
info into a file, /etc/zfcp.conf, so that the zfcp drivers could find the LUNs out in the SAN.
There is probably something equivalent in the x86 world. I don't know what it is. Each LUN found
is represented as a separate SCSI device, e.g. /dev/sda, /dev/sdb, etc.


How to make lun visible to redhat os?

As mentioned above, we need to put definitions in place in /etc. Also, there is a "feature"
of the fcp driver where it stops at 8 devices when it scans for devices. If you have more
than 8 drives*paths, you need to add a statement like:
options scsi_mod max_luns=50
to /etc/modprobe.conf, then rebuild the initial ramisk with something like:
mkinitrd --with=zfcp -f initrd-$(uname -).img $(uname -r)


whats are features of lun?

It simply looks like a SCSI disk partition -- not a whole disk. It's size and characteristics are
determined by "the storage guy" who is doing your SAN work. You can see that this s way over my head.


how to use lun as partition?

I would imagine you would format it as you would any partition i.e. you would use mkfs.ext3. We don't
use the devices directly. Instead, we use dm-multipath, then put the multipath device into an LVM volume
group.


can we use lun as raw devices?

Yes. I believe you can use it just as you would any drive. But why would you want to? The performace
hit to using LVM is almost impossible to measure...


What is multipathing?

Multipathing allows you to have two (or more) HBA's configured to point to the same LUN.
With planning (and money) you have more than one physical path all the way from your server
to the backend disk array. In the event the HBA, fiber, SAN switch, or disk array port fails,
there is another path to device.

There are two methods of multipathing. The older method (pre-RHEL4.5?) used software raid to
take two devices, say /dev/sda and /dev/sdb, and represent them (actually "it", not "them"
as in this case, they are the same LUN) as a single MD device, say /dev/md0.

The second method, DM-Multipath, is the preferred method. It can take the devices and represent
them as a single device, say as /dev/mapper/mpath0. The advantage of DM-Multipath is that it
can do round-robin load balancing, etc., is very efficient, and is very robust.


how to check is multipathing configured or not?

With Software Raid multipathing, 'cat /proc/mdstat' would show that to you;
with DM-Multipath, 'multipath -ll' would show all of the devices, e.g.:

# multipath -ll
mpath1 (36005076306ffc4af0000000000004801) dm-7 IBM,2107900
[size=50G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:2 sdc 8:32 [active][ready]
\_ 1:0:0:2 sdd 8:48 [active][ready]
mpath0 (36005076306ffc4af0000000000004800) dm-6 IBM,2107900
[size=50G][features=1 queue_if_no_path][hwhandler=0]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:1 sda 8:0 [active][ready]
\_ 1:0:0:1 sdb 8:16 [active][ready]


I don't know the answers to:

How to check how many HBA are installed?
How to check if one or more (if any ) HBA card is working or not.
how to check link betwwen switch and card is working or not?
 
Old 12-01-2008, 03:40 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
Your HBA card drivers should have a utility to enable it to report back.
 
  


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
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 04:31 AM
Magnetic data storage for consumer level General Linux - Hardware 7 05-31-2006 12:57 PM
Some Questions about Storage System? Chowroc Linux - Hardware 4 01-06-2006 09:06 AM
FreeBSD - 3 install questions (NB level) stevesk *BSD 5 08-30-2005 08:21 PM
Hi, another 2 questions on entry level. ICO Linux - General 4 09-12-2003 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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