6 Replies Latest reply: Mar 26, 2012 5:01 AM by 912595 RSS

    Disks not showing in Diskgroup Creation

    Umesh Gupta
      Hi Friends,

      OS:Redhat 4
      Oracle Version: 10.2.0.1

      I have installed Redhat 4 on Virtual machine and after that i have also installed oracle database successfully.

      When i am trying to create a ASM diskgroup, i am not able to see the disks which i have created at disk discovery path(/software/nfsdg).

      Please suggest where i am going wrong.



      [root@localhost ~]# df -h
      
      Filesystem                           Size  Used Avail Use% Mounted on
      
      /dev/mapper/VolGroup00-LogVol00          19G  12G  6.6G  63% /
      
      /dev/sda1                             99M  9.0M   85M  10% /boot
      
      none                                 506M     0  506M   0% /dev/shm
      
      [root@localhost ~]#
      
      [root@localhost ~]# cd /software/
      
      [root@localhost software]# ls -ltr
      
      total 24
      
      drwxr-xr-x  3 oracle oinstall 4096 Mar 24 22:17 oracle_dump
      
      drwxr-xr-x  5 oracle oinstall 4096 Mar 25 00:26 oracle
      
      drwxr-xr-x  2 oracle oinstall 4096 Mar 25 00:28 nfsdg
      
      [root@localhost software]# cd nfsdg/
      
      [root@localhost nfsdg]# ls -ltr
      
      total 4198412
      
      -rwxr-xr-x  1 oracle oinstall 2147483648 Mar 25 00:18 disk01
      
      -rwxr-xr-x  1 oracle oinstall 2147483648 Mar 25 12:15 disk02
      
      [root@localhost nfsdg]#
      Regards

      Umesh
        • 1. Re: Disks not showing in Diskgroup Creation
          912595
          Umesh Gupta wrote:
          Hi Friends,

          OS:Redhat 4
          Oracle Version: 10.2.0.1

          I have installed Redhat 4 on Virtual machine and after that i have also installed oracle database successfully.

          When i am trying to create a ASM diskgroup, i am not able to see the disks which i have created at disk discovery path(/software/nfsdg).

          Please suggest where i am going wrong.



          [root@localhost ~]# df -h
          
          Filesystem                           Size  Used Avail Use% Mounted on
          
          /dev/mapper/VolGroup00-LogVol00          19G  12G  6.6G  63% /
          
          /dev/sda1                             99M  9.0M   85M  10% /boot
          
          none                                 506M     0  506M   0% /dev/shm
          
          [root@localhost ~]#
          
          [root@localhost ~]# cd /software/
          
          [root@localhost software]# ls -ltr
          
          total 24
          
          drwxr-xr-x  3 oracle oinstall 4096 Mar 24 22:17 oracle_dump
          
          drwxr-xr-x  5 oracle oinstall 4096 Mar 25 00:26 oracle
          
          drwxr-xr-x  2 oracle oinstall 4096 Mar 25 00:28 nfsdg
          
          [root@localhost software]# cd nfsdg/
          
          [root@localhost nfsdg]# ls -ltr
          
          total 4198412
          
          -rwxr-xr-x  1 oracle oinstall 2147483648 Mar 25 00:18 disk01
          
          -rwxr-xr-x  1 oracle oinstall 2147483648 Mar 25 12:15 disk02
          
          [root@localhost nfsdg]#
          Regards

          Umesh
          I have following questions

          1) You said you have created db successfully, did you use ASM for datafiles in diskgroup already?
          2) how did you created this disk? disk01,disk02? . You have used ASMLIB?
          3) Are you creating new diskgroup?

          Show us the output of
          select group_number, disk_number, mount_status, header_status, state, path, failgroup from v$asm_disk;

          Show parameter file for asm

          Also let us know what you have done already?

          Also see:
          http://www.idevelopment.info/data/Oracle/DBA_tips/Automatic_Storage_Management/ASM_10.shtml#Identify%20RAW%20Devices
          • 2. Re: Disks not showing in Diskgroup Creation
            Umesh Gupta
            1) You said you have created db successfully, did you use ASM for datafiles in diskgroup already?
            I have installed the database software only..Not created the database.
            2) how did you created this disk? disk01,disk02? . You have used ASMLIB?
            i have created the disks using dd command of linux.

            No,i have not used ASMLIB .
            3) Are you creating new diskgroup?
            yes,i am trying to create a new diskgroup.

            Also let us know what you have done already?
            Created virtual machine of linux
            installed database software
            now trying to create a ASM diskgroup through DBCA.


            Regards

            Umesh
            • 3. Re: Disks not showing in Diskgroup Creation
              sybrand_b
              Normally one would create asmdisks using the oracleasm create command using root
              and the asmca command to create a diskgroup after having installed Grid Infrastructure for Standalone Server.
              It seems you left out several things.

              ----------
              Sybrand Bakker
              Senior Oracle DBA
              • 4. Re: Disks not showing in Diskgroup Creation
                912595
                Umesh Gupta wrote:
                1) You said you have created db successfully, did you use ASM for datafiles in diskgroup already?
                I have installed the database software only..Not created the database.
                2) how did you created this disk? disk01,disk02? . You have used ASMLIB?
                i have created the disks using dd command of linux.

                No,i have not used ASMLIB .
                3) Are you creating new diskgroup?
                yes,i am trying to create a new diskgroup.

                Also let us know what you have done already?
                Created virtual machine of linux
                installed database software
                now trying to create a ASM diskgroup through DBCA.


                Regards

                Umesh
                Ok, thats clear....

                Now you have to install oracle ASMLib driver to create disk so that ASM can detact recognise.

                Once ASMLib rmp is installed do following

                #/etc/init.d/oracleasm configure

                Create asm disk:
                # /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1

                For details have a look at http://www.oracle-base.com/articles/10g/ASMUsingASMLibAndRawDevices.php
                • 5. Re: Disks not showing in Diskgroup Creation
                  Umesh Gupta
                  Thanks for the reply.

                  But like in NFS storage, I have created disks as same with DD command and also used them in my ASM DiskGroup. Can not i do here?

                  in current scenriao i have no other space other tahn current one:
                  [root@localhost ~]# df -h
                   
                  Filesystem                           Size  Used Avail Use% Mounted on
                   
                  /dev/mapper/VolGroup00-LogVol00          19G  12G  6.6G  63% / 
                   
                  /dev/sda1                             99M  9.0M   85M  10% /boot
                   
                  none                                 506M     0  506M   0% /dev/shm
                   
                  [root@localhost ~]#
                  What ever space i have, i have in /,Please suggest, is it possible to use the space in / and create ASM diskgroup.

                  or i need to install OS again and do the partitioning again and create some partitions other than "/" for ASM diskgroup creation.

                  Thanks

                  Umesh
                  • 6. Re: Disks not showing in Diskgroup Creation
                    912595
                    Umesh Gupta wrote:
                    Thanks for the reply.

                    But like in NFS storage, I have created disks as same with DD command and also used them in my ASM DiskGroup. Can not i do here?

                    in current scenriao i have no other space other tahn current one:
                    [root@localhost ~]# df -h
                    
                    Filesystem                           Size  Used Avail Use% Mounted on
                    
                    /dev/mapper/VolGroup00-LogVol00          19G  12G  6.6G  63% / 
                    
                    /dev/sda1                             99M  9.0M   85M  10% /boot
                    
                    none                                 506M     0  506M   0% /dev/shm
                    
                    [root@localhost ~]#
                    What ever space i have, i have in /,Please suggest, is it possible to use the space in / and create ASM diskgroup.

                    or i need to install OS again and do the partitioning again and create some partitions other than "/" for ASM diskgroup creation.

                    Thanks

                    Umesh
                    If you have already partitioned disk into numbers of partitions then these can be used as asm disks. But remember to lable these partition as ASM disk you need to have configuration of ASMLIB software/kernal, which will mark/label these partitions as ASM disks. And these would be asm disk which ASM instance can recognize. ASM cannot recognize these partition like /dev/sdb1.

                    For example if you have patition created like
                    /dev/sdb1
                    /dev/sda1
                    /dev/sdc1
                    Then create asm disk as
                    /etc/init.d/oracleasm createdisk ASMDISK1 /dev/sdb1
                    /etc/init.d/oracleasm createdisk ASMDISK2 /dev/sda1
                    /etc/init.d/oracleasm createdisk ASMDISK3 /dev/sdc1

                    Now asm disk are ready and you would be using them to for DG
                    Also read the link which i specified last

                    Hope this help