免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4042 | 回复: 1

[RAC] oracle rac multipath多路径问题 [复制链接]

论坛徽章:
0
发表于 2013-07-03 22:45 |显示全部楼层
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:2  sdb        8:16  active ready  running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 1:0:0:2  sdh        8:112 active ready  running
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:80  active ready  running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 1:0:0:11 sdl        8:176 active ready  running
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:5  sde        8:64  active ready  running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 1:0:0:5  sdk        8:160 active ready  running
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:4  sdd        8:48  active ready  running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 1:0:0:4  sdj        8:144 active ready  running
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:3  sdc        8:32  active ready  running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 1:0:0:3  sdi        8:128 active ready  running
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:1  sda        8:0   active ready  running
`-+- policy='round-robin 0' prio=1 status=enabled
  `- 1:0:0:1  sdg        8:96  active ready  running
另外一个节点上,mpth2对应的是dm-1,剩下的也是不一致的,求解决方法

论坛徽章:
0
发表于 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"
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP