[root@xwumpsdb ~]# yum -y install device-mapper-multipath
[root@xwumpsdb ~]# multipath -v2
Jan 09 10:49:42 | /etc/multipath.conf does not exist, blacklisting all
devices.
Jan 09 10:49:42 | A sample multipath.conf file is located at
Jan 09 10:49:42 |
/usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
Jan 09 10:49:42
| You can run /sbin/mpathconf to create or modify /etc/multipath.conf
复制一个配置文件到 /etc 下
[root@xwumpsdb ~]# modprobe dm-multipath 加载模块
[root@xwumpsdb ~]# service multipathd start 启动服务
[root@xwumpsdb ~]# multipath -v2 查看设备状态
Jan 09 10:53:42 | mpatha: ignoring map
create: mpathb (36782bcb00066e968000008f84f049685) undef DELL,MD36xxf
size=1.0T features='0' hwhandler='0' wp=undef
|-+- policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:0 sdb 8:16 undef ready running
|-+- policy='round-robin 0' prio=0 status=undef
| `- 1:0:1:0 sdc 8:32 undef faulty running
|-+- policy='round-robin 0' prio=1 status=undef
| `- 2:0:1:0 sde 8:64 undef ready running
`-+- policy='round-robin 0' prio=0 status=undef
`- 2:0:0:0 sdd 8:48
undef faulty running
[root@xwumpsdb ~]# fdisk -l
再使用fdisk 看,会出现多个盘符
Disk /dev/mapper/mpathbp1 doesn't contain a valid partition
table
Disk /dev/sda: 146.2 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000080
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 281 2048000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 281 17770 140483584 83 Linux
Disk /dev/sdb: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x072cb38e
Device Boot Start End Blocks Id System
/dev/sdb1 1 133674 1073736373+ 83 Linux
Disk /dev/sde: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x072cb38e
Device Boot Start End Blocks Id System
/dev/sde1 1 133674 1073736373+ 83 Linux
Disk /dev/mapper/mpathb: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x072cb38e
Device Boot Start End Blocks Id System
/dev/mapper/mpathbp1 1 133674 1073736373+ 83 Linux
Disk /dev/mapper/mpathbp1: 1099.5 GB, 1099506046464 bytes
255 heads, 63 sectors/track, 133673 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
没有评论:
发表评论