1.Administer Voting disk:
1).back up Voting disk:
dd if=voting_disk_name f=backup_file_name
2).recover Voting disk:
dd if=backup_file_name f=voting_disk_name
3).add Voting disk:
crsctl add css votedisk path
4).remove Voting disk:
crsctl delete css votedisk path
2.Administer OCR(Oracle Cluster Registry)
1).add OCR and OCR mirror location:
ocrconfig -replace ocr destination_file or disk
ocrconfig -replace ocrmirror destination_file or disk
2).replace OCR
verify that OCR that you are not going to replace is online
ocrconfig -replace ocr destination_file or disk
ocrconfig -replace ocrmirror destination_file or disk
3).repaire OCR on a local node
run the command ocrconfig -repaire on any node that is stopped to enable that node to rejoin the cluster after you restart the stopped node.
ocrconfig –repair ocrmirror device_name
4).remove OCR and mirror OCR
ocrconfig -replace ocr
ocrconfig -replace ocrmirror
3.Manage backup and recover OCR using OCR backup files
1).automatically generated OCR file copies
The Oracle Clusterware automatically creates OCR backups every four hours. At any one time, Oracle always retains the last three backup copies of the OCR.
The default location for generating backups on UNIX-based systems is crs_home/cdata/cluster_name where cluster_name is the name of your cluster.
2).Restoring the OCR from Automatically Generated OCR Backups
Before the restore the OCR, run an ocrcheck and if the command returns a failure message, then both the primary OCR and the OCR mirror have failed
Using the following procedure to restore the OCR:
Step 1. Identify the OCR backups using the ocrconfig -showbackup command. Review the contents of the backup using ocrdump -backupfile file_name where file_name is the name of the backup file.
Step 2. Stop Oracle Clusterware on all of the nodes in your RAC database by executing the init.crs stop command on all of the nodes.
Step 3. Perform. the restore by applying an OCR backup file that you identified in Step 1 using the following command where file_name is the name of the OCR that you want to restore. Make sure that the OCR devices that you specify in the OCR configuration exist and that these OCR devices are valid before running this command ocrconfig -restore file_name
Step 4. Restart Oracle Clusterware on all of the nodes in your cluster by restarting each node or by running the init.crs start command.
Step 5. Run the following command to verify the OCR integrity where the -n all argument retrieves a listing of all of the cluster nodes that are configured as part of your cluster: cluvfy comp ocr -n all [-verbose]
3).manually created OCR export files
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13129975/viewspace-610785/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13129975/viewspace-610785/