[root@sjglgj ~]# multipath -F 清除所有映射磁盘
[root@sjglgj ~]# multipath -v2 重新格式化扫盘
[root@sjglgj ~]# multipath -l
mpath2 (360060e8005949a000000949a00000001) dm-1 HITACHI,OPEN-V*3
[size=511G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:1 sdc 8:32 [active][undef]
\_ 6:0:0:1 sdm 8:192 [active][undef]
mpath1 (360060e8005949a000000949a00000000) dm-0 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:0 sdb 8:16 [active][undef]
\_ 6:0:0:0 sdl 8:176 [active][undef]
mpath9 (360060e8005949a000000949a00000051) dm-8 HITACHI,OPEN-V
[size=293G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:10 sdj 8:144 [active][undef]
\_ 6:0:0:10 sdt 65:48 [active][undef]
mpath8 (360060e8005949a000000949a00000009) dm-7 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:9 sdi 8:128 [active][undef]
\_ 6:0:0:9 sds 65:32 [active][undef]
mpath7 (360060e8005949a000000949a00000008) dm-6 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:8 sdh 8:112 [active][undef]
\_ 6:0:0:8 sdr 65:16 [active][undef]
mpath6 (360060e8005949a000000949a00000007) dm-5 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:7 sdg 8:96 [active][undef]
\_ 6:0:0:7 sdq 65:0 [active][undef]
mpath5 (360060e8005949a000000949a00000006) dm-4 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:6 sdf 8:80 [active][undef]
\_ 6:0:0:6 sdp 8:240 [active][undef]
mpath4 (360060e8005949a000000949a00000005) dm-3 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:5 sde 8:64 [active][undef]
\_ 6:0:0:5 sdo 8:224 [active][undef]
mpath10 (360060e8005949a000000949a00000052) dm-9 HITACHI,OPEN-V
[size=293G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:11 sdk 8:160 [active][undef]
\_ 6:0:0:11 sdu 65:64 [active][undef]
mpath3 (360060e8005949a000000949a00000004) dm-2 HITACHI,OPEN-V
[size=170G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 5:0:0:4 sdd 8:48 [active][undef]
\_ 6:0:0:4 sdn 8:208 [active][undef]
[root@sjglgj host6]# ll /dev/disk/by-id
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea -> ../../sda
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 04-29 13:02 scsi-3600605b0026d1a50149660c81dc245ea-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000000 -> ../../sdb
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000001 -> ../../sdc
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000004 -> ../../sdd
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000005 -> ../../sde
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000006 -> ../../sdp
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000007 -> ../../sdg
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000008 -> ../../sdh
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000009 -> ../../sdi
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000051 -> ../../sdj
lrwxrwxrwx 1 root root 9 04-29 13:02 scsi-360060e8005949a000000949a00000052 -> ../../sdk
[root@sjglgj host6]# ll /dev/disk/by-path
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:00:1f.5-scsi-0:0:0:0 -> ../../scd0
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 04-29 13:02 pci-0000:04:00.0-scsi-0:2:0:0-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0000000000000000 -> ../../sdl
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0001000000000000 -> ../../sdm
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0004000000000000 -> ../../sdn
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0005000000000000 -> ../../sdo
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0006000000000000 -> ../../sdp
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0007000000000000 -> ../../sdq
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0008000000000000 -> ../../sdr
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x0009000000000000 -> ../../sds
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x000a000000000000 -> ../../sdt
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:05:00.0-fc-0x50060e8005949a12:0x000b000000000000 -> ../../sdu
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0000000000000000 -> ../../sdb
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0001000000000000 -> ../../sdc
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0004000000000000 -> ../../sdd
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0005000000000000 -> ../../sde
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0006000000000000 -> ../../sdf
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0007000000000000 -> ../../sdg
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0008000000000000 -> ../../sdh
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x0009000000000000 -> ../../sdi
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x000a000000000000 -> ../../sdj
lrwxrwxrwx 1 root root 9 04-29 13:02 pci-0000:06:00.0-fc-0x50060e8005949a02:0x000b000000000000 -> ../../sdk
[root@sjglgj ~]# cd /dev/mapper
[root@sjglgj mapper]# ls
control mpath1 mpath10 mpath2 mpath3 mpath4 mpath5 mpath6 mpath7 mpath8 mpath9
[root@sjglgj mapper]# ls -ltr
?昏. 0
crw------- 1 root root 10, 63 04-29 13:02 control
brw-rw---- 1 root disk 253, 0 04-29 13:02 mpath1
brw-rw---- 1 root disk 253, 3 04-29 13:02 mpath4
brw-rw---- 1 root disk 253, 2 04-29 13:02 mpath3
brw-rw---- 1 root disk 253, 1 04-29 13:02 mpath2
brw-rw---- 1 root disk 253, 4 04-29 13:02 mpath5
brw-rw---- 1 root disk 253, 8 04-29 13:02 mpath9
brw-rw---- 1 root disk 253, 7 04-29 13:02 mpath8
brw-rw---- 1 root disk 253, 6 04-29 13:02 mpath7
brw-rw---- 1 root disk 253, 5 04-29 13:02 mpath6
brw-rw---- 1 root disk 253, 9 04-29 13:02 mpath10
[root@sjglgj mapper]# cd /dev/mpath
[root@sjglgj mpath]# ls -ltr
?昏. 0
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath4 -> ../dm-3
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath3 -> ../dm-2
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath2 -> ../dm-1
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath5 -> ../dm-4
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath6 -> ../dm-5
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath7 -> ../dm-6
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath9 -> ../dm-8
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath10 -> ../dm-9
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath8 -> ../dm-7
lrwxrwxrwx 1 root root 7 04-29 13:02 mpath1 -> ../dm-0
[root@sjglgj ~]# fdisk -l
Disk /dev/sda: 298.9 GB, 298999349248 bytes
255 heads, 63 sectors/track, 36351 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 83 Linux
/dev/sda2 2612 5222 20972857+ 83 Linux
/dev/sda3 5223 6527 10482412+ 82 Linux swap / Solaris
/dev/sda4 6528 36351 239561280 5 Extended
/dev/sda5 6528 7832 10482381 83 Linux
/dev/sda6 7833 9137 10482381 83 Linux
/dev/sda7 9138 10442 10482381 83 Linux
/dev/sda8 10443 11747 10482381 83 Linux
Disk /dev/sdb: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 548.9 GB, 548931502080 bytes
255 heads, 63 sectors/track, 66737 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdd: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sde: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdf: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdg: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdh: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdi: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdj: 314.5 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdk: 314.5 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdl: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdm: 548.9 GB, 548931502080 bytes
255 heads, 63 sectors/track, 66737 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdn: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdo: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdp: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdq: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdr: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sds: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdt: 314.5 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdu: 314.5 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-0: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-1: 548.9 GB, 548931502080 bytes
255 heads, 63 sectors/track, 66737 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-2: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-3: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-4: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-5: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-6: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-7: 182.9 GB, 182977167360 bytes
255 heads, 63 sectors/track, 22245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-8: 314.5 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/dm-9: 314.5 GB, 314572800000 bytes
255 heads, 63 sectors/track, 38244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System