{"id":265,"date":"2013-01-12T15:53:45","date_gmt":"2013-01-12T07:53:45","guid":{"rendered":"http:\/\/www.yallonking.com\/?p=265"},"modified":"2013-01-23T00:04:04","modified_gmt":"2013-01-22T16:04:04","slug":"ocr%e5%92%8cvotedisk%e5%9c%a8%e6%b2%a1%e6%9c%89%e5%a4%87%e4%bb%bd%e7%9a%84%e6%83%85%e5%86%b5%e4%b8%8b%e6%8d%9f%e5%9d%8f%e5%90%8e%e7%9a%84%e6%81%a2%e5%a4%8d","status":"publish","type":"post","link":"http:\/\/www.yallonking.com\/?p=265","title":{"rendered":"OCR\u548cVotedisk\u5728\u6ca1\u6709\u5907\u4efd\u7684\u60c5\u51b5\u4e0b\u635f\u574f\u540e\u7684\u6062\u590d"},"content":{"rendered":"<p>OCR\u548cVotedisk\u635f\u574f\u540e\u7684\u6062\u590d\uff08\u65e0\u5907\u4efd\uff09<\/p>\n<p>--\u505c\u6b62\u6240\u6709\u8282\u70b9\u7684CRS<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources.<br \/>\nSuccessfully stopped CRS resources<br \/>\nStopping CSSD.<br \/>\nShutting down CSS daemon.<br \/>\nShutdown request successfully issued.<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl check crs<br \/>\nFailure 1 contacting CSS daemon<br \/>\nCannot communicate with CRS<br \/>\nCannot communicate with EVM<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl stop crs<br \/>\nStopping resources.<br \/>\nSuccessfully stopped CRS resources<br \/>\nStopping CSSD.<br \/>\nShutting down CSS daemon.<br \/>\nShutdown request successfully issued.<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/crsctl check crs<br \/>\nFailure 1 contacting CSS daemon<br \/>\nCannot communicate with CRS<br \/>\nCannot communicate with EVM<\/p>\n<p>--\u6267\u884c\u5220\u9664\u811a\u672c<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/install\/rootdelete.sh<br \/>\nShutting down Oracle Cluster Ready Services (CRS):<br \/>\nStopping resources.<br \/>\nError while stopping resources. Possible cause: CRSD is down.<br \/>\nStopping CSSD.<br \/>\nUnable to communicate with the CSS daemon.<br \/>\nShutdown has begun. The daemons should exit soon.<br \/>\nChecking to see if Oracle CRS stack is down...<br \/>\nOracle CRS stack is not running.<br \/>\nOracle CRS stack is down now.<br \/>\nRemoving script for Oracle Cluster Ready services<br \/>\nUpdating ocr file for downgrade<br \/>\nCleaning up SCR settings in '\/etc\/oracle\/scls_scr'<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/install\/rootdelete.sh<br \/>\nShutting down Oracle Cluster Ready Services (CRS):<br \/>\nStopping resources.<br \/>\nError while stopping resources. Possible cause: CRSD is down.<br \/>\nStopping CSSD.<br \/>\nUnable to communicate with the CSS daemon.<br \/>\nShutdown has begun. The daemons should exit soon.<br \/>\nChecking to see if Oracle CRS stack is down...<br \/>\nOracle CRS stack is not running.<br \/>\nOracle CRS stack is down now.<br \/>\nRemoving script for Oracle Cluster Ready services<br \/>\nUpdating ocr file for downgrade<br \/>\nCleaning up SCR settings in '\/etc\/oracle\/scls_scr'<\/p>\n<p>--\u4efb\u610f\u8282\u70b9\u6267\u884c\u4ee5\u4e0b\u811a\u672c<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/install\/rootdeinstall.sh<\/p>\n<p>Removing contents from OCR device<br \/>\n2560+0 records in<br \/>\n2560+0 records out<br \/>\n10485760 bytes (10 MB) copied, 7.24653 seconds, 1.4 MB\/s<\/p>\n<p>--\u5728\u4e0a\u6b65\u7684\u540c\u610f\u8282\u70b9\u6267\u884croot\u811a\u672c<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/root.sh<br \/>\nWARNING: directory '\/opt\/ora10g\/product' is not owned by root<br \/>\nWARNING: directory '\/opt\/ora10g' is not owned by root<br \/>\nChecking to see if Oracle CRS stack is already configured<\/p>\n<p>Setting the permissions on OCR backup directory<br \/>\nSetting up NS directories<br \/>\nOracle Cluster Registry configuration upgraded successfully<br \/>\nWARNING: directory '\/opt\/ora10g\/product' is not owned by root<br \/>\nWARNING: directory '\/opt\/ora10g' is not owned by root<br \/>\nassigning default hostname rac1 for node 1.<br \/>\nassigning default hostname rac2 for node 2.<br \/>\nSuccessfully accumulated necessary OCR keys.<br \/>\nUsing ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.<br \/>\nnode :<br \/>\nnode 1: rac1 rac1-priv rac1<br \/>\nnode 2: rac2 rac2-priv rac2<br \/>\nCreating OCR keys for user 'root', privgrp 'root'..<br \/>\nOperation successful.<br \/>\nNow formatting voting device: \/dev\/raw\/raw2<br \/>\nFormat of 1 voting devices complete.<br \/>\nStartup will be queued to init within 90 seconds.<br \/>\nAdding daemons to inittab<br \/>\nExpecting the CRS daemons to be up within 600 seconds.<br \/>\nCSS is active on these nodes.<br \/>\nrac1<br \/>\nCSS is inactive on these nodes.<br \/>\nrac2<br \/>\nLocal node checking complete.<br \/>\nRun root.sh on remaining nodes to start CRS daemons.<\/p>\n<p>--\u5728\u5176\u4ed6\u8282\u70b9\u6267\u884croot\u811a\u672c<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/root.sh<br \/>\nWARNING: directory '\/opt\/ora10g\/product' is not owned by root<br \/>\nWARNING: directory '\/opt\/ora10g' is not owned by root<br \/>\nChecking to see if Oracle CRS stack is already configured<\/p>\n<p>Setting the permissions on OCR backup directory<br \/>\nSetting up NS directories<br \/>\nOracle Cluster Registry configuration upgraded successfully<br \/>\nWARNING: directory '\/opt\/ora10g\/product' is not owned by root<br \/>\nWARNING: directory '\/opt\/ora10g' is not owned by root<br \/>\nclscfg: EXISTING configuration version 3 detected.<br \/>\nclscfg: version 3 is 10G Release 2.<br \/>\nassigning default hostname rac1 for node 1.<br \/>\nassigning default hostname rac2 for node 2.<br \/>\nSuccessfully accumulated necessary OCR keys.<br \/>\nUsing ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.<br \/>\nnode :<br \/>\nnode 1: rac1 rac1-priv rac1<br \/>\nnode 2: rac2 rac2-priv rac2<br \/>\nclscfg: Arguments check out successfully.<\/p>\n<p>NO KEYS WERE WRITTEN. Supply -force parameter to override.<br \/>\n-force is destructive and will destroy any previous cluster<br \/>\nconfiguration.<br \/>\nOracle Cluster Registry for cluster has already been initialized<br \/>\nStartup will be queued to init within 90 seconds.<br \/>\nAdding daemons to inittab<br \/>\nExpecting the CRS daemons to be up within 600 seconds.<br \/>\nCSS is active on these nodes.<br \/>\nrac1<br \/>\nrac2<br \/>\nCSS is active on all nodes.<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nWaiting for the Oracle CRSD and EVMD to start<br \/>\nOracle CRS stack installed and running under init(1M)<br \/>\nRunning vipca(silent) for configuring nodeapps<br \/>\nError 0(Native: listNetInterfaces:[3])<br \/>\n[Error 0(Native: listNetInterfaces:[3])]<\/p>\n<p>--\u82e5\u5728\u5176\u4ed6\u8282\u70b9\u51fa\u9519\uff0c\u5219\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/oifcfg iflist<br \/>\neth0 192.168.137.0<br \/>\neth1 192.168.136.0<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/oifcfg setif -global eth0\/192.168.137.0:public<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/oifcfg setif -global eth0\/192.168.136.0:cluster_interconnect<br \/>\n[root@rac2 ~]# \/opt\/ora10g\/product\/crs\/bin\/oifcfg getif<br \/>\neth0 192.168.137.0 global public<br \/>\neth0 192.168.136.0 global cluster_interconnect<\/p>\n<p>--\u68c0\u67e5CRS<br \/>\n[oracle@rac1 ~]$ crsctl check crs<br \/>\nCSS appears healthy<br \/>\nCRS appears healthy<br \/>\nEVM appears healthy<br \/>\n[oracle@rac1 ~]$ crs_stat -t -v<br \/>\nCRS-0202: No resources are registered.<\/p>\n<p>--\u914d\u7f6eVIP<br \/>\n[oracle@rac1 ~]$ su -<br \/>\nPassword:<br \/>\n[root@rac1 ~]# \/opt\/ora10g\/product\/crs\/bin\/vipca<br \/>\n[root@rac1 ~]# su - oracle<br \/>\n[oracle@rac1 ~]$ crs_stat -t<br \/>\nName Type Target State Host<br \/>\n------------------------------------------------------------<br \/>\nora.rac1.gsd application ONLINE ONLINE rac1<br \/>\nora.rac1.ons application ONLINE ONLINE rac1<br \/>\nora.rac1.vip application ONLINE ONLINE rac1<br \/>\nora.rac2.gsd application ONLINE ONLINE rac2<br \/>\nora.rac2.ons application ONLINE ONLINE rac2<br \/>\nora.rac2.vip application ONLINE ONLINE rac2<\/p>\n<p>--\u6ce8\u518c\u76f8\u5173\u670d\u52a1<br \/>\n[oracle@rac1 ~]$ srvctl add asm -n rac1 -i +ASM1 -o \/opt\/ora10g\/product\/database<br \/>\n[oracle@rac1 ~]$ srvctl add asm -n rac2 -i +ASM2 -o \/opt\/ora10g\/product\/database<br \/>\n[oracle@rac1 ~]$ srvctl start asm -n rac1<br \/>\n[oracle@rac1 ~]$ srvctl start asm -n rac2<br \/>\n[oracle@rac1 ~]$ srvctl add database -d racdb -o \/opt\/ora10g\/product\/database<br \/>\n[oracle@rac1 ~]$ srvctl add instance -d racdb -i racdb1 -n rac1<br \/>\n[oracle@rac1 ~]$ srvctl add instance -d racdb -i racdb2 -n rac2<br \/>\n[oracle@rac1 ~]$ srvctl modify instance -d racdb -i racdb1 -s +ASM1<br \/>\n[oracle@rac1 ~]$ srvctl modify instance -d racdb -i racdb2 -s +ASM2<br \/>\n[oracle@rac1 ~]$ srvctl start database -d racdb<\/p>\n<p>--\u914d\u7f6elistener\uff08\u5148\u5220\u9664\uff0c\u518d\u91cd\u5efa\uff09<br \/>\n\u6ce8\uff1a\u9700\u8981\u6ce8\u610f\u7528\u6237\u5bf9\u7b49\u6027<br \/>\n[oracle@rac1 ~]$netca<\/p>\n<p>--\u67e5\u770b\u8d44\u6e90\u72b6\u6001<br \/>\n[oracle@rac1 ~]$ crs_stat -t -v<br \/>\nName Type R\/RA F\/FT Target State Host<br \/>\n----------------------------------------------------------------------<br \/>\nora....SM1.asm application 0\/5 0\/0 ONLINE ONLINE rac1<br \/>\nora....C1.lsnr application 0\/5 0\/0 ONLINE ONLINE rac1<br \/>\nora.rac1.gsd application 0\/5 0\/0 ONLINE ONLINE rac1<br \/>\nora.rac1.ons application 0\/3 0\/0 ONLINE ONLINE rac1<br \/>\nora.rac1.vip application 0\/0 0\/0 ONLINE ONLINE rac1<br \/>\nora....SM2.asm application 0\/5 0\/0 ONLINE ONLINE rac2<br \/>\nora....C2.lsnr application 0\/5 0\/0 ONLINE ONLINE rac2<br \/>\nora.rac2.gsd application 0\/5 0\/0 ONLINE ONLINE rac2<br \/>\nora.rac2.ons application 0\/3 0\/0 ONLINE ONLINE rac2<br \/>\nora.rac2.vip application 0\/0 0\/0 ONLINE ONLINE rac2<br \/>\nora.racdb.db application 0\/0 0\/1 ONLINE ONLINE rac1<br \/>\nora....b1.inst application 0\/5 0\/0 ONLINE ONLINE rac1<br \/>\nora....b2.inst application 0\/5 0\/0 ONLINE ONLINE rac2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OCR\u548cVotedisk\u635f\u574f\u540e\u7684\u6062\u590d\uff08\u65e0\u5907\u4efd\uff09 &#8211;\u505c\u6b62\u6240\u6709\u8282\u70b9\u7684CRS [root@rac1 ~]# \/op [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/265"}],"collection":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=265"}],"version-history":[{"count":15,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":654,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions\/654"}],"wp:attachment":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}