标签:resource dg grid 自动 diskgroup 磁盘 挂载 asm ora
磁盘组不能自动挂载的
原因有2:
1 、asm_diskgroups 不能为空,需要配置所有的磁盘组
2、磁盘组的属性AUTO_START应该设置为always,该问题是bug 8663101 : 修改用 crsctl modify resource ora.DATA.dg -attr AUTO_START=always,查询用:crsctl stat res ora.OCR.dg -p
[grid@node1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 25 06:32:37 2017
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> show parameter disk
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups string ARCH, TEST, DATA, OCR
asm_diskstring string /dev/asm*, ORCL:ARCHDISK, ORCL
:DATADISK, ORCL:OVDISK
SQL> create pfile='/tmp/a.txt' from spfile;
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
[grid@node1 ~]$ more /tmp/a.txt
+ASM2.__oracle_base='/u01/app'#ORACLE_BASE set from in memory value
+ASM1.__oracle_base='/u01/app/'#ORACLE_BASE set from in memory value
+ASM1.asm_diskgroups='ARCH','TEST','DATA','OCR'#Manual Mount
+ASM2.asm_diskgroups='ARCH','DATA','TEST','OCR'#Manual Mount
*.asm_diskstring='/dev/asm*','ORCL:ARCHDISK','ORCL:DATADISK','ORCL:OVDISK'
*.asm_power_limit=1
*.diagnostic_dest='/u01/app'
*.instance_type='asm'
*.large_pool_size=12M
*.remote_login_passwordfile='EXCLUSIVE'
[grid@node1 ~]$
[root@rac1 ~]# srvctl start diskgroup -g data -n "rac2"
[root@rac1 ~]# srvctl start diskgroup -g oradata -n "rac2"
[root@rac1 ~]# srvctl start diskgroup -g oradata -n "rac1"
[root@rac1 ~]# su - grid
[grid@rac1:/home/grid]$crsctl modify resource ora.DATA.dg -attr AUTO_START=always
[grid@rac1:/home/grid]$crsctl modify resource ora.ORADATA.dg -attr AUTO_START=always
[grid@rac1:/home/grid]$crsctl modify resource ora.ARCH.dg -attr AUTO_START=always
[grid@rac1:/home/grid]$crsctl modify resource ora.OCR.dg -attr AUTO_START=always
多次测试 所有磁盘均能正常挂载
该解决办法出自 ID:1065158.1 问题原因可能涉及到11.2.0.1的一个BUG bug 8663101 该BUG 在12.2.0.2已经被修复
下一步 该升级数据库了
1. Manually start the diskgroup: srvctl start diskgroup -g <dg_name> [-n "<node_list>"]
or
2. Modify the attribute AUTO_START to "always"
crsctl modify resource ora.<diskgroup>.dg -attr AUTO_START=always
Diskgroup resource shows status offline after restart even it is mounted in ASM instance (文档 ID 1065158.1) | 转到底部 |
In this Document Symptoms Changes Cause Solution References APPLIES TO:Oracle Database - Enterprise Edition - Version 11.2.0.1.0 and later SYMPTOMSAfter restart the 11.2 HAS stack, the diskgroup (.dg) resource is showing "OFFLINE" status, but diskgroup is mounted in the ASM instance. $ crsctl stat res ora.DATA.dg
SQL> conn / as sysdba CHANGESFrom the crsd.log: 2010-02-05 16:05:09.988: [ A**][56] ora.DATA.dg host1 1 received state from probe request. Old state = UNKNOWN, New state = OFFLINE
2010-02-05 16:05:09.799: [ A**][9] ora.DATA.dg host1 1 state changed from: UNKNOWN to: OFFLINE CAUSEThis is caused by an unpublished bug 8663101 11.2 DG RES OFFLINE, BUT DISKGROUP MOUNTED AFTER RESTART HAS STACK SOLUTIONThe bug has been fixed in 11.2.0.2 patchset. 1. Manually start the diskgroup: REFERENCES
|
标签:resource,dg,grid,自动,diskgroup,磁盘,挂载,asm,ora 来源: https://blog.51cto.com/lhrbest/2698737
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。