免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2639 | 回复: 0
打印 上一主题 下一主题

在AIX系统上使用ASM需要注意磁盘不要有PVID [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-23 01:20 |只看该作者 |倒序浏览
使用了PVID,在创建ASM的时候,会清除掉PVID,而当系统重启后,操作系统会重写PVID,这样会导致ASM磁盘失效

如果已经使用了带有PVID的磁盘,可以参考MOS上这篇文档进行处理。

Corrective Action for Diskgroup with Disks Having PVIDs [ID 750016.1]
  修改时间 19-APR-2011     类型 HOWTO     状态 PUBLISHED  

In this Document
  Goal
  Solution
  References

Applies to: Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.2 - Release: 10.1 to 11.2
IBM AIX on POWER Systems (64-bit)
IBM AIX Based Systems (64-bit) Goal You have created a diskgroup with disks having PVID and the diskgroup is in use. There is no diskgroup metadata corruption reported yet. You now know that ASM Disk should not have PVID as alerted in MetaLink Note 353761.1

This note will give the steps to clear the PVID of these ASM Disks.
Solution When the PVID is set to a disk in a volume group, the PVID is stored in two locations. In Physical disk header ( within first 4K )and in AIX's system object database, called ODM ( Object Data Manager ).

When the diskgroup is created, the disk header information of PVID is overwritten. However, with reboot the OS, from ODM, AIX might try to restore the PVID information onto the disk header, there by destroying the ASM metadata. So we need to run the following commands to update the ODM:

1] Do not reboot any node.

2.1] Drop one disk at a time from the diskgroup.

2.2] Clear the PVID for the disk

# chdev -l hdisk5 -a pv=clear

Run this on ALL the nodes in case of RAC.

2.3] Check the disk does not have the PVID from ALL the nodes

# lspv

2.4] Add the disk back to the diskgroup

2.5] Do this for all the disks having PVID in the diskgroup, one by one. Take care that the rebalance is
complete from the drop/add disk command before going for the next disk.

OR

3] This needs downtime:

3.1] Take 'dd' backup of the disk headers

# dd if=/dev/hdisk5 of=/tmp/d5.txt bs=1024 count=1024

3.2] Shutdown ASM instance ( on ALL the nodes in RAC setup ).

3.3] Clear the PVID

# chdev -l hdisk5 -a pv=clear

Run this on ALL the nodes in case of RAC.

3.4] Check the disk does not have the PVID from ALL the nodes

# lspv

3.5] Start the ASM Instance(s) and mount the diskgroup on ALL the nodes


WARNING:
This last command overrides the content of the disk header and so could be destructive if not correctly used! If you have any doubt, please contact the Oracle Support before any action.
References NOTE:353761.1 - Assigning a Physical Volume ID (PVID) To An Existing ASM Disk Corrupts the ASM Disk Header

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP