deanxie00 发表于 2013-07-03 22:45

oracle rac multipath多路径问题

linux上安装oracle rac,配置存储时,用linux自带的multipath多路径软件,出现两个节点路径不一致问题:
一个节点上multipath -ll
mpath2 (360a9800044314f6b693f44323877654d) dm-0 NETAPP,LUN
size=1.5T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| `- 0:0:0:2sdb      8:16active readyrunning
`-+- policy='round-robin 0' prio=1 status=enabled
`- 1:0:0:2sdh      8:112 active readyrunning
ocrdg (360a9800044314f6b693f443238776549) dm-4 NETAPP,LUN
size=6.0G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| `- 0:0:0:11 sdf      8:80active readyrunning
`-+- policy='round-robin 0' prio=1 status=enabled
`- 1:0:0:11 sdl      8:176 active readyrunning
mpath6 (360a9800044314f6b693f443238776553) dm-5 NETAPP,LUN
size=1.5T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| `- 0:0:0:5sde      8:64active readyrunning
`-+- policy='round-robin 0' prio=1 status=enabled
`- 1:0:0:5sdk      8:160 active readyrunning
mpath5 (360a9800044314f6b693f443238776551) dm-3 NETAPP,LUN
size=1.5T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| `- 0:0:0:4sdd      8:48active readyrunning
`-+- policy='round-robin 0' prio=1 status=enabled
`- 1:0:0:4sdj      8:144 active readyrunning
mpath4 (360a9800044314f6b693f44323877654f) dm-2 NETAPP,LUN
size=1.5T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| `- 0:0:0:3sdc      8:32active readyrunning
`-+- policy='round-robin 0' prio=1 status=enabled
`- 1:0:0:3sdi      8:128 active readyrunning
mpath3 (360a9800044314f6b693f44323877654b) dm-1 NETAPP,LUN
size=1.5T features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=4 status=active
| `- 0:0:0:1sda      8:0   active readyrunning
`-+- policy='round-robin 0' prio=1 status=enabled
`- 1:0:0:1sdg      8:96active readyrunning
另外一个节点上,mpth2对应的是dm-1,剩下的也是不一致的,求解决方法

tianhao_1983 发表于 2013-07-05 16:15

我之前也遇到过了。通过以下方法你可以试一试:
配置文件路径:/etc/sysconfig/oracleasm-_dev_oracleasm 。每个节点都要配置。

查询Oracle asm lib扫描到的磁盘是不是多路径磁盘,确保是从多路径去访问:
oracleasm querydisk -d XXXXX

# ORACLEASM_ENABELED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=oracle

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=dba

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER="mapper/mpath"

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE="sd"
页: [1]
查看完整版本: oracle rac multipath多路径问题