LinuxQuestions.org
Register a domain and help support LQ
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 11-15-2010, 09:02 AM   #1
augustine.oghene
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
SAN


Hi All,
Could somebody assist me with the command to show the luns mapped to redhat enterprise server 6.1 host. And how do i known the WWNN for the FC HBA attach to the host.
 
Old 11-15-2010, 09:32 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by augustine.oghene View Post
Hi All,
Could somebody assist me with the command to show the luns mapped to redhat enterprise server 6.1 host. And how do i known the WWNN for the FC HBA attach to the host.
Hard to say, since you don't give any details about the HBA's you're using, what SAN hardware, and what software you're using to talk to the SAN.

The output of ls -l /sys/block/*/device should give you an idea about how each device is connected to the system. But that's a basic Linux command. If you're using multipathing, or any sort of SAN managment software, it's going to be different. Talk to your SAN administrators, HBA and SAN vendors. The driver you got from the HBA/SAN vendor should also have instructions, if you read them.
 
Old 11-15-2010, 08:27 PM   #3
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,167

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
And how do i known the WWNN for the FC HBA attach to the host.
I'm not sure if this would work but the World Wide numbers for Fibre Channel HBAs usually look like MAC addresses so you might get lucky with an ifconfig command as it's the equivalent of a fibre connected nic. Hardware address = WWN

I've nothing to confirm this with so it may be a load of tosh!

Play Bonny!
 
Old 11-16-2010, 04:11 AM   #4
kingston
Member
 
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 215
Blog Entries: 1

Rep: Reputation: 21
sorry, ifconfig command will not give the WWNN number of a HBA. Augustine, can you give a little more information about your host, kernel-version and distro. I am not aware about redhat enterprise server 6.1

Still, if i take RHEL 5.x series, i can get it from /proc/scsi/qla2xxx/scsi 0 or scsi 1 (in my case qlogic is the HBA vendor).Have a look at those scsi* files. You will get the WWNN and WWPN number.
 
Old 11-16-2010, 04:41 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
search
Code:
/sys/class/scsi_host/host?/*
or

Code:
/sys/class/fc_host/host?/*
here you can find information about WWN, topology, speed, etc

refer this link

Last edited by prayag_pjs; 11-16-2010 at 04:43 AM.
 
Old 11-16-2010, 10:49 AM   #6
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,167

Rep: Reputation: 201Reputation: 201Reputation: 201
@ kingston
Quote:
sorry, ifconfig command will not give the WWNN number of a HBA.
Thanks for your clarification. I wasn't sure if ifconfig would work. I usually read the WWN from the lable on the HBA. I haven't had to interrogate a system for it.

Play Bonny!
 
Old 11-16-2010, 09:17 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You may find this useful http://linux.die.net/man/8/blkid
 
  


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 no longer connect to san device when san switch changed rew25 Linux - Hardware 2 09-07-2010 09:28 AM
? On how to see an unmounted SAN brusk Linux - Hardware 1 01-19-2010 03:52 PM
SAN Howto yderoy Linux - Server 2 05-21-2007 12:01 PM
How to segment off SAN habiem Linux - Networking 0 02-13-2007 12:13 PM
Boot from SAN vgunaydin Linux - Enterprise 1 01-24-2007 01:06 PM


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