LINUX LOG(多路徑)
Last login: Mon Sep 2 13:53:09 2013 from 136.3.181.78
[nocweihu@db-9 ~]$ pvs
-bash: pvs: command not found
[nocweihu@db-9 ~]$ su - root
Password:
[root@db-9 ~]# pvs
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
PV VG Fmt Attr PSize PFree
/dev/dm-4 vg1 lvm2 a- 500.00G 2.00G
/dev/dm-5 vg0 lvm2 a- 1.46T 4.95G
/dev/dm-6 dbvg lvm2 a- 200.00G 200.00G
/dev/dm-7 dbvg lvm2 a- 332.65G 228.75G
/dev/dm-8 dbvg lvm2 a- 349.99G 0
/dev/dm-9 dbvg lvm2 a- 346.11G 0
[root@db-9 ~]# vgs
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
VG #PV #LV #SN Attr VSize VFree
dbvg 4 1 0 wz--n- 1.20T 428.75G
vg0 1 1 0 wz--n- 1.46T 4.95G
vg1 1 1 0 wz--n- 500.00G 2.00G
[root@db-9 ~]# multipath -ll
mpath2 (360003ba4e8a3a0004d0f14370002ca49) dm-2 SUN,T4
[size=200G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:2 sdc 8:32 [active][ready]
mpath1 (360003ba4e8a3a0004d0f140900010d1d) dm-1 SUN,T4
[size=333G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:1 sdb 8:16 [active][ready]
mpath0 (360003ba4e8a3a0004d0f13e400030a92) dm-0 SUN,T4
[size=350G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:0 sda 8:0 [active][ready]
mpath7 (36006016047d02c006241b1cc9c0ee111) dm-5 DGC,RAID 5
[size=1.5T][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=2][active]
\_ 2:0:1:1 sdf 8:80 [active][ready]
\_ 3:0:0:1 sdj 8:144 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:2:1 sdh 8:112 [active][ready]
\_ 3:0:1:1 sdl 8:176 [active][ready]
mpath6 (36006016047d02c0044ae23c59c0ee111) dm-4 DGC,RAID 5
[size=500G][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=2][active]
\_ 2:0:2:0 sdg 8:96 [active][ready]
\_ 3:0:1:0 sdk 8:160 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:1:0 sde 8:64 [active][ready]
\_ 3:0:0:0 sdi 8:128 [active][ready]
mpath3 (360003ba4e8a3a0004d0f14de0007cb72) dm-3 SUN,T4
[size=346G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:3 sdd 8:48 [active][ready]
[root@db-9 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p3 16G 4.4G 11G 31% /
/dev/cciss/c0d0p5 72G 16G 52G 24% /opt
/dev/cciss/c0d0p1 498M 24M 450M 5% /boot
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 4.0K 0 4.0K 0% /dev/vx
/dev/mapper/vg1-lv1 491G 322G 145G 70% /oradata
/dev/mapper/dbvg-dblv
788G 207G 542G 28% /data2
/dev/mapper/vg0-lv0 1.5T 240G 1.2T 18% /data1
[root@db-9 ~]# ls -l /dev/mapper/dbvg-dblv
brw-rw---- 1 root disk 253, 10 May 30 16:01 /dev/mapper/dbvg-dblv
[root@db-9 ~]# ls -l /dev/dm*
brw-rw---- 1 root root 253, 0 May 30 15:29 /dev/dm-0
brw-rw---- 1 root root 253, 1 May 30 15:29 /dev/dm-1
brw-rw---- 1 root root 253, 2 May 30 15:29 /dev/dm-2
brw-rw---- 1 root root 253, 3 May 30 15:29 /dev/dm-3
brw-rw---- 1 root root 253, 4 May 30 16:01 /dev/dm-4
brw-rw---- 1 root root 253, 5 May 30 16:01 /dev/dm-5
brw-rw---- 1 root root 253, 6 May 30 16:01 /dev/dm-6
brw-rw---- 1 root root 253, 7 May 30 16:01 /dev/dm-7
brw-rw---- 1 root root 253, 8 May 30 16:01 /dev/dm-8
brw-rw---- 1 root root 253, 9 May 30 16:01 /dev/dm-9
[root@db-9 ~]# vgs
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
VG #PV #LV #SN Attr VSize VFree
dbvg 4 1 0 wz--n- 1.20T 428.75G
vg0 1 1 0 wz--n- 1.46T 4.95G
vg1 1 1 0 wz--n- 500.00G 2.00G
[root@db-9 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p3 16G 4.4G 11G 31% /
/dev/cciss/c0d0p5 72G 16G 52G 24% /opt
/dev/cciss/c0d0p1 498M 24M 450M 5% /boot
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 4.0K 0 4.0K 0% /dev/vx
/dev/mapper/vg1-lv1 491G 322G 145G 70% /oradata
/dev/mapper/dbvg-dblv
788G 207G 542G 28% /data2
/dev/mapper/vg0-lv0 1.5T 240G 1.2T 18% /data1
[root@db-9 ~]# lvdisplay
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
--- Logical volume ---
LV Name /dev/vg0/lv0
VG Name vg0
LV UUID UWQ65f-lQtS-qtZu-Qfjo-1cAm-3gOi-e00iww
LV Write Access read/write
LV Status available
# open 1
LV Size 1.46 TB
Current LE 382731
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:12
--- Logical volume ---
LV Name /dev/vg1/lv1
VG Name vg1
LV UUID 8FdJEH-bfbd-bsYa-lOG2-7NcK-mogK-LBF1Af
LV Write Access read/write
LV Status available
# open 1
LV Size 498.00 GB
Current LE 127488
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:11
--- Logical volume ---
LV Name /dev/dbvg/dblv
VG Name dbvg
LV UUID pR5Uyh-mI8X-3x5v-IoAj-Rf3s-kZbo-MWNyCS
LV Write Access read/write
LV Status available
# open 1
LV Size 800.00 GB
Current LE 204800
Segments 3
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:10
[root@db-9 ~]# cd /dev/dbvg
[root@db-9 dbvg]# ls -l
total 0
lrwxrwxrwx 1 root root 21 May 30 16:01 dblv -> /dev/mapper/dbvg-dblv
[root@db-9 dbvg]# pvdisplay
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
--- Physical volume ---
PV Name /dev/dm-5
VG Name vg0
PV Size 1.46 TB / not usable 4.00 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 383999
Free PE 1268
Allocated PE 382731
PV UUID pfuBX6-uvLH-McG3-ys54-eQIY-wqRP-FSI5Yv
--- Physical volume ---
PV Name /dev/dm-4
VG Name vg1
PV Size 500.00 GB / not usable 4.00 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 127999
Free PE 511
Allocated PE 127488
PV UUID HTrtZz-7XG2-O0nC-VFbx-Gggq-NbaR-tjEwFf
--- Physical volume ---
PV Name /dev/dm-8
VG Name dbvg
PV Size 350.00 GB / not usable 3.37 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 89598
Free PE 0
Allocated PE 89598
PV UUID uUbfW2-MrLC-UraD-TjQd-3B99-Ovie-CipQGR
--- Physical volume ---
PV Name /dev/dm-7
VG Name dbvg
PV Size 332.65 GB / not usable 4.02 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 85158
Free PE 58560
Allocated PE 26598
PV UUID GFqd90-w9N0-Cdvb-kPaO-qdob-XqPB-KIfTo4
--- Physical volume ---
PV Name /dev/dm-6
VG Name dbvg
PV Size 200.00 GB / not usable 1.34 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 51199
Free PE 51199
Allocated PE 0
PV UUID 83FxaG-8TrQ-IR0v-xHFe-Bm67-9o4S-C7bgK5
--- Physical volume ---
PV Name /dev/dm-9
VG Name dbvg
PV Size 346.11 GB / not usable 2.34 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 88604
Free PE 0
Allocated PE 88604
PV UUID wj3Wab-Jdo7-gmR3-9UsB-aP5e-QIK0-515X8E
[root@db-9 dbvg]# pvs
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
PV VG Fmt Attr PSize PFree
/dev/dm-4 vg1 lvm2 a- 500.00G 2.00G
/dev/dm-5 vg0 lvm2 a- 1.46T 4.95G
/dev/dm-6 dbvg lvm2 a- 200.00G 200.00G
/dev/dm-7 dbvg lvm2 a- 332.65G 228.75G
/dev/dm-8 dbvg lvm2 a- 349.99G 0
/dev/dm-9 dbvg lvm2 a- 346.11G 0
[root@db-9 dbvg]# multipath -ll
mpath2 (360003ba4e8a3a0004d0f14370002ca49) dm-2 SUN,T4
[size=200G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:2 sdc 8:32 [active][ready]
mpath1 (360003ba4e8a3a0004d0f140900010d1d) dm-1 SUN,T4
[size=333G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:1 sdb 8:16 [active][ready]
mpath0 (360003ba4e8a3a0004d0f13e400030a92) dm-0 SUN,T4
[size=350G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:0 sda 8:0 [active][ready]
mpath7 (36006016047d02c006241b1cc9c0ee111) dm-5 DGC,RAID 5
[size=1.5T][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=2][active]
\_ 2:0:1:1 sdf 8:80 [active][ready]
\_ 3:0:0:1 sdj 8:144 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:2:1 sdh 8:112 [active][ready]
\_ 3:0:1:1 sdl 8:176 [active][ready]
mpath6 (36006016047d02c0044ae23c59c0ee111) dm-4 DGC,RAID 5
[size=500G][features=1 queue_if_no_path][hwhandler=1 emc][rw]
\_ round-robin 0 [prio=2][active]
\_ 2:0:2:0 sdg 8:96 [active][ready]
\_ 3:0:1:0 sdk 8:160 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 2:0:1:0 sde 8:64 [active][ready]
\_ 3:0:0:0 sdi 8:128 [active][ready]
mpath3 (360003ba4e8a3a0004d0f14de0007cb72) dm-3 SUN,T4
[size=346G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 2:0:0:3 sdd 8:48 [active][ready]
[root@db-9 dbvg]# cd /dev/mapper/
[root@db-9 mapper]# ls -l
total 0
crw------- 1 root root 10, 63 May 30 15:29 control
brw-rw---- 1 root disk 253, 10 May 30 16:01 dbvg-dblv
brw-rw---- 1 root disk 253, 0 May 30 15:29 mpath0
brw-rw---- 1 root disk 253, 8 May 30 15:29 mpath0p1
brw-rw---- 1 root disk 253, 1 May 30 15:29 mpath1
brw-rw---- 1 root disk 253, 7 May 30 15:29 mpath1p1
brw-rw---- 1 root disk 253, 2 May 30 15:29 mpath2
brw-rw---- 1 root disk 253, 6 May 30 15:29 mpath2p1
brw-rw---- 1 root disk 253, 3 May 30 15:29 mpath3
brw-rw---- 1 root disk 253, 9 May 30 15:29 mpath3p1
brw-rw---- 1 root disk 253, 4 May 30 15:29 mpath6
brw-rw---- 1 root disk 253, 5 May 30 15:29 mpath7
brw-rw---- 1 root disk 253, 12 May 30 16:01 vg0-lv0
brw-rw---- 1 root disk 253, 11 May 30 16:01 vg1-lv1
[root@db-9 mapper]# ls -l /dev/dm*
brw-rw---- 1 root root 253, 0 May 30 15:29 /dev/dm-0
brw-rw---- 1 root root 253, 1 May 30 15:29 /dev/dm-1
brw-rw---- 1 root root 253, 2 May 30 15:29 /dev/dm-2
brw-rw---- 1 root root 253, 3 May 30 15:29 /dev/dm-3
brw-rw---- 1 root root 253, 4 May 30 16:01 /dev/dm-4
brw-rw---- 1 root root 253, 5 May 30 16:01 /dev/dm-5
brw-rw---- 1 root root 253, 6 May 30 16:01 /dev/dm-6
brw-rw---- 1 root root 253, 7 May 30 16:01 /dev/dm-7
brw-rw---- 1 root root 253, 8 May 30 16:01 /dev/dm-8
brw-rw---- 1 root root 253, 9 May 30 16:01 /dev/dm-9
[root@db-9 mapper]# fdisk -l
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 129 526304 83 Linux
/dev/cciss/c0d0p2 130 12176 49151760 82 Linux swap / Solaris
/dev/cciss/c0d0p3 12177 16192 16385280 83 Linux
/dev/cciss/c0d0p4 16193 35132 77275200 5 Extended
/dev/cciss/c0d0p5 16193 35132 77275184 83 Linux
Disk /dev/sda: 375.8 GB, 375809638400 bytes
255 heads, 63 sectors/track, 45689 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 45689 366996861 7 HPFS/NTFS
Disk /dev/sdb: 357.1 GB, 357186928640 bytes
255 heads, 63 sectors/track, 43425 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 43425 348811281 7 HPFS/NTFS
Disk /dev/sdc: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 26108 209712478+ 7 HPFS/NTFS
Disk /dev/sdd: 371.6 GB, 371640500224 bytes
255 heads, 63 sectors/track, 45182 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 45182 362924383+ 7 HPFS/NTFS
Disk /dev/sdf: 1610.6 GB, 1610612736000 bytes
255 heads, 63 sectors/track, 195812 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdf doesn't contain a valid partition table
Disk /dev/sdg: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdj: 1610.6 GB, 1610612736000 bytes
255 heads, 63 sectors/track, 195812 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdj doesn't contain a valid partition table
Disk /dev/sdk: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdk doesn't contain a valid partition table
Disk /dev/dm-0: 375.8 GB, 375809638400 bytes
255 heads, 63 sectors/track, 45689 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-0p1 1 45689 366996861 7 HPFS/NTFS
Disk /dev/dm-1: 357.1 GB, 357186928640 bytes
255 heads, 63 sectors/track, 43425 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-1p1 1 43425 348811281 7 HPFS/NTFS
Disk /dev/dm-2: 214.7 GB, 214748364800 bytes
255 heads, 63 sectors/track, 26108 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-2p1 1 26108 209712478+ 7 HPFS/NTFS
Disk /dev/dm-3: 371.6 GB, 371640500224 bytes
255 heads, 63 sectors/track, 45182 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-3p1 1 45182 362924383+ 7 HPFS/NTFS
Disk /dev/dm-4: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-4 doesn't contain a valid partition table
Disk /dev/dm-5: 1610.6 GB, 1610612736000 bytes
255 heads, 63 sectors/track, 195812 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-5 doesn't contain a valid partition table
Disk /dev/dm-6: 214.7 GB, 214745577984 bytes
255 heads, 63 sectors/track, 26107 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-6 doesn't contain a valid partition table
Disk /dev/dm-7: 357.1 GB, 357182751744 bytes
255 heads, 63 sectors/track, 43424 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-7 doesn't contain a valid partition table
Disk /dev/dm-8: 375.8 GB, 375804785664 bytes
255 heads, 63 sectors/track, 45688 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-8 doesn't contain a valid partition table
Disk /dev/dm-9: 371.6 GB, 371634568704 bytes
255 heads, 63 sectors/track, 45181 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-9 doesn't contain a valid partition table
[root@db-9 mapper]# Last login: Mon Sep 2 21:07:51 2013 from 136.3.181.78
[nocweihu@db-9 ~]$ su - root
Password:
[root@db-9 ~]# lvs
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
dblv dbvg -wi-ao 800.00G
lv0 vg0 -wi-ao 1.46T
lv1 vg1 -wi-ao 498.00G
[root@db-9 ~]# ls -l /dev/sd*
brw-r----- 1 root disk 8, 0 May 30 15:29 /dev/sda
brw-r----- 1 root disk 8, 1 May 30 15:29 /dev/sda1
brw-r----- 1 root disk 8, 16 May 30 15:29 /dev/sdb
brw-r----- 1 root disk 8, 17 May 30 15:29 /dev/sdb1
brw-r----- 1 root disk 8, 32 May 30 15:29 /dev/sdc
brw-r----- 1 root disk 8, 33 May 30 15:29 /dev/sdc1
brw-r----- 1 root disk 8, 48 May 30 15:29 /dev/sdd
brw-r----- 1 root disk 8, 49 May 30 15:29 /dev/sdd1
brw-r----- 1 root disk 8, 64 May 30 15:29 /dev/sde
brw-r----- 1 root disk 8, 80 May 30 15:29 /dev/sdf
brw-r----- 1 root disk 8, 96 May 30 15:29 /dev/sdg
brw-r----- 1 root disk 8, 112 May 30 15:29 /dev/sdh
brw-r----- 1 root disk 8, 128 May 30 15:29 /dev/sdi
brw-r----- 1 root disk 8, 144 May 30 15:29 /dev/sdj
brw-r----- 1 root disk 8, 160 May 30 15:29 /dev/sdk
brw-r----- 1 root disk 8, 176 May 30 15:29 /dev/sdl
[root@db-9 ~]# ls -l /dev/mapper/*
crw------- 1 root root 10, 63 May 30 15:29 /dev/mapper/control
brw-rw---- 1 root disk 253, 10 May 30 16:01 /dev/mapper/dbvg-dblv
brw-rw---- 1 root disk 253, 0 May 30 15:29 /dev/mapper/mpath0
brw-rw---- 1 root disk 253, 8 May 30 15:29 /dev/mapper/mpath0p1
brw-rw---- 1 root disk 253, 1 May 30 15:29 /dev/mapper/mpath1
brw-rw---- 1 root disk 253, 7 May 30 15:29 /dev/mapper/mpath1p1
brw-rw---- 1 root disk 253, 2 May 30 15:29 /dev/mapper/mpath2
brw-rw---- 1 root disk 253, 6 May 30 15:29 /dev/mapper/mpath2p1
brw-rw---- 1 root disk 253, 3 May 30 15:29 /dev/mapper/mpath3
brw-rw---- 1 root disk 253, 9 May 30 15:29 /dev/mapper/mpath3p1
brw-rw---- 1 root disk 253, 4 May 30 15:29 /dev/mapper/mpath6
brw-rw---- 1 root disk 253, 5 May 30 15:29 /dev/mapper/mpath7
brw-rw---- 1 root disk 253, 12 May 30 16:01 /dev/mapper/vg0-lv0
brw-rw---- 1 root disk 253, 11 May 30 16:01 /dev/mapper/vg1-lv1
LINUX LVM可以是分割槽也可以是物理LUN,以上是我們的生產,我們發現/data2的目錄有問題,我們檢視DF -H可以看到他來自一個LV /dev/mapper/dbvg-dblv,如果門我們要查詢可以檢視/dev/mapper/dbvg-dblv,lvdisplay可以找到/dev/dbvg/dblv實際他是dbvg-dblv的對映,這樣我們就要看這個邏輯卷下的卷組實際lvdisplay也顯示是dbvg,我們就要檢視那些分割槽是dbvg的,實際就是pvs可以找到或者pvdisplay,找到是DM6 DM7 DM8 DM9 這個時候我們就要檢視ls -l /dv/dm*找到這些裝置,DM裝置是內部通訊用的,不能給使用者用,我們用的實際就是mapper下的,我們透過氣裝置號對應/dev/mapper下的裝置發現是一些分割槽,而且是先多路徑出來的LUN然後做的PARTITION,如下:
[root@db-9 mapper]# ls -l
total 0
crw------- 1 root root 10, 63 May 30 15:29 control
brw-rw---- 1 root disk 253, 10 May 30 16:01 dbvg-dblv
brw-rw---- 1 root disk 253, 0 May 30 15:29 mpath0
brw-rw---- 1 root disk 253, 8 May 30 15:29 mpath0p1
brw-rw---- 1 root disk 253, 1 May 30 15:29 mpath1
brw-rw---- 1 root disk 253, 7 May 30 15:29 mpath1p1
brw-rw---- 1 root disk 253, 2 May 30 15:29 mpath2
brw-rw---- 1 root disk 253, 6 May 30 15:29 mpath2p1
brw-rw---- 1 root disk 253, 3 May 30 15:29 mpath3
brw-rw---- 1 root disk 253, 9 May 30 15:29 mpath3p1
brw-rw---- 1 root disk 253, 4 May 30 15:29 mpath6
brw-rw---- 1 root disk 253, 5 May 30 15:29 mpath7
brw-rw---- 1 root disk 253, 12 May 30 16:01 vg0-lv0
brw-rw---- 1 root disk 253, 11 May 30 16:01 vg1-lv1
[root@db-9 mapper]# ls -l /dev/dm*
brw-rw---- 1 root root 253, 0 May 30 15:29 /dev/dm-0
brw-rw---- 1 root root 253, 1 May 30 15:29 /dev/dm-1
brw-rw---- 1 root root 253, 2 May 30 15:29 /dev/dm-2
brw-rw---- 1 root root 253, 3 May 30 15:29 /dev/dm-3
brw-rw---- 1 root root 253, 4 May 30 16:01 /dev/dm-4
brw-rw---- 1 root root 253, 5 May 30 16:01 /dev/dm-5
brw-rw---- 1 root root 253, 6 May 30 16:01 /dev/dm-6
brw-rw---- 1 root root 253, 7 May 30 16:01 /dev/dm-7
brw-rw---- 1 root root 253, 8 May 30 16:01 /dev/dm-8
brw-rw---- 1 root root 253, 9 May 30 16:01 /dev/dm-9
最後可以看看FDISK也能看到這些DM裝置
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-772059/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux之 multipath 多路徑Linux
- linux多路徑multipath配置Linux
- Linux 下配置多路徑Linux
- linux redhat 6.5 多路徑配置LinuxRedhat
- linux 儲存多路徑軟體Linux
- linux多路徑下線上新增磁碟Linux
- 【多路徑】EMC儲存多路徑軟體配置
- Linux Multipath多路徑配置與使用案例Linux
- multipath多路徑配置
- Oracle Linux 7.8 多路徑(Multipath)+Udev繫結磁碟OracleLinuxdev
- 華為儲存多路徑
- 儲存-配置多路徑
- redhat multipath多路徑 DMRedhat
- LINUX 多路徑對映Multipath與正規表示式Linux
- Linux配置和管理裝置對映多路徑multipathLinux
- Linux環境iSCSI儲存及多路徑功能配置Linux
- linux iscsi multipath多路徑及名稱持久化配置Linux持久化
- linux_unix_aix_hp_solaris multi path多路徑配置LinuxAI
- 多路徑軟體介紹
- Linux平臺的多路徑軟體multipath的使用案例Linux
- Linux平臺上配置Oracle ASMLib和磁碟多路徑LinuxOracleASM
- UDEV掛載EMC多路徑盤dev
- 多路徑重用歸檔日誌
- IBM儲存多路徑軟體IBM
- Redhat5.4 Linux多路徑dm-multipath之multi-path詳解RedhatLinux
- 【備份恢復】 控制檔案多路徑
- 新增控制檔案成員形成多路徑
- 多路徑軟體安裝使用方法
- 多路徑時99-oracle-asmdevices.rules的配置OracleASMdev
- hds 多路徑軟體failover,failback測試AI
- rhel 6 對映多路徑(DM Multipath)配置及管理
- Verilog 多路分支語句簡介
- 批量修改vsphere共享儲存多路徑選擇策略
- Redhat7 Udev繫結(DM multipath)多路徑裝置Redhatdev
- 獲取在oracleasmlib上hds儲存的多路徑OracleASM
- centos上iscsi+multipath多路徑儲存配置手冊CentOS
- 儲存多路徑故障導致資料庫死掉案例資料庫
- Oracle ASM和多路徑軟體的相容性【轉】OracleASM