{"id":13737,"date":"2020-01-30T12:52:56","date_gmt":"2020-01-30T12:52:56","guid":{"rendered":"https:\/\/ittutorial.org\/?p=13737"},"modified":"2020-03-09T12:31:15","modified_gmt":"2020-03-09T12:31:15","slug":"configure-disk-devices-using-oracle-asmlib","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/configure-disk-devices-using-oracle-asmlib\/","title":{"rendered":"configure disk devices using Oracle ASMLIB"},"content":{"rendered":"<p>To manage Oracle database\u2019s storage, Oracle recommends The Automatic Storage Management (ASM) to be used regardless of database\u2019s configuration: single-instance Oracle Database or Oracle Real Application Clusters configurations. It is really Oracle ASM is a storage management\u2019s solution and used an alternative to conventional volume managers, file systems, and raw devices. However Oracle ASM can be used with other storage management in order to facilitate its implementation into pre-existing environments.<\/p>\n<p>The Oracle ASM functionality organized data storage as disk groups. Every disk group is organized as one or more failure groups. Every one is defined over a set of disks. And every disk can be raw physical volumes, a disk partition, a LUN presenting a disk array, or even an LVM or NAS device.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-13739 aligncenter\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2020\/01\/ASM-DiskGroups-Architecture-1-300x168.png\" alt=\"\" width=\"300\" height=\"168\" srcset=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2020\/01\/ASM-DiskGroups-Architecture-1-300x168.png 300w, https:\/\/ittutorial.org\/wp-content\/uploads\/2020\/01\/ASM-DiskGroups-Architecture-1-768x431.png 768w, https:\/\/ittutorial.org\/wp-content\/uploads\/2020\/01\/ASM-DiskGroups-Architecture-1-800x445.png 800w, https:\/\/ittutorial.org\/wp-content\/uploads\/2020\/01\/ASM-DiskGroups-Architecture-1.png 819w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong><em>DISK GROUP&#8217;s Architecture In Oracle ASM<\/em><\/strong><\/p>\n<p>So in this post we will configure disk devices to use in an Oracle Automatic Storage Management disk group using Oracle Automatic Storage Management library driver.<\/p>\n<p>First of all we have to <strong>install or configure the disk devices that you intend to use for the disk group and restart the system<\/strong>.<\/p>\n<p>After that we can configure disk devices to use in an Oracle Automatic Storage Management disk group:<\/p>\n<p>First we will identify the device name for the disks to use:<\/p>\n<p><strong><em>\u00a0\/sbin\/fdisk -l<\/em><\/strong><\/p>\n<p style=\"text-align: left\">\u00a0After that we will install Oracle Automatic Storage Management library driver (Oracle ASMLIB) using the\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 following\u00a0 command:<\/p>\n<p><strong><em>yum install oracleasmlib<br \/>\nyum install oracleasm-support<\/em><\/strong><\/p>\n<p>To configure the Oracle Automatic Storage Management library driver, we issue this command:<\/p>\n<p><strong><em>\/usr\/sbin\/oracleasm configure -i<\/em><\/strong><\/p>\n<p>To load the Oracle Automatic Storage Management library driver without restarting the system, we issue this command:<\/p>\n<p><strong><em>\/usr\/sbin\/oracleasm init<\/em><\/strong><\/p>\n<p>To create the disk device for use with the Oracle Automatic Storage Management library driver, we issue this command:<\/p>\n<p><strong><em>usr\/sbin\/oracleasm createdisk Vol01 \/dev\/sdb1<br \/>\nusr\/sbin\/oracleasm createdisk Vol02 \/dev\/sdc1<\/em><\/strong><\/p>\n<p>To verify the disk created, we issue this command:<\/p>\n<p><strong><em>usr\/sbin\/oracleasm querydisk \/dev\/sdb1<\/em><\/strong><\/p>\n<p><strong><em>usr\/sbin\/oracleasm querydisk \/dev\/sdc1<\/em><\/strong><\/p>\n<p>Also,we can check with listdisks:<\/p>\n<p><strong><em> \/usr\/sbin\/oracleasm listdisks<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To manage Oracle database\u2019s storage, Oracle recommends The Automatic Storage Management (ASM) to be used regardless of database\u2019s configuration: single-instance Oracle Database or Oracle Real Application Clusters configurations. It is really Oracle ASM is a storage management\u2019s solution and used an alternative to conventional volume managers, file systems, and raw devices. However Oracle ASM can &hellip;<\/p>\n","protected":false},"author":10452,"featured_media":13740,"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,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7586,5043,1994],"tags":[7410,7406,5198,171,7398,6937,7402,7408,7407,7400,7397,7396,7401,7403,7405,7409,1171,5189,7399,7404],"class_list":["post-13737","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-asm","category-install","category-oracle","tag-asm-disk-configuration-in-redhat-linux-centos","tag-asm-diskgroups-architecture","tag-asmlib","tag-automatic-storage-management","tag-automatic-storage-management-library-driver","tag-centos-7","tag-configure-disk-devices-in-linux-7","tag-configure-disk-to-use-in-asm-diskgroup","tag-configure-oracle-asm-library-driver","tag-createdisk","tag-disk-failure","tag-disk-group","tag-install-oracle-asm-library-driver","tag-linux-7","tag-list-disk","tag-load-oracle-asmlib","tag-oracle-asm","tag-oracleasm","tag-querydisk","tag-redhat-7"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/ittutorial.org\/wp-content\/uploads\/2020\/01\/Oracle.jpg","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/13737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/10452"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=13737"}],"version-history":[{"count":1,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/13737\/revisions"}],"predecessor-version":[{"id":13741,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/13737\/revisions\/13741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media\/13740"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=13737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=13737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=13737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}