티스토리 뷰

 

 

※ 아래 LVM 에 할당된 /dev/mpath/mpath-19 에 대한 mapping 조회를 예시로 함.

 

[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# service multipathd status
multipathd (pid  8107)를 실행 중...
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# pvscan
  PV /dev/mpath/mpath-19   VG PGXLOG    lvm2 [40.00 GB / 96.00 MB free]
  PV /dev/mpath/mpath-20   VG ARCHIVE   lvm2 [350.00 GB / 96.00 MB free]
  PV /dev/mpath/mpath-18   VG JBLOG     lvm2 [30.00 GB / 96.00 MB free]
  PV /dev/mpath/mpath-17   VG APLOG     lvm2 [30.00 GB / 96.00 MB free]
  PV /dev/mpath/mpath-15   VG JBOSS     lvm2 [20.00 GB / 96.00 MB free]
  PV /dev/mpath/mpath-14   VG APACHE    lvm2 [20.00 GB / 96.00 MB free]
  PV /dev/mpath/mpath-01   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-02   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-03   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-04   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-05   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-06   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-07   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-08   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-09   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-10   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-11   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-12   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-13   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-21   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  PV /dev/mpath/mpath-22   VG DATA      lvm2 [1.95 TB / 6.61 GB free]
  Total: 21 [29.78 TB] / in use: 21 [29.78 TB] / in no VG: 0 [0   ]
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# cat /etc/multipath.conf | grep -v "#" | grep alias
  alias             mpath-01
  alias             mpath-02
  alias            mpath-03
  alias            mpath-04
  alias            mpath-05
  alias            mpath-06
  alias            mpath-07
  alias            mpath-08
  alias            mpath-09
  alias            mpath-10
  alias            mpath-11
  alias            mpath-12
  alias            mpath-13
  alias            mpath-14
  alias            mpath-15
  alias            mpath-16
  alias            mpath-17
  alias            mpath-18
  alias            mpath-19
  alias            mpath-20
  alias            mpath-21
  alias            mpath-22
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# ls -l /dev/mpath/
합계 0
lrwxrwxrwx 1 root root 8 11월 29  2012 360060e801005b800052fb83000000014 -> ../dm-21
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-01 -> ../dm-1
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-02 -> ../dm-2
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-03 -> ../dm-3
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-04 -> ../dm-4
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-05 -> ../dm-5
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-06 -> ../dm-6
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-07 -> ../dm-7
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-08 -> ../dm-8
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-09 -> ../dm-9
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-10 -> ../dm-10
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-11 -> ../dm-11
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-12 -> ../dm-12
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-13 -> ../dm-13
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-14 -> ../dm-14
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-15 -> ../dm-15
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-16 -> ../dm-16
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-17 -> ../dm-17
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-18 -> ../dm-18
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-19 -> ../dm-20
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-20 -> ../dm-19
lrwxrwxrwx 1 root root 8 11월 29  2012 mpath-21 -> ../dm-22
lrwxrwxrwx 1 root root 7 11월 29  2012 mpath-22 -> ../dm-0
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# dmsetup ls
JBOSS-lv_JBOSS (253, 27)
mpath-12 (253, 12)
mpath-09 (253, 9)
mpath-11 (253, 11)
mpath-08 (253, 8)
mpath-10 (253, 10)
mpath-07 (253, 7)
mpath20 (253, 21)
mpath-06 (253, 6)
APLOG-lv_APLOG (253, 26)
mpath-05 (253, 5)
mpath-22 (253, 0)
mpath-19 (253, 20)
mpath-04 (253, 4)
PGXLOG-lv_PGXLOG (253, 29)
mpath-21 (253, 22)
APACHE-lv_APACHE (253, 28)
mpath-18 (253, 18)
mpath-03 (253, 3)
mpath-20 (253, 19)
JBLOG-lv_JBLOG (253, 25)
mpath-17 (253, 17)
mpath-02 (253, 2)
mpath-16 (253, 16)
mpath-01 (253, 1)
mpath-15 (253, 15)
mpath-14 (253, 14)
DATA-lv_DATA (253, 24)
mpath-13 (253, 13)
ARCHIVE-lv_ARCHIVE (253, 23)
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# dmsetup info /dev/dm-20
Name:              mpath-19
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      1
Major, minor:      253, 20
Number of targets: 1
UUID: mpath-360060e801005b800052fb83000000013

[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]#
[root@TestDB01 ~]# multipath -ll
mpath-12 (360060e801005b800052fb83000000022) dm-12 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:15 sdam       66:96  [active][ready]
 \_ 3:0:0:15 sdp        8:240  [active][ready]
mpath-09 (360060e801005b800052fb8300000001f) dm-9 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:12 sdaj       66:48  [active][ready]
 \_ 3:0:0:12 sdm        8:192  [active][ready]
mpath-11 (360060e801005b800052fb83000000021) dm-11 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:14 sdal       66:80  [active][ready]
 \_ 3:0:0:14 sdo        8:224  [active][ready]
mpath-08 (360060e801005b800052fb8300000001e) dm-8 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:11 sdai       66:32  [active][ready]
 \_ 3:0:0:11 sdl        8:176  [active][ready]
mpath-10 (360060e801005b800052fb83000000020) dm-10 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:13 sdak       66:64  [active][ready]
 \_ 3:0:0:13 sdn        8:208  [active][ready]
mpath-07 (360060e801005b800052fb8300000001d) dm-7 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:10 sdah       66:16  [active][ready]
 \_ 3:0:0:10 sdk        8:160  [active][ready]
mpath20 (360060e801005b800052fb83000000014) dm-21 HITACHI,DF600F
[size=40G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:1  sdy        65:128 [active][ready]
\_ round-robin 0 [prio=0][enabled]
 \_ 3:0:0:1  sdb        8:16   [active][ready]
mpath-06 (360060e801005b800052fb8300000001c) dm-6 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:9  sdag       66:0   [active][ready]
 \_ 3:0:0:9  sdj        8:144  [active][ready]
mpath-05 (360060e801005b800052fb8300000001b) dm-5 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:8  sdaf       65:240 [active][ready]
 \_ 3:0:0:8  sdi        8:128  [active][ready]
mpath-22 (360060e801005b800052fb83000000016) dm-0 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:3  sdaa       65:160 [active][ready]
 \_ 3:0:0:3  sdd        8:48   [active][ready]
mpath-19 (360060e801005b800052fb83000000013) dm-20 HITACHI,DF600F
[size=40G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 3:0:0:0  sda        8:0    [active][ready]
 \_ 5:0:0:0  sdx        65:112 [active][ready]
mpath-04 (360060e801005b800052fb8300000001a) dm-4 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:7  sdae       65:224 [active][ready]
 \_ 3:0:0:7  sdh        8:112  [active][ready]
mpath-21 (360060e801005b800052fb83000000015) dm-22 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 3:0:0:2  sdc        8:32   [active][ready]
 \_ 5:0:0:2  sdz        65:144 [active][ready]
mpath-18 (360060e801005b800052fb83000000028) dm-18 HITACHI,DF600F
[size=30G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:21 sdas       66:192 [active][ready]
 \_ 3:0:0:21 sdv        65:80  [active][ready]
mpath-03 (360060e801005b800052fb83000000019) dm-3 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:6  sdad       65:208 [active][ready]
 \_ 3:0:0:6  sdg        8:96   [active][ready]
mpath-20 (360060e801005b800052fb83000000030) dm-19 HITACHI,DF600F
[size=350G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:22 sdat       66:208 [active][ready]
 \_ 3:0:0:22 sdw        65:96  [active][ready]
mpath-17 (360060e801005b800052fb83000000027) dm-17 HITACHI,DF600F
[size=30G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:20 sdar       66:176 [active][ready]
 \_ 3:0:0:20 sdu        65:64  [active][ready]
mpath-02 (360060e801005b800052fb83000000018) dm-2 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:5  sdac       65:192 [active][ready]
 \_ 3:0:0:5  sdf        8:80   [active][ready]
mpath-16 (360060e801005b800052fb83000000026) dm-16 HITACHI,DF600F
[size=20G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:19 sdaq       66:160 [active][ready]
 \_ 3:0:0:19 sdt        65:48  [active][ready]
mpath-01 (360060e801005b800052fb83000000017) dm-1 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:4  sdab       65:176 [active][ready]
 \_ 3:0:0:4  sde        8:64   [active][ready]
mpath-15 (360060e801005b800052fb83000000025) dm-15 HITACHI,DF600F
[size=20G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:18 sdap       66:144 [active][ready]
 \_ 3:0:0:18 sds        65:32  [active][ready]
mpath-14 (360060e801005b800052fb83000000024) dm-14 HITACHI,DF600F
[size=20G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:17 sdao       66:128 [active][ready]
 \_ 3:0:0:17 sdr        65:16  [active][ready]
mpath-13 (360060e801005b800052fb83000000023) dm-13 HITACHI,DF600F
[size=2.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
 \_ 5:0:0:16 sdan       66:112 [active][ready]
 \_ 3:0:0:16 sdq        65:0   [active][ready]
[root@TestDB01 ~]#

반응형
반응형
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday