LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-09-2010, 05:48 AM   #1
mayrus9
LQ Newbie
 
Registered: Jun 2009
Location: India
Distribution: Redhat, Suse, Fedora,
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
Question multipath information in vxvm


Hi All,

I am working on a server which connected to two EMC storage box.
when i am checking the multipath information of a disk its showing as 8 paths.

can any body explain how to understand 8 paths for a single disk .

#vxdisk list EMC_01
:::::::::skip:::::::::::::
Multipathing information:
numpaths: 8
sdh state=enabled type=secondary
sdaj state=enabled type=primary
sdbl state=enabled type=secondary
sdcn state=enabled type=primary
sdiz state=enabled type=secondary
sdhx state=enabled type=primary
sdkb state=enabled type=secondary
sdld state=enabled type=primary


thanks in advance.
 
Old 04-09-2010, 08:32 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If you were to zone 2 Qlogic or Emulex HBAs to see 4 separate fibre ports from the EMC array in the same zone then each path is a disk from the OS standpoint. So each of the following is a "path" even though each path goes to the same physical disk.

Server Array
HBA 1 Port 1 --> Port1 (director if Symmetrix)
HBA 1 Port 1 --> Port2
HBA 1 Port 1 --> Port3
HBA 1 Port 1 --> Port4
HBA 2 Port 1 --> Port1
HBA 2 Port 1 --> Port2
HBA 2 Port 1 --> Port3
HBA 2 Port 1 --> Port4

Or it could be you had if you were using 2 ports on each of the HBAs and 2 ports on the array:
Server Array
HBA 1 Port 1 --> Port1 (director if Symmetrix)
HBA 1 Port 1 --> Port2
HBA 1 Port 2 --> Port1
HBA 1 Port 2 --> Port2
HBA 2 Port 1 --> Port1
HBA 2 Port 1 --> Port2
HBA 2 Port 2 --> Port1
HBA 2 Port 2 --> Port2

A bizarre scenario might be 1 port on 1 HBA in the server to 8 ports on the array. The idea is that each route to the disk that has a unique element from other routes is a "path". You wouldn't really want to do a 1 to 8 like that - the point in multipathing is redundancy.

With mutipaths if you lose 1 port on the server or one port on the array you still have a path to the disk and so long as you're using a multipath setup (e.g. EMC's PowerPath emcpower pseudodevice) then your application or database won't even know it has lost a path as it can still read from and write to the disk.

With EMC's PowerPath you would create a pseudodevice called something like emcpowera (or emcpowerb or emcpowerc etc...) for each disk (or LUN) from the array. That pseudodevice is comprised of the individual paths you saw earlier.

For example on one my servers if I run "powermt display dev=all" I see in part:

Code:
powermt display dev=all
Pseudo name=emcpowerd
CLARiiON ID=APM000000000000 [Production RAC]
Logical device ID=600601608C701D002AD8DA85D480DC11 [LUN 103]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP A
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   2 qla2xxx                   sdaa      SP A5     active  alive      0      0
   1 qla2xxx                   sdf       SP A4     active  alive      0      0
   1 qla2xxx                   sdm       SP B4     active  alive      0      0
   2 qla2xxx                   sdt       SP B5     active  alive      0      0

Pseudo name=emcpowerg
CLARiiON ID=APM000000000000 [Production RAC]
Logical device ID=600601608C701D00425A5FDAF6CADE11 [LUN 105]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP A, current=SP A
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
###  HW Path                I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   2 qla2xxx                   sdad      SP A5     active  alive      0      0
   1 qla2xxx                   sdi       SP A4     active  alive      0      0
   1 qla2xxx                   sdp       SP B4     active  alive      0      0
   2 qla2xxx                   sdw       SP B5     active  alive      0      0
That shows me my pseudodevice emcpowerg is comprised of paths /dev/sdad, /dev/sdi, /dev/sdp and /dev/sdw. Also it shows I have two separate Qlogic HBAs (notice sdad and sdw are #2 while sdi and sdp are on #1) as well as two separate ports on my Clariion (SPs A & B). So I have 4 paths because I have 2 ports on each side. In my database I use /dev/emcpowerg and NOT any of the individual components shown above. That way if /dev/sdad, /dev/sdi and /dev/sdw all failed my disk (LUN) would still be working because /dev/sdp was still there in the emcpowerg pseudodevice.

Last edited by MensaWater; 04-09-2010 at 08:33 AM.
 
  


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
increasing size of a mirrored volume in vxvm mayrus9 SUSE / openSUSE 1 04-06-2010 06:00 PM
[SOLVED] Symantec (Veritas) Storage Foundation (VxVM & VxFS) on linux? MensaWater Linux - Software 1 04-02-2010 10:56 AM
dm-multipath earlysame55 Red Hat 3 05-09-2009 01:59 PM
vxvm root-mirror for RHEL4 UltraSoul Linux - Software 0 03-19-2008 11:58 PM
NFS mount of VxVM volume in SLES9 dussel Linux - Software 0 12-05-2005 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:42 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