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

先从重点入手,第一个内容: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->

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

转载于:http://blog.itpub.net/110321/viewspace-621905/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值