Linux下配置多路径

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

  6、重启服务器后,我们可以看到多路径信息了:

  [plain]

  [root@RKDB01 ~]# ll /dev/mapper/

  总计 0

  crw——- 1 root root 10, 60 11-05 22:35 control

  brw-rw—- 1 root disk 253, 0 11-05 22:35 mpath1

  brw-rw—- 1 root disk 253, 1 11-05 22:35 mpath2

  [root@RKDB01 ~]# multipath -ll

  mpath2 (3600d02310000011b76128b9c63138cf4) dm-1 TOYOU,NetStor_iSUM510

  [size=3.2T][features=0][hwhandler=0][rw]

  \_ round-robin 0 [prio=2][active]

  \_ 1:0:0:1 sdc 8:32 [active][ready]

  \_ 1:0:1:1 sde 8:64 [active][ready]

  mpath1 (3600d02310000011b16a5d57c6a1bd99a) dm-0 TOYOU,NetStor_iSUM510

  [size=20G][features=0][hwhandler=0][rw]

  \_ round-robin 0 [prio=2][active]

  \_ 1:0:0:0 sdb 8:16 [active][ready]

  \_ 1:0:1:0 sdd 8:48 [active][ready]

  7、通过fdisk 看可以生成了DM-0/DM-1两个盘,正是上面sdc/sde,sdb/sdd多路径后出来的:

  [plain]

  [root@RKDB01 ~]# fdisk -l

  Disk /dev/sda: 299.4 GB, 299439751168 bytes

  255 heads, 63 sectors/track, 36404 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot Start End Blocks Id System

  /dev/sda1 * 1 38 305203+ 83 Linux

  /dev/sda2 39 13092 104856255 83 Linux

  /dev/sda3 13093 19619 52428127+ 83 Linux

  /dev/sda4 19620 36404 134825512+ 5 Extended

  /dev/sda5 19620 26146 52428096 83 Linux

  /dev/sda6 26147 28757 20972826 83 Linux

  /dev/sda7 28758 30324 12586896 82 Linux swap / Solaris

  /dev/sda8 30325 36404 48837568+ 83 Linux

  Disk /dev/sdb: 21.4 GB, 21474836480 bytes

  255 heads, 63 sectors/track, 2610 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/sdb doesn’t contain a valid partition table

  Disk /dev/sdc: 3568.4 GB, 3568429957120 bytes

  255 heads, 63 sectors/track, 433836 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/sdc doesn’t contain a valid partition table

  Disk /dev/sdd: 21.4 GB, 21474836480 bytes

  255 heads, 63 sectors/track, 2610 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/sdd doesn’t contain a valid partition table

  Disk /dev/sde: 3568.4 GB, 3568429957120 bytes

  255 heads, 63 sectors/track, 433836 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/sde doesn’t contain a valid partition table

  Disk /dev/dm-0: 21.4 GB, 21474836480 bytes

  255 heads, 63 sectors/track, 2610 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/dm-0 doesn’t contain a valid partition table

  Disk /dev/dm-1: 3568.4 GB, 3568429957120 bytes

  255 heads, 63 sectors/track, 433836 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Disk /dev/dm-1 doesn’t contain a valid partition table

  Disk /dev/sdf: 4009 MB, 4009754624 bytes

  255 heads, 63 sectors/track, 487 cylinders

  Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot Start End Blocks Id System

  /dev/sdf4 * 1 488 3915744+ b W95 FAT32

  Partition 4 has different physical/logical endings:

  phys=(486, 254, 63) logical=(487, 125, 22)

  [root@RKDB01 ~]#

  8、我们同时也可以在/dev/mapper目录中查看到多路径映射的信息:

  [plain]

  [root@RKDB01 ~]# ll /dev/mapper/

  总计 0

  crw——- 1 root root 10, 60 11-06 00:49 control

  brw-rw—- 1 root disk 253, 2 11-06 00:49 data-data001

  brw-rw—- 1 root disk 253, 0 11-06 00:49 mpath1

  brw-rw—- 1 root disk 253, 1 11-06 00:49 mpath2

[1][2]

只想到处流浪人生就像一场旅行,不必在乎目的地,

Linux下配置多路径

相关文章:

你感兴趣的文章:

标签云: