aix io pacing oracle,aix优化记录

DMS避免优化

DMS(deadman switch)是用来描述系统kernel extension用的,它可以在系统崩溃前down掉系统,并产生dump文件,以供日后检查。 集群中为了正确处理节点失败,需要判断节点是否死掉。这期间deadman switch使用失败探测参数设置的相关参数进行判断,如果i/o memory等有问题都可能使集群管理器不能正常处理节点通讯,而错误地使集群节点死掉

DMS 的起因:

DMS起作用的原因主要有以下几点:

a. 某种应用程序的优先级大于clstrmgr deamon , 导致clstrmgr无法正常reset DMS计数器。

b. 在系统上存在大量IO 操作, 导致cpu 没有时间相应clstrmgr deamon .

c. 内存泄漏或溢出问题

d. 大量的系统错误日志活动, 如: (token-ring beaconing 问题)

优化调整:

1)调整系统的io pacing 高低水印

官方推荐值:

HIGH water mark for pending write I/Os per file[33]

LOW water mark for pending write I/Os per file[24]

现系统值:

HIGH water mark for pending write I/Os per file[8193]

LOW water mark for pending write I/Os per file[4096]

2)调快cpu同步syncd频率,(系统默认60秒)

可见当前系统ha没有优化此频率。加快同步的频率,降低同步的IO量。

现系统值:60s

官方推荐值:10s

3)减慢ha心跳线诊断频率FDR(系统默认normal)

当系统有大io量,或者内存不够情况下,无法响应ha心跳,那么心跳检测的频率越快,就会加速节点预告死亡。

现系统值:normal

推荐优化值:slow

网络性能优化

当前网络参数值:

udp_sendspace = 65536

udp_recvspace = 262144

tcp_recvspace = 262144

tcp_sendspace = 262144

sb_max = 1048576

ipqmaxlen = 100

官方建议udp_sendspace = 65536已足够,但是udp_recvspace推荐为udp_sendspace的10倍。

sb_max = 1048576

因此需要修改主机网络参数

no -p -o udp_sendspace =655360动态修改重启下inted进程就可以。lun磁盘的锁定机制reserve_lock。

现二台主机的powerdisk,reserve_lock都是yes。同事看到主机内disk运行报错不断。

怀疑当时安装rac的时候,只是从网上下载的文档,并没有看官方文档,害人不浅。oracle官方文档说过:在HACMP+RAC环境中,PV的这个属性reserve_lock(reserve_policy)必须为否,以提供多节点的并发访问;这个案例业内不知道有太多例子了,如果不设置后果会不可预计。摘取官方原话:To enable simultaneous access to a disk device from multiple nodes, you must set the appropriate Object Data Manager (ODM) attribute listed in the following table to the value shown, depending on the disk type:

Disk Type Attribute Value

SSA, FAStT, or non-MPIO-capable disks reserve_lock no

ESS, EMC, HDS, CLARiiON, or MPIO-capable disks

reserve_policy no_reserve

To determine whether the attribute has the correct value, enter a command similar to the following on all cluster nodes for each disk device that you want to use:

# /usr/sbin/lsattr -E -l hdiskn

If the required attribute is not set to the correct value on any node, then enter a command similar to one of the following on that node:

■ SSA and FAStT devices

# /usr/sbin/chdev -l hdiskn -a reserve_lock=no

■ESS, EMC, HDS, CLARiiON, and MPIO-capable devices

# /usr/sbin/chdev -l hdiskn -a reserve_policy=no_reserve

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值