LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-12-2011, 09:35 AM   #1
jnreddy
Member
 
Registered: May 2008
Location: INDIA
Distribution: RHEL
Posts: 171

Rep: Reputation: 15
How to find FC switch IP address


Hi Gurus,

I have a server running RHEL5.6, having 2 HBA Cards and these are reaching through two individual FC switchs to SAN. Simply to say is SAN shared Luns to my server through 2 individual switches, and multipathing (device Mapper multipath) is configured

Here my query is if I issues command sfdisk –l its listning 20 Luns, so how to find which LUN coming through which FC switch.

Example
multipath -ll output
mpath24 (360060480000190103925) dm-38 EMC,SYMMETRIX
[size=30G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 2:0:0:40 sdbh 67:176 [active][undef]
\_ 0:0:0:40 sdy 65:128 [active][undef]
how to find sdbh path is coming from which switch.

if my query doesn't make sense please dont mind...

Any suggestions are appreciated

Thanks
JNREDDY
 
Old 09-13-2011, 09:41 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
Quote:
Originally Posted by jnreddy
How to find FC switch IP address
What type of switch? Log into it via serial port, if needed. The IP address for your switch is a good thing to document after you configure it.

Quote:
Originally Posted by jnreddy
its listning 20 Luns, so how to find which LUN coming through which FC switch.
All the LUNs you've configured multipathing for are coming through both switches. That's why you needed DM Multipath.

I think what you're really asking is how to "match" a device name / major / minor number with a switch.

One approach is to issue the following command:
Code:
# systool -c fc_host -v | less
Scroll through the output and find the WWN for each of your HBAs. (You'll want port_name for each.) Log in to your fibre switches and - from there - reconcile the HBA WWN with connections to the switch port.
 
1 members found this post helpful.
Old 09-15-2011, 01:33 PM   #3
jnreddy
Member
 
Registered: May 2008
Location: INDIA
Distribution: RHEL
Posts: 171

Original Poster
Rep: Reputation: 15
Thank You

HI Anomie,


Thank you Anomie for your suggestions your command did the job thank you.


Thanks
JNREDDY
 
  


Reply



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
LXer: Using expect to find a MAC Address on a CISCO IOS Switch LXer Syndicated Linux News 0 10-20-2008 03:10 AM
Find real ip address using link local address, mdns/zeroconf dannemanare Linux - Networking 0 01-17-2008 04:31 AM
how to find physical address of kernel virtual address kushneeraj Programming 0 10-20-2006 07:29 PM
Can't find a Cisco Switch's IP address icrangirl Linux - Newbie 2 04-28-2006 11:35 AM
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM

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

All times are GMT -5. The time now is 05:31 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
Open Source Consulting | Domain Registration