ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 转帖---SUN系列RAC之二:restore voting disk in REHL

转帖---SUN系列RAC之二:restore voting disk in REHL

原创 Linux操作系统 作者:andyxu 时间:2009-12-08 09:35:47 0 删除 编辑

1 using hot backup

2 using cold backup

注意:最好stop clusterware之后,再做还原操作。


1 restore Voting Disk using hot backup
scripts:
rac2-> crs_stat -t --确认CRS是否stop
CRS-0184: Cannot communicate with the CRS daemon.

rac2->
rac2-> ls -l /ocfs/clusterware
total 34060
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:46 coldvd090307
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:38 hotvd090307
-rw-r----- 1 root oinstall 4157440 Mar 7 20:44 ocr
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:44 votingdisk
rac2->
rac2-> dd if=/ocfs/clusterware/hotvd090307 f=/ocfs/clusterware/votingdisk bs=4k
2500+0 records in
2500+0 records out
rac2->
rac2-> ls -l /ocfs/clusterware/
total 34060
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:46 coldvd090307
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:38 hotvd090307
-rw-r----- 1 root oinstall 4157440 Mar 7 20:44 ocr
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:52 votingdisk
rac2->

[root@rac1 bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac1 bin]#

[root@rac2 bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[root@rac2 bin]#

CRS资源一切正常。rac1-> crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.devdb.db application ONLINE ONLINE rac1
ora....b1.inst application ONLINE ONLINE rac1
ora....b2.inst application ONLINE ONLINE rac2
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
rac1->

voting disk正常:rac1->
rac1-> crsctl query css votedisk
0. 0 /ocfs/clusterware/votingdisk

located 1 votedisk(s).
rac1->

instance正常:
SQL> select instance_number, instance_name from gv$instance;

INSTANCE_NUMBER INSTANCE_NAME
--------------- ----------------
1 devdb1
2 devdb2

SQL>


2 restore Voting Disk using cold backup

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

请登录后发表评论 登录
全部评论

注册时间:2009-06-26

  • 博文量
    167
  • 访问量
    293355