Backup and restore voting disk and OCR

Backing Up Voting Disks

 

After installation

After adding nodes to or deleting nodes from the cluster

After performing voting disk add or delete operations

 

dd if=voting_disk_name f=backup_file_name

dd if=/dev/sdd1 f=/tmp/voting.dmp

 

When you use the dd command for making backups of the voting disk, the backup can

be performed while the Cluster Ready Services (CRS) process is active;

 

Recovering Voting Disks

 

dd if=backup_file_name f=voting_disk_name

 

Adding and Removing Voting Disks

 

#crsctl add css votedisk path

#crsctl delete css votedisk path

 

Backing Up the OCR

 

Oracle Clusterware automatically creates OCR backups every 4 hours. At any one time, Oracle Clusterware always retains the latest 3 backup copies of the OCR that are 4 hours old, 1 day old, and 1 week old.

 

[oracle@hzweb1 hzwebcrs]$ ll /home/oracle/OraBase/crs/cdata/hzwebcrs

total 33264

-rw-r--r--  1 root root 4849664 May 23 10:30 backup00.ocr

-rw-r--r--  1 root root 4849664 May 23 06:30 backup01.ocr

-rw-r--r--  1 root root 4849664 May 23 02:30 backup02.ocr

-rw-r--r--  1 root root 4849664 May 22 14:31 day_.ocr

-rw-r--r--  1 root root 4849664 May 21 10:31 day.ocr

-rw-r--r--  1 root root 4849664 May 19 02:32 week_.ocr

-rw-r--r--  1 root root 4849664 May 10 06:34 week.ocr

 

#ocrconfig –showbackup

#ocrconfig -export backup_file_name

 

Recovering the OCR

 

[root@hzweb1 crsfile]# ocrcheck

 

To restore the OCR from an automatically generated backup on a Red Hat Linux system:

# ocrconfig –showbackup

$ ocrdump -backupfile file_name

# crsctl stop crs

# ocrconfig -restore file_name

# crsctl start crs

$ cluvfy comp ocr -n all [-verbose]

 

Recovering the OCR from an OCR Export File

#crsctl stop crs

# ocrconfig -import file_name

# crsctl start crs

$ cluvfy comp ocr -n all [-verbose]

 

You may need to repair the OCR on a node that was shut down while you were adding, replacing, or removing an OCR

 

ocrconfig –repair ocr|ocrmirror

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

转载于:http://blog.itpub.net/16348200/viewspace-614808/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值