How to Restore a Lost Voting Disk in 10g [ID 279793.1]

rongshiyuan發表於2012-11-21
How to Restore a Lost Voting Disk in 10g [ID 279793.1]
 
PURPOSE ------- To provide a method of restoring a lost Voting Disk. SCOPE & APPLICATION ------------------- This article is intended for DBAs and Support Engineers who need to correct a lost Voting Disk. WHY DO WE NEED A VOTING DISK ---------------------------- The Voting Disk is used by the Oracle cluster manager in various layers. The Node Monitor (NM)uses the Voting Disk for the Disk Hearbeat, which is essential in the detection and resolution of cluster "split brain". NM monitors the Voting Disk for other competing sub-clusters and uses it for the eviction phase. Hence the availability from the Voting Disk is critical for the operation of the Oracle Cluster Manager. The shared volumes created for the OCR and the voting disk should be configured using RAID to protect against media failure. This requires the use of an external cluster volume manager, cluster file system, or storage hardware that provides RAID protection. METHOD 1- RESTORING A LOST VOTING DISK -------------------------------------- The recommended way to recover from a lost Voting Disk is to restore it from a backup taken with 'dd'. A backup taken via the 'dd' command can be done as a 'hot' backup, meaning that the crs daemons do not need to be stopped in order to take this backup. A new backup should be taken of the Voting Disk any time a new node is added, or an existing node is removed. As a general rule on most platforms, including Linux and Sun, the block size for the 'dd' command should be 4k, to ensure that the backup of the Voting Disk gets complete blocks. On Windows platforms use 'ocopy' to create a backup of the voting disk. Note that Re-running root.sh or parts thereof isn't safe once CSS is in fatal mode (which happens when the last node's root.sh is run). It could lead to one node or all nodes entering a reboot cycle which is hard to recover from. From 10.2 onwards the voting disk can get recovered with "crsctl add css votedisk". For more details see note:428681.1 METHOD 2 - RE-INSTALL CRS ------------------------- The only safe and sure way to re-create the voting disk in 10gR1 is to reinstall CRS. The deinstallation procedure is the only way we have to undo the CSS fatal mode, which in turn makes it safe to reinstall. Only do this after consulting with Oracle Support Services and there is no reasonable way to fix the inconsistency. Once you re-install CRS, you can restore OCR from one of its automatic backups. Then, you can back up the voting disk, and also back it up again after any node addition or deletion operations. 1. Use Note 239998.1 to completely remove the CRS installation. 2. Re-install CRS 3. Run the CRS root.sh as prompted at the end of the CRS install. 4. Run the root.sh in the database $ORACLE_HOME to re-run VIPCA. This will re- create the VIP, GSD, and ONS resources. 5. Use NETCA to re-add any listeners. 6. Add databases and instances with SRVCTL, syntax is in Note 259301.1 RELATED DOCUMENTS ----------------- Oracle Clusterware Administration and Deployment Guide 11g Release 1 (11.1) section 2 "Administering Voting Disks" Note 259301.1 CRS and 10g Real Application Clusters Note 239998.1 - 10g RAC How to Clean Up After a Failed CRS Install

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-749689/,如需轉載,請註明出處,否則將追究法律責任。

相關文章