ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Backup and restore voting disk and OCR

Backup and restore voting disk and OCR

原创 Linux操作系统 作者:mambo_shen 时间:2009-09-16 16:11:47 0 删除 编辑

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/,如需转载,请注明出处,否则将追究法律责任。

下一篇: TAF
请登录后发表评论 登录
全部评论

注册时间:2008-10-09

  • 博文量
    86
  • 访问量
    74049