⑴、重启服务器后,我们可以看到多路径信息了:
⑵[rootRKDB ~]# ll /dev/mapper/
⑶crw------- root root , - : control
⑷brw-rw---- root disk , - : mpath
⑸brw-rw---- root disk , - : mpath
⑹[rootRKDB ~]# multipath -ll
⑺mpath (dbbf dm- TOYOU,Stor_iSUM
⑻[size=.T][features=][hwhandler=][rw]
⑼_ round-robin [prio=][active]
⑽_ ::: sdc : [active][ready]
⑾_ ::: sde : [active][ready]
⑿mpath (dbadcabda dm- TOYOU,Stor_iSUM
⒀[size=G][features=][hwhandler=][rw]
⒁_ round-robin [prio=][active]
⒂_ ::: sdb : [active][ready]
⒃_ ::: sdd : [active][ready]
⒄、通过fdisk 看可以生成了DM-/DM-两个盘,正是上面sdc/sde,sdb/sdd多路径后出来的:
⒅[rootRKDB ~]# fdisk -l
⒆Disk /dev/sda: . GB, bytes
⒇ heads, sectors/track, cylinders
⒈Units = cylinders of * = bytes
⒉Device Boot Start End Blocks Id System
⒊/dev/sda * + Linux
⒋/dev/sda Linux
⒌/dev/sda + Linux
⒍/dev/sda + Extended
⒎/dev/sda Linux
⒏/dev/sda Linux
⒐/dev/sda Linux swap / Solaris
⒑/dev/sda + Linux
⒒Disk /dev/sdb: . GB, bytes
⒓ heads, sectors/track, cylinders
⒔Units = cylinders of * = bytes
⒕Disk /dev/sdb doesn‘t contain a valid partition table
⒖Disk /dev/sdc: . GB, bytes
⒗ heads, sectors/track, cylinders
⒘Units = cylinders of * = bytes
⒙Disk /dev/sdc doesn’t contain a valid partition table
⒚Disk /dev/sdd: . GB, bytes
⒛ heads, sectors/track, cylinders
①Units = cylinders of * = bytes
②Disk /dev/sdd doesn‘t contain a valid partition table
③Disk /dev/sde: . GB, bytes
④ heads, sectors/track, cylinders
⑤Units = cylinders of * = bytes
⑥Disk /dev/sde doesn’t contain a valid partition table
⑦Disk /dev/dm-: . GB, bytes
⑧ heads, sectors/track, cylinders
⑨Units = cylinders of * = bytes
⑩Disk /dev/dm- doesn‘t contain a valid partition table
ⅠDisk /dev/dm-: . GB, bytes
Ⅱ heads, sectors/track, cylinders
ⅢUnits = cylinders of * = bytes
ⅣDisk /dev/dm- doesn’t contain a valid partition table
ⅤDisk /dev/sdf: MB, bytes
Ⅵ heads, sectors/track, cylinders
ⅦUnits = cylinders of * = bytes
ⅧDevice Boot Start End Blocks Id System
Ⅸ/dev/sdf * + b W FAT
ⅩPartition has different physical/logical endings:
㈠phys=(, , logical=(, ,
㈡[rootRKDB ~]#
㈢、我们同时也可以在/dev/mapper目录中查看到多路径映射的信息:
㈣[rootRKDB ~]# ll /dev/mapper/
㈤crw------- root root , - : control
㈥brw-rw---- root disk , - : data-data
㈦brw-rw---- root disk , - : mpath
㈧brw-rw---- root disk , - : mpath
㈨以上就是Linux系统配置多路径的教程,好像步骤比较多,但是这也是学习Linux的基础。