码迷,mamicode.com
首页 > 系统相关 > 详细

How To: Multipath Linux x86-64 Release 6.4

时间:2015-11-01 17:53:06      阅读:293      评论:0      收藏:0      [点我收藏+]

标签:

[root@node01 ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.4 (Santiago)
Release: 6.4
Codename: Santiago

 

1、安装Multipath

[root@node01 ~]# yum install device-mapper-multipath*

 

2、初始化配置

[root@node01 ~]# cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/multipath.conf
[root@node01 multipath]# service multipathd status
multipathd (pid 1035) is running...
[root@node01 multipath]# service multipathd restart
ok
Stopping multipathd daemon: [ OK ]
Starting multipathd daemon: [ OK ]

 

3、初始化默认磁盘配置

[root@node01 multipath]# multipath -ll
mpathe (14f504e46494c455273434a5465302d754d374f2d67673139) dm-5 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:3 sde 8:64 active ready running
mpathq (14f504e46494c455230484c58456c2d3245364a2d374e7974) dm-17 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:14 sdp 8:240 active ready running
mpathd (14f504e46494c455262594b796d6f2d7a5a5a522d52735630) dm-4 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:2 sdd 8:48 active ready running
mpathp (14f504e46494c455246774e5a44422d336338732d34756b6c) dm-16 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:15 sdq 65:0 active ready running
mpathc (14f504e46494c45526467507876672d4b3054732d49633937) dm-3 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:1 sdc 8:32 active ready running
mpatho (14f504e46494c45526c68627036542d356e4b4a2d47787653) dm-15 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:13 sdo 8:224 active ready running
mpathb (14f504e46494c4552354b7456426d2d4465564d2d624f4958) dm-2 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:0 sdb 8:16 active ready running
mpathn (14f504e46494c455249316b6856642d6e5a74362d3265454a) dm-14 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:12 sdn 8:208 active ready running
mpathm (14f504e46494c4552576a427a41782d63686b392d32733233) dm-13 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:11 sdm 8:192 active ready running
mpathl (14f504e46494c4552725332354f412d646f30572d66646864) dm-12 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:10 sdl 8:176 active ready running
mpathk (14f504e46494c45526177716e586f2d426d57442d31776f48) dm-11 OPNFILER,VIRTUAL-DISK
size=4.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:9 sdk 8:160 active ready running
mpathj (14f504e46494c45523442545747392d436e656e2d53523049) dm-10 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:8 sdj 8:144 active ready running
mpathi (14f504e46494c4552504e55376c792d554271462d72496f4b) dm-9 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:7 sdi 8:128 active ready running
mpathh (14f504e46494c45524270706d6a4d2d31786b6c2d78576348) dm-8 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:5 sdg 8:96 active ready running
mpathg (14f504e46494c455234795462646c2d684d64502d566d3244) dm-7 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:6 sdh 8:112 active ready running
mpathf (14f504e46494c45524f38497847642d7761714e2d38703763) dm-6 OPNFILER,VIRTUAL-DISK
size=1.0G features=0 hwhandler=0 wp=rw
`-+- policy=round-robin 0 prio=1 status=active
`- 3:0:0:4 sdf 8:80 active ready running

 

4、多节点统一配置
多节点共享存储环境下,可以下面的文件统一磁盘路径,确保每一个节点的磁盘对应统一。
具体就是在/etc/multipath/bindings文件中指定磁盘和wwid的对应关系,免除多节点下的磁盘映射混乱。
需要重新刷新multipath。

[root@node01 ~]# more /etc/multipath/bindings 
# Multipath bindings, Version : 1.0
# NOTE: this file is automatically maintained by the multipath program.
# You should not need to edit this file in normal circumstances.
#
# Format:
# alias wwid
#
mpatha 1ATA VBOX HARDDISK VB92c04338-06c91aad 
mpathb 14f504e46494c4552354b7456426d2d4465564d2d624f4958
mpathc 14f504e46494c45526467507876672d4b3054732d49633937
mpathd 14f504e46494c455262594b796d6f2d7a5a5a522d52735630
mpathe 14f504e46494c455273434a5465302d754d374f2d67673139
mpathf 14f504e46494c45524f38497847642d7761714e2d38703763
mpathg 14f504e46494c455234795462646c2d684d64502d566d3244
mpathh 14f504e46494c45524270706d6a4d2d31786b6c2d78576348
mpathi 14f504e46494c4552504e55376c792d554271462d72496f4b
mpathj 14f504e46494c45523442545747392d436e656e2d53523049
mpathk 14f504e46494c45526177716e586f2d426d57442d31776f48
mpathl 14f504e46494c4552725332354f412d646f30572d66646864
mpathm 14f504e46494c4552576a427a41782d63686b392d32733233
mpathn 14f504e46494c455249316b6856642d6e5a74362d3265454a
mpatho 14f504e46494c45526c68627036542d356e4b4a2d47787653
mpathp 14f504e46494c455246774e5a44422d336338732d34756b6c
mpathq 14f504e46494c455230484c58456c2d3245364a2d374e7974

 

How To: Multipath Linux x86-64 Release 6.4

标签:

原文地址:http://www.cnblogs.com/syksky/p/4928080.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!