Recreate OCR/Voting Disk/SCLS Directories/Socket Files
OCR
If ocr has been deleted, then check the ocr mirror is ok and viceversa. It may be prudent to use the ocr mirror to create the ocr. If the ocr mirror and ocr have been deleted, then it may be restored from the ocr backups
Voting Disk
If there are multiple voting disk and one was accidentally deleted, then check if there are any backups of this voting disk. If there are no backups then we add one using the crsctl add votedisk command.
Socket files in /tmp/.oracle or /var/tmp/.oracle
If these files are deleted then stop the crs on that node and restart it agai. If the socket files for cssd is deleted then the crs may not come down then bounce the node.
SCLS directories
These are created by root.sh
If any of the above files cannot be restored then we will have to follow the following steps
Shutdown the crs stack on all nodes using command crsctl stop crs as root user
Backup the entire crs home
Execute <crs_home>/install/rootdelete.sh on all nodes
Execute <crs_home>/install/rootdeinstall.sh on primary node
The following command should return nothing
ps – e |grep –i 'ocs[s]d'
ps – e |grep –i 'cr[s]d.bin'
ps – e |grep –i 'ev[m]d.bin'
execute <crs_home>/root.sh on first node
after successful root.sh execution on first node execute root.sh on the rest of the nodes of the cluster
then
$/crs/install/racgons add_config node1:6251 node2:6251
For 11g as oracle execute the following code
$crs/install/onsconfig setif –global eth0/<ip>:cluster_interconnect eth1/<ip>:public
Add listener using netca. In case of error move listener .ora to another location and then run netca
Use appropriate srvctl commands to add asm, database, instance and services.
Execute cluvfy stage –post crsinst –n node1 node2
Comments
Post a Comment