ITPub博客

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

转帖---SUN系列RAC之一:backup voting disk in REHL

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

先从重点入手,第一个内容:voting disk的备份

1 hot backup

2 cold backup


0 查询voting disk location
rac1-> crsctl query css votedisk
0. 0 /ocfs/clusterware/votingdisk

located 1 votedisk(s).
rac1->
rac1-> ls -l /ocfs/clusterware
total 14060
-rw-r----- 1 root oinstall 4157440 Mar 7 20:35 ocr
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:35 votingdisk
rac1->

1 hot backup
scripts:
rac1-> date
Sat Mar 7 20:38:07 CST 2009
rac1->
rac1-> dd if=/ocfs/clusterware/votingdisk f=/ocfs/clusterware/hotvd090307 bs=4k
2500+0 records in
2500+0 records out
rac1-> date
Sat Mar 7 20:38:17 CST 2009 --10s就完成了备份
rac1->
rac1-> ls -l /ocfs/clusterware
total 24060
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:38 hotvd090307
-rw-r----- 1 root oinstall 4157440 Mar 7 20:37 ocr
-rw-r--r-- 1 oracle oinstall 10240000 Mar 7 20:38 votingdisk
rac1->


2 cold backup
scripts:
1)在两个节点分别停止CRS,停完一个再停另一个。root用户
2)dd冷备。oracle用户

rac1-> su - root
Password:
[root@rac1 ~]#
[root@rac1 ~]# cd /u01/app/oracle/product/10.2.0/crs_1/bin/
[root@rac1 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac1 bin]#

rac2-> su - root
Password:
[root@rac2 ~]# cd /u01/app/oracle/product/10.2.0/crs_1/bin/
[root@rac2 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac2 bin]#

[root@rac1 bin]# su - oracle
rac1->
rac1-> crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

rac1->
rac1-> dd if=/ocfs/clusterware/votingdisk f=/ocfs/clusterware/coldvd090307 bs=4k
2500+0 records in
2500+0 records out
rac1->
rac1-> date
Sat Mar 7 20:46:14 CST 2009
rac1->

文章来源:http://sdusun.itpub.net/post/7915/479720

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

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

注册时间:2009-06-26

  • 博文量
    167
  • 访问量
    293355