{
  "date": "2016-03-11T22:52:09",
  "slug": "conversion-to-flex-asm-with-asmca-takes-5-minutes",
  "link": "https://www.dbi-services.com/blog/conversion-to-flex-asm-with-asmca-takes-5-minutes/",
  "title": {
    "rendered": "Conversion to Flex ASM with asmca takes 5 minutes"
  },
  "content": {
    "rendered": "<h2>By Franck Pachot</h2>\n<p>.<br />\nIn 12c Oracle recommands Flex ASM. You can opt for it at Grid Infrastructure installation, but it&#8217;s very easy to convert to it later from asmca. It has to configure<br />\n<!--more--></p>\n<pre><code>\n[grid@racp1vm1 ~]$ asmcmd showclustermode\nASM cluster: Flex mode disabled\n</code></pre>\n<p>In ASMCA if you are not in Flex ASM then you have the button to convert to it from the first tab. A listener will run on each node, so you define the port and the interface:<br />\n<a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureASMCAFLEXASM0.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureASMCAFLEXASM0.png\" alt=\"CaptureASMCAFLEXASM0\" width=\"1747\" height=\"1025\" class=\"alignnone size-full wp-image-7435\" /></a></p>\n<p>On my laptop with the lab environment from the <a href=\"https://www.dbi-services.com/trainings/type/oracle-en/\" target=\"_blank\" rel=\"noopener noreferrer\">dbi services Grid Infrastructure / RAC training workshop</a> running the converttoFlexASM.sh as root took 5 minutes.</p>\n<p>When it&#8217;s finished, you restart asmca and see that the convert button is not there anymore:</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureASMCAFLEXASM1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/CaptureASMCAFLEXASM1.png\" alt=\"CaptureASMCAFLEXASM1\" width=\"962\" height=\"578\" class=\"alignnone size-full wp-image-7434\" /></a></p>\n<p>you can see it from asmcmd as well:</p>\n<pre><code>\n[grid@racp1vm1 ~]$ asmcmd showclustermode\nASM cluster : Flex mode enabled\n</code></pre>\n<p>I can shutdown the ASM instance on node 2 (not from node 1 as I&#8217;ve run asmca from it):</p>\n<p><a href=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Screenshot-2016-03-11-21.15.40.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/Screenshot-2016-03-11-21.15.40.png\" alt=\"Screenshot 2016-03-11 21.15.40\" width=\"978\" height=\"587\" class=\"alignnone size-full wp-image-7438\" /></a></p>\n<p>Both nodes have the flex ASM listener:</p>\n<pre><code>\n[grid@racp1vm1 ~]$ crsctl status resource -t\n--------------------------------------------------------------------------------\nName           Target  State        Server                   State details\n--------------------------------------------------------------------------------\nLocal Resources\n--------------------------------------------------------------------------------\nora.ASMNET1LSNR_ASM.lsnr\n               ONLINE  ONLINE       racp1vm1                 STABLE\n               ONLINE  ONLINE       racp1vm2                 STABLE\nora.CRS_DG.dg\n               ONLINE  ONLINE       racp1vm1                 STABLE\n               OFFLINE OFFLINE      racp1vm2                 STABLE\nora.DATA.dg\n               ONLINE  ONLINE       racp1vm1                 STABLE\n               OFFLINE OFFLINE      racp1vm2                 STABLE\nora.DATA2.MYACFSVOL.advm\n               ONLINE  ONLINE       racp1vm1                 Volume device /dev/a\n                                                             sm/myacfsvol-160 is\n                                                             online,STABLE\n               ONLINE  ONLINE       racp1vm2                 Volume device /dev/a\n                                                             sm/myacfsvol-160 is\n                                                             online,STABLE\nora.DATA2.dg\n               ONLINE  ONLINE       racp1vm1                 STABLE\n               OFFLINE OFFLINE      racp1vm2                 STABLE\n</code></pre>\n<p>Note that the diskgroups are OFFLINE in node 2 because I stopped the ASM instance, but the ACFS filesystem is still up, thanks to flex ASM.</p>\n",
    "protected": false
  }
}
