Oracle RAC backup and recovery Voting Disks

Source: Internet
Author: User

Oracle RAC backup and recovery Voting Disks Oracle RAC add and delete Voting Disks reference: http://www.bkjia.com/database/201303/195591.html Oracle RAC does not need to back up and recover the Voting Disks www.2cto.com Voting Disks every day. Generally, backup is required in the following situations: ①: After Clusterware is installed. ②: After adding and deleting nodes in the cluster. ③: After the Voting Disk add or delete operation is executed. Example of backing up voting Disk: Environment: [plain] [oracle @ node2 ~] $ Uname-a Linux node2 2.6.18-164. el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux [plain] SQL> select * from v $ version; BANNER implements Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Prod PL/SQL Release 10.2.0.1.0-Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0-Production NLSRTL Version 10.2.0.1.0-Production 1. view the current Voting Disks [plain] [oracle @ node1 ~] $ Crsctl query css votedisk 0. 0/dev/raw/raw2 located 1 votedisk (s). 2. Back up Voting Disk (with root) [plain] [root @ node1 ~] # Dd if =/dev/raw/raw2 of =/home/oracle/backup/votingdisk. bak 208864 + 0 records in 208864 + 0 records out 106938368 bytes (107 MB) copied, 150.378 seconds, 711 kB/s 3. check the backup [plain] [root @ node1 backup] # ll total 104540-rw-r -- 1 root 106938368 Mar 13 votingdisk. bak can use this backup file for recovery if the content of Voting Disk has not changed. Example of restoring Voting Disk: 1. stop crs (./crsctl stop crs), destroy data simulation, and Voting Disk is damaged. [Plain] [root @ node1 bin] # dd if =/dev/urandom of =/dev/raw/raw2 154419 + 0 records in 154419 + 0 records out 79062528 bytes (79 MB) copied, 196.121 seconds, 403 kB/s damaged. /crsctl start crs cannot start crs. 2. restore Voting Disk [plain] [root @ node1 bin] # dd if =/home/oracle/backup/votingdisk. bak of =/dev/raw/raw2 208864 + 0 records in 208864 + 0 records out 106938368 bytes (107 MB) copied, 138.541 seconds, 772 kB/s for recovery. /crsctl start crs starts crs normally

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.