11gR2 ocr votedisk的恢复测试


先做一些检查:



1.检查ocr的完整性

root@oeltan1 ~]# su - grid
[grid@oeltan1 ~]$ cluvfy comp ocr -n all
Verifying OCR integrity 
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations
ASM Running check passed. ASM is running on all specified nodes
Checking OCR config file "/etc/oracle/ocr.loc"...
OCR config file "/etc/oracle/ocr.loc" check successful
Disk group for ocr location "+CRS" available on all the nodes
Disk group for ocr location "+DATA1" available on all the nodes

NOTE: 
This check does not verify the integrity of the OCR contents. Execute 'ocrcheck' as a privileged user to verify the contents of OCR.
OCR integrity check passed
Verification of OCR integrity was successful. 


[grid@oeltan1 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3320
         Available space (kbytes) :     258800
         ID                       : 1360300110
         Device/File Name         :       +CRS
                                    Device/File integrity check succeeded
         Device/File Name         :     +DATA1
                                    Device/File integrity check succeeded


                                    Device/File not configured


                                    Device/File not configured


                                    Device/File not configured


         Cluster registry integrity check succeeded


         Logical corruption check bypassed due to non-privileged user


2.检查votedisk



[grid@oeltan1 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   2141c8c7d8904f89bfa45dbaecb827c5 (/dev/asm-diskb) [CRS]

Located 1 voting disk(s).

3看看磁盘使用的情况 

  1* select name,header_status,path from V$asm_disk
SQL> /


NAME                           HEADER_STATU PATH
------------------------------ ------------ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CRS_0000                       MEMBER       /dev/asm-diskb
DATA1_0002                     MEMBER       /dev/asm-diskg
DATA1_0001                     MEMBER       /dev/asm-diskf
DATA1_0000                     MEMBER       /dev/asm-diske
CRS_0002                       MEMBER       /dev/asm-diskd
CRS_0001                       MEMBER       /dev/asm-diskc
FRI_0000                       MEMBER       /dev/asm-diskh
FRI_0001                       MEMBER       /dev/asm-diski
FRI_0002                       MEMBER       /dev/asm-diskj


做备份 


11g中votedisk不需要备份

1备份ASMspfile                                        

SQL> create pfile='/tmp/asm_pfile_0724.txt' from spfile    

2备份ocr

[root@oeltan1 ~]# ocrconfig -manualbackup

3检查备份:

[root@oeltan1 ~]# ocrconfig -showbackup
<
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值