{"id":1253,"date":"2014-06-27T11:47:00","date_gmt":"2014-06-27T03:47:00","guid":{"rendered":"http:\/\/www.yallonking.com\/?p=1253"},"modified":"2014-06-27T11:47:00","modified_gmt":"2014-06-27T03:47:00","slug":"%e7%a7%bb%e5%8a%a8ocr%e5%92%8cvoting-disk","status":"publish","type":"post","link":"http:\/\/www.yallonking.com\/?p=1253","title":{"rendered":"\u79fb\u52a8OCR\u548cvoting disk"},"content":{"rendered":"<p>\u9996\u5148\u786e\u4fddcrs\u5728\u4e24\u4e2a\u8282\u70b9\u8fd0\u884c\u6b63\u5e38:<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nbash-3.2$ crsctl check cluster -all\r\n**************************************************************\r\ncadb1:\r\nCRS-4537: Cluster Ready Services is online\r\nCRS-4529: Cluster Synchronization Services is online\r\nCRS-4533: Event Manager is online\r\n**************************************************************\r\ncadb2:\r\nCRS-4537: Cluster Ready Services is online\r\nCRS-4529: Cluster Synchronization Services is online\r\nCRS-4533: Event Manager is online\r\n**************************************************************\r\n<\/pre>\n<p>\u5148\u955c\u50cf\u518d\u5220\u9664\u8fdb\u884cocr\u7684\u79fb\u52a8\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nbash-3.2# id\r\nuid=0(root) gid=0(root)\r\nbash-3.2# pwd\r\n\/u01\/crs\/oracle\/product\/11.2.0\/crs_1\/bin\r\nbash-3.2# .\/ocrcheck\r\nStatus of Oracle Cluster Registry is as follows :\r\n         Version                  :          3\r\n         Total space (kbytes)     :     262120\r\n         Used space (kbytes)      :       3104\r\n         Available space (kbytes) :     259016\r\n         ID                       :  511432260\r\n         Device\/File Name         :      +DATA\r\n                                    Device\/File integrity check succeeded\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n         Cluster registry integrity check succeeded\r\n\r\n         Logical corruption check succeeded\r\n\r\nbash-3.2# .\/ocrconfig -add +ocr\r\nbash-3.2# .\/ocrcheck\r\nStatus of Oracle Cluster Registry is as follows :\r\n         Version                  :          3\r\n         Total space (kbytes)     :     262120\r\n         Used space (kbytes)      :       3104\r\n         Available space (kbytes) :     259016\r\n         ID                       :  511432260\r\n         Device\/File Name         :      +DATA\r\n                                    Device\/File integrity check succeeded\r\n         Device\/File Name         :       +ocr\r\n                                    Device\/File integrity check succeeded\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n         Cluster registry integrity check succeeded\r\n\r\n         Logical corruption check succeeded\r\n\r\nbash-3.2# .\/ocrconfig -delete +data\r\nbash-3.2# .\/ocrcheck\r\nStatus of Oracle Cluster Registry is as follows :\r\n         Version                  :          3\r\n         Total space (kbytes)     :     262120\r\n         Used space (kbytes)      :       3104\r\n         Available space (kbytes) :     259016\r\n         ID                       :  511432260\r\n         Device\/File Name         :       +ocr\r\n                                    Device\/File integrity check succeeded\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n                                    Device\/File not configured\r\n\r\n         Cluster registry integrity check succeeded\r\n\r\n         Logical corruption check succeeded\r\n<\/pre>\n<p>\u79fb\u52a8voting disk\u4f4d\u7f6e\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nbash-3.2$ id\r\nuid=101(grid) gid=100(oinstall)\r\nbash-3.2$ crsctl query css votedisk\r\n##  STATE    File Universal Id                File Name Disk group\r\n--  -----    -----------------                --------- ---------\r\n 1. ONLINE   4d16aaaefe4b4f7dbf45a06842e68dc8 (\/u01\/home\/grid\/racdisk3) [DATA]\r\nLocated 1 voting disk(s).\r\nbash-3.2$ crsctl replace votedisk +votingdisk\r\nSuccessful addition of voting disk 0a07d5f686bd4f78bf11aeb77ce139c3.\r\nSuccessful deletion of voting disk 4d16aaaefe4b4f7dbf45a06842e68dc8.\r\nSuccessfully replaced voting disk group with +votingdisk.\r\nCRS-4266: Voting file(s) successfully replaced\r\nbash-3.2$ crsctl query css votedisk\r\n##  STATE    File Universal Id                File Name Disk group\r\n--  -----    -----------------                --------- ---------\r\n 1. ONLINE   0a07d5f686bd4f78bf11aeb77ce139c3 (\/u01\/home\/grid\/rac_votingdisk1) [VOTINGDISK]\r\nLocated 1 voting disk(s).\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u786e\u4fddcrs\u5728\u4e24\u4e2a\u8282\u70b9\u8fd0\u884c\u6b63\u5e38: bash-3.2$ crsctl check cluster -all * [&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\/1253"}],"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=1253"}],"version-history":[{"count":2,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1253\/revisions"}],"predecessor-version":[{"id":1255,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1253\/revisions\/1255"}],"wp:attachment":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1253"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}