otedisk OCR 文件管理故障处理

otedisk OCR 文件管理

votedisk 表决票完成步骤移动

增加votedisk
crsctl add css votedisk
移动VOTEDISK
[grid@his1 ~]$ crsctl replace votedisk +ORADATA
Successful addition of voting disk 1872e8b75a044f7ebff196ac40dcc659.
Successful deletion of voting disk 6977382452284f23bff811784304398d.
Successfully replaced voting disk group with +ORADATA.
CRS-4266: Voting file(s) successfully replaced

[grid@his1 ~]$ crsctl query css votedisk;
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   1872e8b75a044f7ebff196ac40dcc659 (/dev/oracleasm/disks/DATVOL) [ORADATA]
Located 1 voting disk(s).
votedisk放在asm磁盘组上,我的的asm磁盘只有一份没有办法增加 删除votedisk操作,想要增加冗余份数,只能通过增加磁盘组的disk来实现,即依赖于磁盘组的冗余

ocr要完成步骤
Synopsis:
        ocrconfig [option]
        option:
                [-local] -export
                                                    - Export OCR/OLR contents to a file
                [-local] -import          - Import OCR/OLR contents from a file
                [-local] -upgrade [ []]
                                                    - Upgrade OCR from previous version
                -downgrade [-version ]
                                                    - Downgrade OCR to the specified version
                [-local] -backuploc        - Configure OCR/OLR backup location
                [-local] -showbackup [auto|manual]  - Show OCR/OLR backup information
                [-local] -manualbackup              - Perform OCR/OLR backup
                [-local] -restore         - Restore OCR/OLR from physical backup
                -replace -replacement
                                                    - Replace a OCR device/file with
                -add                      - Add a new OCR device/file
                -delete                   - Remove a OCR device/file
                -overwrite                          - Overwrite OCR configuration on disk
                -repair -add | -delete | -replace -replacement
                                                    - Repair OCR configuration on the local node
                -help                               - Print out this help information
导出ocr文件内容
[root@his1 bin]# ./ocrconfig -export /votedisk/ocr.log  

导入ocr文件内容
[root@his1 bin]# ./ocrconfig -import /votedisk/ocr.log 

在线增加ocr文件
[root@his1 bin]# ./ocrconfig -add +oradata              

[root@his1 bin]# ./crscheck
-bash: ./crscheck: No such file or directory
[root@his1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2856
         Available space (kbytes) :     259264
         ID                       : 1198380549
         Device/File Name         :    +ORACRS
                                    Device/File integrity check succeeded
         Device/File Name         :   +oradata

在线ocr文件移动
[root@his1 bin]# ./ocrconfig -replace +oradata -replacement +oraarch

 [root@his1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2856
         Available space (kbytes) :     259264
         ID                       : 1198380549
         Device/File Name         :    +ORACRS
                                    Device/File integrity check succeeded
         Device/File Name         :   +oraarch
                                    Device/File integrity check succeeded
在线ocr文件删除
[root@his1 bin]# ./ocrconfig -delete +oraarch  

[root@his1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2856
         Available space (kbytes) :     259264
         ID                       : 1198380549
         Device/File Name         :    +ORACRS

从备份恢复OCR文件给
[root@his1 bin]# ./ocrconfig -restore /app/grid/product/11.2.0/grid/cdata/his-scan/backup00.ocr


查看OCR文件自动备份
[root@his1 bin]# ./ocrconfig -showbackup

his1     2014/02/27 11:49:42     /app/grid/product/11.2.0/grid/cdata/his-scan/backup00.ocr

his1     2014/02/27 07:49:41     /app/grid/product/11.2.0/grid/cdata/his-scan/backup01.ocr

his1     2014/02/27 03:49:41     /app/grid/product/11.2.0/grid/cdata/his-scan/backup02.ocr

his1     2014/02/26 03:49:39     /app/grid/product/11.2.0/grid/cdata/his-scan/day.ocr

his1     2014/02/17 19:49:07     /app/grid/product/11.2.0/grid/cdata/his-scan/week.ocr
PROT-25: Manual backups for the Oracle Cluster Registry are not available
 
OCR表决盘故障处理

强制停止CRS服务

[root@rac1 ~]# crsctl stop crs -f

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'

CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'

CRS-4548: Unable to connect to CRSD

CRS-2675: Stop of 'ora.crsd' on 'rac1' failed

CRS-2679: Attempting to clean 'ora.crsd' on 'rac1'

CRS-4548: Unable to connect to CRSD

CRS-2678: 'ora.crsd' on 'rac1' has experienced an unrecoverable failure

CRS-0267: Human intervention required to resume its availability.

CRS-2795: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has failed

CRS-4687: Shutdown command has completed with error(s).

发现无法停止,这里我耽误了很长时间,禁用crs自动启动然后reboot电脑也不行,最后找到是由于

BUG:9011779 所致,通过下面的解决了

kill these processes: ohasd, gipcd, mdnsd, gpnpd, evmd, and crsd

然后以-excl的方式启动Start Oracle Clusterware in exclusive mode,这里与10g不同

[root@rac1 ~]# crsctl start crs -excl -nocrs

CRS-4123: Oracle High Availability Services has been started.

CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'

CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'

CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'

CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded

CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded

CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'

CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'

CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded

CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'

CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'

CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'rac1'

CRS-2679: Attempting to clean 'ora.diskmon' on 'rac1'

CRS-2681: Clean of 'ora.diskmon' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'

CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded

CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'

CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac1'

CRS-2676: Start of 'ora.drivers.acfs' on 'rac1' succeeded

CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'rac1'

CRS-2676: Start of 'ora.asm' on 'rac1' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'rac1'

CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded

恢复COR磁盘 前面已经列出了备份在RAC2 /u01/grid/product/11.2.0/cdata/rac-cluster下

SQL> create diskgroup OCRDATA normal redundancy disk 'ORCL:OCR1','ORCL:OCR2','ORCL:OCR3' attribute 'COMPATIBLE.ASM'='11.2';

Diskgroup created.

root@rac1 rac1]# ocrconfig -restore /tmp/backup00.ocr

创建参数文件

SQL> create spfile='+OCRDATA' from pfile='/tmp/asmbak.ora';

File created.

执行ocrcheck命令发现OCR磁盘已经恢复

[root@rac1 rac1]# ocrcheck

Status of Oracle Cluster Registry is as follows :

Version : 3

Total space (kbytes) : 262120

Used space (kbytes) : 2720

Available space (kbytes) : 259400

ID : 2026562699

Device/File Name : +OCRDATA

Device/File integrity check succeeded

Device/File not configured

Device/File not configured

Device/File not configured

Device/File not configured

Cluster registry integrity check succeeded

Logical corruption check succeeded

查看votedisk为空

[root@rac1 rac1]# crsctl query css votedisk

Located 0 voting disk(s).

votedisk恢复

[root@rac1 rac1]# crsctl replace votedisk +OCRDATA

Successful addition of voting disk afdbd9a7bce04fd9bfca848161db4ee5.

Successful addition of voting disk 939a58464f5a4f6cbfade37e83b7c729.

Successful addition of voting disk 3fc60f96eeca4faebf4b44700fc74897.

Successfully replaced voting disk group with +OCRDATA.

CRS-4266: Voting file(s) successfully replaced

[root@rac1 rac1]# crsctl query css votedisk

## STATE File Universal Id File Name Disk group

-- ----- ----------------- --------- ---------

1. ONLINE afdbd9a7bce04fd9bfca848161db4ee5 (ORCL:OCR1) [OCRDATA]

2. ONLINE 939a58464f5a4f6cbfade37e83b7c729 (ORCL:OCR2) [OCRDATA]

3. ONLINE 3fc60f96eeca4faebf4b44700fc74897 (ORCL:OCR3) [OCRDATA]

Located 3 voting disk(s).

重启crs服务

[root@rac1 rac1]# crsctl stop crs -f

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'

CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'

CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'

CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'

CRS-2673: Attempting to stop 'ora.asm' on 'rac1'

CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'

CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'

CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded

CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded

CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded

CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded

CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded

CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'

CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded

CRS-2673: Attempting to stop 'ora.diskmon' on 'rac1'

CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'

CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded

CRS-2677: Stop of 'ora.diskmon' on 'rac1' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed

CRS-4133: Oracle High Availability Services has been stopped.

[root@rac1 rac1]# crsctl start crs

CRS-4123: Oracle High Availability Services has been started.

[root@rac1 rac1]# crs_stat -t

Name Type Target State Host

------------------------------------------------------------

ora.DATA.dg ora....up.type ONLINE ONLINE rac1

ora.FRA.dg ora....up.type ONLINE ONLINE rac1

ora....ER.lsnr ora....er.type ONLINE ONLINE rac1

ora....N1.lsnr ora....er.type ONLINE ONLINE rac1

ora.OCRDATA.dg ora....up.type ONLINE ONLINE rac1

ora.asm ora.asm.type ONLINE ONLINE rac1

ora.eons ora.eons.type ONLINE ONLINE rac1

ora.gsd ora.gsd.type OFFLINE OFFLINE

ora....network ora....rk.type ONLINE ONLINE rac1

ora.oc4j ora.oc4j.type OFFLINE OFFLINE

ora.ons ora.ons.type ONLINE ONLINE rac1

ora....SM1.asm application ONLINE ONLINE rac1

ora....C1.lsnr application ONLINE ONLINE rac1

ora.rac1.gsd application OFFLINE OFFLINE

ora.rac1.ons application ONLINE ONLINE rac1

ora.rac1.vip ora....t1.type ONLINE ONLINE rac1

ora.rac2.vip ora....t1.type ONLINE ONLINE rac1

ora.ractest.db ora....se.type ONLINE OFFLINE

ora....ry.acfs ora....fs.type ONLINE ONLINE rac1

ora.scan1.vip ora....ip.type ONLINE ONLINE rac1

节点一已经恢复了,节点2重启下crs服务就可以了

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29065182/viewspace-1095288/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29065182/viewspace-1095288/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值