{"id":1554,"date":"2017-03-24T15:52:45","date_gmt":"2017-03-24T13:52:45","guid":{"rendered":"http:\/\/www.ludovicocaldara.net\/dba\/?p=1554"},"modified":"2020-08-18T16:14:41","modified_gmt":"2020-08-18T14:14:41","slug":"ksv-master-wait-asm-file-metadata-operation","status":"publish","type":"post","link":"https:\/\/www.ludovicocaldara.net\/dba\/ksv-master-wait-asm-file-metadata-operation\/","title":{"rendered":"Another problem with &#8220;KSV master wait&#8221; and &#8220;ASM file metadata operation&#8221;"},"content":{"rendered":"<p>My customer today tried to do a duplicate on a cluster. When preparing the auxiliary instance, she noticed that the startup nomount was hanging forever: Nothing in the alert, nothing in the trace files.<\/p>\n<p>Because the database and the spfile were stored inside ASM, I&#8217;ve been quite suspicious&#8230;<\/p>\n<p>The ASM trace files had the following entries:<\/p>\n<pre class=\"lang:plsql decode:true \">kfgbDiscoverNow: called for group 1\/0x9f5bfe53 (ACFS)\r\n\r\n*** 2017-03-24 12:42:13.327\r\n2017-03-24 12:42:13.327: [    GPNP]clsgpnp_dbmsGetItem_profile: [at clsgpnp_dbms.c:345] Result: (0) CLSGPNP_OK. (:GPNP00401:)got ASM-Profile.DiscoveryString='\/dev\/mapper\/asm_*,\/dev\/asm_*'\r\n\r\n*** 2017-03-24 12:42:15.386\r\nkfgbTryFn: failed to acquire DG.1.3 for kfgbRefreshNow (of group 1\/0x9f5bfe53)\r\n\r\n*** 2017-03-24 12:42:18.387\r\nkfgbTryFn: failed to acquire DG.1.3 for kfgbRefreshNow (of group 1\/0x9f5bfe53)\r\n\r\n*** 2017-03-24 12:42:21.393\r\nkfgbTryFn: failed to acquire DG.1.3 for kfgbRefreshNow (of group 1\/0x9f5bfe53)\r\n\r\n*** 2017-03-24 12:42:24.398\r\nkfgbTryFn: failed to acquire DG.1.3 for kfgbRefreshNow (of group 1\/0x9f5bfe53)\r\n\r\n*** 2017-03-24 12:42:27.403\r\nkfgbTryFn: failed to acquire DG.1.3 for kfgbRefreshNow (of group 1\/0x9f5bfe53)<\/pre>\n<p>The ASM instance had the following sessions waiting:<\/p>\n<pre class=\"lang:plsql decode:true \">SQL&gt;  select inst_id, sid, serial#, status, event, wait_class, wait_time, logon_time , program, machine from gv$session where wait_class!='Idle' order by sid;\r\n\r\nINST_ID  SID SERIAL# STATUS  EVENT                        WAIT_CLASS WAIT_TIME LOGON_TIME          PROGRAM                             MACHINE\r\n------- ---- ------- ------- ---------------------------- ---------- --------- ------------------- ----------------------------------- --------\r\n      2   36   41916 ACTIVE  ASM file metadata operation  Other              0 24.03.2017 13:47:28 oracle@clusrv02 (O001)              clusrv02\r\n      2  266   64885 ACTIVE  KSV master wait              Other              0 24.03.2017 13:47:25 oracletorcl01v@clusrv02 (TNS V1-V3) clusrv02\r\n      1  483   63446 ACTIVE  KSV master wait              Other              0 24.03.2017 13:31:14 oracletorcl01v@clusrv01 (TNS V1-V3) clusrv01\r\n      1  497   31202 ACTIVE  ASM file metadata operation  Other              0 24.03.2017 13:39:07 oracletorcl01v@clusrv01 (TNS V1-V3) clusrv01\r\n      3  708     484 ACTIVE  ASM file metadata operation  Other              0 24.03.2017 12:38:56 OMS                                 omssrv01<\/pre>\n<p><strong>OMS?<\/strong><\/p>\n<p>Around 12:38:56, another colleague in the office added a disk to one of the disk groups, through Enterprise Manager 12c!<\/p>\n<p>But there were no rebalance operations:<\/p>\n<pre class=\"lang:plsql decode:true \">SQL&gt; select * from gv$asm_operation;\r\n\r\nno rows selected\r\n<\/pre>\n<p>It&#8217;s not the first time that I hit this type of problems. Sadly, sometimes it requires a full restart of the cluster or of ASM (because of different bugs).<\/p>\n<p>This time, however, I have tried to kill only the foreground sessions waiting on &#8220;ASM file metadata operation&#8221;, starting with the one coming from the OMS.<\/p>\n<p>Surprisingly, after killing that session, everything was fine again:<\/p>\n<pre class=\"lang:plsql decode:true \">-- on +ASM3\r\nSQL&gt; alter system kill session '708,484';\r\n\r\nSystem altered.\r\n\r\nSQL&gt;\r\n\r\nSQL&gt;  select inst_id, sid, serial#, status, event, wait_class, wait_time, logon_time , program, machine from gv$session where wait_class!='Idle' order by sid;\r\n\r\nno rows selected\r\n\r\nSQL&gt;<\/pre>\n<p>I never add disks via OMS (I&#8217;m a sqlplus guy ;-)) , I wonder what went wrong with it \ud83d\ude42<\/p>\n<p>&#8212;<\/p>\n<p>Ludovico<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My customer today tried to do a duplicate on a cluster. When preparing the auxiliary instance, she noticed that the startup nomount was hanging forever: Nothing in the alert, nothing in the trace files. Because the database and the spfile &hellip; <a href=\"https:\/\/www.ludovicocaldara.net\/dba\/ksv-master-wait-asm-file-metadata-operation\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[327,326,3,52,149],"tags":[],"class_list":["post-1554","post","type-post","status-publish","format-standard","hentry","category-oracle-maa","category-oracle","category-oracledb","category-12c","category-oracle-rac"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/1554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/comments?post=1554"}],"version-history":[{"count":2,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/1554\/revisions"}],"predecessor-version":[{"id":1556,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/1554\/revisions\/1556"}],"wp:attachment":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/media?parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/categories?post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/tags?post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}