1755953 Members
4215 Online
108839 Solutions
New Discussion

Re: multipath trouble

 
rootless_mzm
Occasional Contributor

multipath trouble

Hi,guys!

We got 2 eva-8400.I assigned 2 luns from one 8400.After it, i assign another two luns from another 8400.

But i got six mpaths device under /dev/mapper/ .

 

[root@localhost mapper]# ls
control mpath0 mpath1 mpath2 mpath2p1 mpath3 mpath3p1 oradatavg-lv_oradb

 

The two bold mpath devices are redundant which we don't need.

 

and "mutipath -ll"show well;no  redundant  mpath devices.

[root@localhost mapper]# multipath -ll
mpath2 (36001438005df0b2f00006000001e0000) dm-2 HP,HSV450
[size=300G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
\_ 0:0:3:1 sdg 8:96 [active][ready]
\_ 1:0:3:1 sdo 8:224 [active][ready]
\_ round-robin 0 [prio=20][enabled]
\_ 0:0:2:1 sde 8:64 [active][ready]
\_ 1:0:2:1 sdm 8:192 [active][ready]
mpath1 (36001438005ded66a0001200000bf0000) dm-1 HP,HSV450
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
\_ 0:0:1:2 sdd 8:48 [active][ready]
\_ 1:0:1:2 sdl 8:176 [active][ready]
\_ round-robin 0 [prio=20][enabled]
\_ 0:0:0:2 sdb 8:16 [active][ready]
\_ 1:0:0:2 sdj 8:144 [active][ready]
mpath0 (36001438005ded66a0001200000ba0000) dm-0 HP,HSV450
[size=500G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
\_ 0:0:0:1 sda 8:0 [active][ready]
\_ 1:0:0:1 sdi 8:128 [active][ready]
\_ round-robin 0 [prio=20][enabled]
\_ 0:0:1:1 sdc 8:32 [active][ready]
\_ 1:0:1:1 sdk 8:160 [active][ready]
mpath3 (36001438005df0b2f0000600000230000) dm-3 HP,HSV450
[size=300G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
\_ 0:0:2:2 sdf 8:80 [active][ready]
\_ 1:0:2:2 sdn 8:208 [active][ready]
\_ round-robin 0 [prio=20][enabled]
\_ 0:0:3:2 sdh 8:112 [active][ready]
\_ 1:0:3:2 sdp 8:240 [active][ready]

 

Here is "pvdisplay"

[root@localhost mapper]# pvdisplay
--- Physical volume ---
PV Name /dev/dm-2
VG Name oradatavg
PV Size 300.00 GB / not usable 64.00 MB
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4799
Free PE 0
Allocated PE 4799
PV UUID neaGX3-HgNH-Rzx3-lvXB-qSoH-LEb1-OtnkXN

--- Physical volume ---
PV Name /dev/dm-3
VG Name oradatavg
PV Size 300.00 GB / not usable 64.00 MB
Allocatable yes (but full)
PE Size (KByte) 65536
Total PE 4799
Free PE 0
Allocated PE 4799
PV UUID FBMPUt-Lofm-beQS-knRl-YYEN-Urwh-DhY8Iw

"/dev/dm-0" is a new physical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/dm-0
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID frU6mE-SKjt-9KDu-31fK-M3qn-oA0z-4YESlN

"/dev/dm-1" is a new physical volume of "500.00 GB"
--- NEW Physical volume ---
PV Name /dev/dm-1
VG Name
PV Size 500.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID DAsbXn-sRMa-AtbT-LpFy-s4Sr-yn5D-b9CWb1

"/dev/dm-4" is a new physical volume of "300.00 GB"
--- NEW Physical volume ---
PV Name /dev/dm-4
VG Name
PV Size 300.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID KbZJAq-O3bW-xtp4-CBeQ-UbXd-ascp-j3U32c

"/dev/dm-5" is a new physical volume of "300.00 GB"
--- NEW Physical volume ---
PV Name /dev/dm-5
VG Name
PV Size 300.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID d7bDx3-nxG5-JSQO-mYS2-wzyd-RJgH-eIT6Yg

 

Does anyone know what exactly the two redundant device mpath2p1 and  mpath3p1 means?and how can i remove them?

 

 

Best Regard!

 

 

1 REPLY 1
Sebastian.Koehler
Honored Contributor

Re: multipath trouble

The p1 is nothing else than a partition created using fdisk, parted or partx on a mpath device. You can use LVM with or without partitions on your devices. This is up to you...

Regards,
Sebastian