{"id":492,"date":"2012-10-03T14:58:59","date_gmt":"2012-10-03T11:58:59","guid":{"rendered":"http:\/\/fatihacar.com\/blog\/?p=492"},"modified":"2013-05-17T15:13:39","modified_gmt":"2013-05-17T12:13:39","slug":"create-oracle-asm-disks-on-oracle-linux","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/create-oracle-asm-disks-on-oracle-linux\/","title":{"rendered":"Create Oracle Asm Disks on Oracle Linux"},"content":{"rendered":"<p>I will create three asm disks for GRID, FRA and DATA on Oracle Linux 6.3 on VMware. Asm disks will be GRID sdc, DATA sdd, FRA sde.<br \/>\n<strong>Partition the Disks<\/strong><\/p>\n<blockquote><p>\n<strong>List Disks<\/strong><br \/>\n[root@test01 dev]# ls sd*<br \/>\nsda  sda1  sda2  sdb sdb1  sdc  sdd sde<\/p>\n<p><strong>For 1. Disk<\/strong><br \/>\n[root@test01 dev]# fdisk \/dev\/sdc<br \/>\nDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel<br \/>\nBuilding a new DOS disklabel. Changes will remain in memory only,<br \/>\nuntil you decide to write them. After that, of course, the previous<br \/>\ncontent won&#8217;t be recoverable.<\/p>\n<p>The number of cylinders for this disk is set to 1305.<br \/>\nThere is nothing wrong with that, but this is larger than 1024,<br \/>\nand could in certain setups cause problems with:<br \/>\n1) software that runs at boot time (e.g., old versions of LILO)<br \/>\n2) booting and partitioning software from other OSs<br \/>\n   (e.g., DOS FDISK, OS\/2 FDISK)<br \/>\nWarning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   e   extended<br \/>\n   p   primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 1<br \/>\nFirst cylinder (1-1305, default 1):<br \/>\nUsing default value 1<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):<br \/>\nUsing default value 1305<\/p>\n<p>Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<br \/>\nSyncing disks.<\/p>\n<p><strong>For 2. Disk<\/strong><br \/>\n[root@test01 dev]# fdisk \/dev\/sdd<br \/>\nDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel<br \/>\nBuilding a new DOS disklabel. Changes will remain in memory only,<br \/>\nuntil you decide to write them. After that, of course, the previous<br \/>\ncontent won&#8217;t be recoverable.<\/p>\n<p>The number of cylinders for this disk is set to 1305.<br \/>\nThere is nothing wrong with that, but this is larger than 1024,<br \/>\nand could in certain setups cause problems with:<br \/>\n1) software that runs at boot time (e.g., old versions of LILO)<br \/>\n2) booting and partitioning software from other OSs<br \/>\n   (e.g., DOS FDISK, OS\/2 FDISK)<br \/>\nWarning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   e   extended<br \/>\n   p   primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 1<br \/>\nFirst cylinder (1-1305, default 1):<br \/>\nUsing default value 1<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):<br \/>\nUsing default value 1305<\/p>\n<p>Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<br \/>\nSyncing disks.<\/p>\n<p><strong>For 3. Disk<\/strong><br \/>\n[root@test01 dev]# fdisk \/dev\/sde<br \/>\nDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel<br \/>\nBuilding a new DOS disklabel. Changes will remain in memory only,<br \/>\nuntil you decide to write them. After that, of course, the previous<br \/>\ncontent won&#8217;t be recoverable.<\/p>\n<p>The number of cylinders for this disk is set to 1305.<br \/>\nThere is nothing wrong with that, but this is larger than 1024,<br \/>\nand could in certain setups cause problems with:<br \/>\n1) software that runs at boot time (e.g., old versions of LILO)<br \/>\n2) booting and partitioning software from other OSs<br \/>\n   (e.g., DOS FDISK, OS\/2 FDISK)<br \/>\nWarning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   e   extended<br \/>\n   p   primary partition (1-4)<br \/>\np<br \/>\nPartition number (1-4): 1<br \/>\nFirst cylinder (1-1305, default 1):<br \/>\nUsing default value 1<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):<br \/>\nUsing default value 1305<\/p>\n<p>Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<br \/>\nSyncing disks.<br \/>\n<!--more--><br \/>\n<strong>List Disks<\/strong><br \/>\n[root@test01 dev]# ls sd*<br \/>\nsda  sda1  sda2  sdb sdb1  sdc sdc1 sdd sdd1 sde sde1\n<\/p><\/blockquote>\n<p>You have to install oracleasmlib, oracleasm-support and oracleasm rpm packages for asm disk create.<\/p>\n<p><strong>Configure OracleAsm on First Node<\/strong><\/p>\n<blockquote><p>\n[root@test01 ~]# oracleasm configure -i<br \/>\nConfiguring the Oracle ASM library driver.<\/p>\n<p>This will configure the on-boot properties of the Oracle ASM library<br \/>\ndriver.  The following questions will determine whether the driver is<br \/>\nloaded on boot and what permissions it will have.  The current values<br \/>\nwill be shown in brackets (&#8216;[]&#8217;).  Hitting <ENTER> without typing an<br \/>\nanswer will keep that current value.  Ctrl-C will abort.<\/p>\n<p>Default user to own the driver interface []: grid<br \/>\nDefault group to own the driver interface []: asmadmin<br \/>\nStart Oracle ASM library driver on boot (y\/n) [n]: y<br \/>\nFix permissions of Oracle ASM disks on boot (y\/n) [y]: y<br \/>\nWriting Oracle Asm library driver configuration: done<\/p>\n<p>[root@test01 ~]# oracleasm init<br \/>\nCreating \/dev\/oracleasm mount point: \/dev\/oracleasm<br \/>\nLoading module &#8220;oracleasm&#8221;: oracleasm<br \/>\nMounting ASMlib driver filesystem: \/dev\/oracleasm<br \/>\n[root@test01 ~]# oracleasm status<br \/>\nChecking if ASM is loaded: yes<br \/>\nChecking if \/dev\/oracleasm is mounted: yes\n<\/p><\/blockquote>\n<p><strong>Configure OracleAsm on Second Node<\/strong><\/p>\n<blockquote><p>\n[root@test02 ~]# oracleasm configure -i<br \/>\nConfiguring the Oracle ASM library driver.<\/p>\n<p>This will configure the on-boot properties of the Oracle ASM library<br \/>\ndriver.  The following questions will determine whether the driver is<br \/>\nloaded on boot and what permissions it will have.  The current values<br \/>\nwill be shown in brackets (&#8216;[]&#8217;).  Hitting <ENTER> without typing an<br \/>\nanswer will keep that current value.  Ctrl-C will abort.<\/p>\n<p>Default user to own the driver interface []: grid<br \/>\nDefault group to own the driver interface []: asmadmin<br \/>\nStart Oracle ASM library driver on boot (y\/n) [n]: y<br \/>\nFix permissions of Oracle ASM disks on boot (y\/n) [y]: y<br \/>\nWriting Oracle Asm library driver configuration: done<\/p>\n<p>[root@test02 ~]# oracleasm init<br \/>\nCreating \/dev\/oracleasm mount point: \/dev\/oracleasm<br \/>\nLoading module &#8220;oracleasm&#8221;: oracleasm<br \/>\nMounting ASMlib driver filesystem: \/dev\/oracleasm<br \/>\n[root@test02 ~]# oracleasm status<br \/>\nChecking if ASM is loaded: yes<br \/>\nChecking if \/dev\/oracleasm is mounted: yes\n<\/p><\/blockquote>\n<p><strong>Create Asm Disks on First Node<\/strong><\/p>\n<blockquote><p>\n[root@test01 ~]# oracleasm createdisk GRID1 \/dev\/sdc1<br \/>\nWriting disk header: done<br \/>\nInstantiating disk: done<br \/>\n[root@test01 ~]# oracleasm createdisk DATA1 \/dev\/sdd1<br \/>\nWriting disk header: done<br \/>\nInstantiating disk: done<br \/>\n[root@test01 ~]# oracleasm createdisk FRA1 \/dev\/sde1<br \/>\nWriting disk header: done<br \/>\nInstantiating disk: done<br \/>\n[root@test01 ~]# oracleasm listdisks<br \/>\nDATA1<br \/>\nFRA1<br \/>\nGRID1\n<\/p><\/blockquote>\n<p><strong>Scan Asm Disks on Second Node<\/strong><\/p>\n<blockquote><p>\n[root@test02 ~]# oracleasm scandisks<br \/>\nReloading disk partitions: done<br \/>\nCleaning any stale ASM disks&#8230;<br \/>\nScanning system for ASM disks&#8230;<br \/>\n[root@test02 ~]# oracleasm listdisks<br \/>\nDATA1<br \/>\nFRA1<br \/>\nGRID1\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I will create three asm disks for GRID, FRA and DATA on Oracle Linux 6.3 on VMware. Asm disks will be GRID sdc, DATA sdd, FRA sde. Partition the Disks List Disks [root@test01 dev]# ls sd* sda sda1 sda2 sdb sdb1 sdc sdd sde For 1. Disk [root@test01 dev]# fdisk \/dev\/sdc Device contains neither a&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,18],"tags":[90,32,22],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-administration","category-linux-unix","tag-oracle","tag-oracle-administration","tag-system-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-7W","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":20,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/492\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}