ITPub博客

首页 > Linux操作系统 > Linux操作系统 > LINUX LOG(多路径)

LINUX LOG(多路径)

原创 Linux操作系统 作者:gaopengtttt 时间:2013-09-02 21:21:16 0 删除 编辑

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/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 052-part5 -ASM
请登录后发表评论 登录
全部评论
wxh gp_22389860 <<深入理解MySQL主从原理专栏>> 发布 可加WX了解

注册时间:2008-10-13

  • 博文量
    682
  • 访问量
    2940694