{"id":2500,"date":"2017-03-10T16:11:46","date_gmt":"2017-03-10T19:11:46","guid":{"rendered":"http:\/\/www.dbarj.com.br\/?p=2500\/"},"modified":"2017-03-10T16:34:04","modified_gmt":"2017-03-10T19:34:04","slug":"check-hub-node-leaf-node-connected-oracle-flex-cluster","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/","title":{"rendered":"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster"},"content":{"rendered":"<p>In this article, I will show how to detect to which Hub Node is your Leaf Node connected to in an Oracle Flex Cluster scenario where you have multiple Hub Servers.<\/p>\n<p>First of all, let&#8217;s check our current scenario:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[oracle@oranode3 ~]$ crsctl get node role status -all\r\nNode 'oranode1' active role is 'hub'\r\nNode 'oranode2' active role is 'hub'\r\nNode 'oranode3' active role is 'leaf'<\/pre>\n<p>So in my current configuration I have 2 Hub Nodes (<strong>oranode1<\/strong> and <strong>oranode2<\/strong>) but only 1 Leaf Node (<strong>oranode3<\/strong>).<\/p>\n<p>To check to which of those 2 Hub Nodes is my Leaf Node connected, I need to check on ocssdrim.trc file to which node is my leaf periodically pinging and checking availability:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[oracle@oranode3 ~]$ export GRID_BASE=\/u01\/app\/grid\r\n[oracle@oranode3 ~]$ cat  $GRID_BASE\/diag\/crs\/$(hostname -s)\/crs\/trace\/ocssdrim.trc | grep 'Sending a ping msg to' | tail -1\r\n2017-03-10 13:57:32.916716 :    CSSD:3347568384: clssbnmc_PeriodicPing_CB: Sending a ping msg to host oranode1, number 1, using handle (0x2525390) last msg to hub at 70720064, connection timeout at 70750064, current time 70722514\r\n<\/pre>\n<p>So by the message above, the\u00a0<strong>oranode3<\/strong> is periodically sending pings to <strong>oranode1<\/strong>, meaning this is the node to which it is connected.<\/p>\n<p>What happens when a Hub Node ceases to be a part of the cluster? In such scenario, the Leaf Nodes associated with that Hub Node will failover to one of the surviving nodes in the cluster.<\/p>\n<p>Let&#8217;s try that. On <strong>oranode1<\/strong>:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[root@oranode1 ~]# crsctl stop crs\r\nCRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oranode1'\r\nCRS-2673: Attempting to stop 'ora.crsd' on 'oranode1'\r\nCRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'oranode1'\r\n(...)\r\nCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oranode1' has completed\r\nCRS-4133: Oracle High Availability Services has been stopped.<\/pre>\n<p>Now\u00a0back on <strong>oranode3<\/strong> let&#8217;s check for any destroyed connection:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[oracle@oranode3 ~]$ cat  $GRID_BASE\/diag\/crs\/$(hostname -s)\/crs\/trace\/ocssdrim.trc | grep 'Destroying connection' | tail -1\r\n2017-03-10 14:02:02.932005 :    CSSD:3347568384: clssbnmConnDestroy: Destroying connection object (0x7f1ab4034310) for host oranode1<\/pre>\n<p>And the new connection is\u00a0estabelished to:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">[oracle@oranode3 ~]$ cat  $GRID_BASE\/diag\/crs\/$(hostname -s)\/crs\/trace\/ocssdrim.trc | grep 'Sending a ping msg to' | tail -1\r\n2017-03-10 14:04:34.377566 :    CSSD:3347568384: clssbnmc_PeriodicPing_CB: Sending a ping msg to host oranode2, number 2, using handle (0x1f83750) last msg to hub at 71141124, connection timeout at 71171124, current time 71143974<\/pre>\n<p>As expected, <strong>oranode2<\/strong>, the only survived Hub Node.<\/p>\n<p>References:<\/p>\n<ul>\n<li><a href=\"http:\/\/allthingsoracle.com\/oracle-flex-cluster-leaf-node-failover\/\" target=\"_blank\">http:\/\/allthingsoracle.com\/oracle-flex-cluster-leaf-node-failover\/<\/a><\/li>\n<li><a href=\"http:\/\/www.toadworld.com\/platforms\/oracle\/b\/weblog\/archive\/2014\/07\/24\/how-to-know-which-hub-node-is-used-by-a-leaf-node\" target=\"_blank\">http:\/\/www.toadworld.com\/platforms\/oracle\/b\/weblog\/archive\/2014\/07\/24\/how-to-know-which-hub-node-is-used-by-a-leaf-node<\/a><\/li>\n<\/ul>\n<b>Have you enjoyed? Please leave a comment or give a \ud83d\udc4d!<\/b>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-2500 jlk' href='javascript:void(0)' data-task='like' data-post_id='2500' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-2500 lc'>+4<\/span><\/a><\/div><\/div> <div class='status-2500 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>In this article, I will show how to detect to which Hub Node is your Leaf Node connected to in an Oracle Flex Cluster scenario where you have multiple Hub Servers. First of all, let&#8217;s check our current scenario: [oracle@oranode3 ~]$ crsctl get node role status -all Node &#8216;oranode1&#8217; active role is &#8216;hub&#8217; Node &#8216;oranode2&#8217; &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-2500","post","type-post","status-publish","format-standard","hentry","category-rac-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster\",\"datePublished\":\"2017-03-10T19:11:46+00:00\",\"dateModified\":\"2017-03-10T19:34:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/\"},\"wordCount\":212,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"RAC, ASM &amp; Clusterware\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/\",\"name\":\"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2017-03-10T19:11:46+00:00\",\"dateModified\":\"2017-03-10T19:34:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/03\\\/check-hub-node-leaf-node-connected-oracle-flex-cluster\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster - DBA - Rodrigo Jorge - Oracle Tips and Guides","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster","datePublished":"2017-03-10T19:11:46+00:00","dateModified":"2017-03-10T19:34:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/"},"wordCount":212,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["RAC, ASM &amp; Clusterware"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/","url":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/","name":"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2017-03-10T19:11:46+00:00","dateModified":"2017-03-10T19:34:04+00:00","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/03\/check-hub-node-leaf-node-connected-oracle-flex-cluster\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Check which Hub Node is Leaf Node connected to in Oracle Flex Cluster"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=2500"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2500\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=2500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=2500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=2500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}