13 Replies Latest reply: Apr 14, 2011 3:48 PM by Levi Pereira RSS

    ASM RPM

    Bank-762
      Hello,
      I already install following package on redhat 4.5 32 bit vm machine

      # rpm -Uvh oracleasm-support-2.1.4-1.el5.i386.rpm
      warning: oracleasm-support-2.1.4-1.el5.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
      Preparing... ########################################### [100%]
      1:oracleasm-support ########################################### [100%]

      rpm -Uvh oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm
      Preparing... ########################################### [100%]
      1:oracleasm-2.6.9-55.EL ########################################### [100%]

      rpm -Uvh oracleasmlib-2.0.4-1.el5.i386.rpm
      warning: oracleasmlib-2.0.4-1.el5.i386.rpm: V3 DSA signature: NOKEY, key ID 1e5e0159
      Preparing... ########################################### [100%]
      1:oracleasmlib ########################################### [100%]

      but when i configure oracleasm it giving error

      /etc/init.d/oracleasm configure
      /etc/init.d/oracleasm: line 197: 6121 Floating point exception"${ORACLEASM}" configure -l "${ORACLE_ASMMANAGER}" -i

      uname -rm 2.6.9-55.ELsmp i686

      Please advise

      Thanks,
      Merri
        • 1. Re: ASM RPM
          Levi Pereira
          Hi,
          redhat 4.5 32
          2.6.9-55.ELsmp i686
          oracleasm-support-2.1.4-1.el5.i386.rpm ?????????? RHEL5
          oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm - ????? Your current Kernel is ELsmp then you must install package to Kernel ELsmp
          oracleasmlib-2.0.4-1.el5.i386.rpm ???????????? RHEL5
          Please remove packages above and install right packages below.

          http://www.oracle.com/technetwork/topics/linux/downloads/rhel4-092650.html

          oracleasm-support-2.1.4-1.el4.i386.rpm
          oracleasmlib-2.0.4-1.el4.i386.rpm
          oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm
          rpm -ivh http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel4/x86/2.1.4/oracleasm-support-2.1.4-1.el4.i386.rpm
          rpm -ivh http://oss.oracle.com/projects/oracleasm/dist/files/RPMS/rhel4/x86/2.0.3/2.6.9-55.EL/oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm
          rpm -ivh http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el4.i386.rpm
          Regards,
          Levi Pereira

          Edited by: Levi Pereira on Apr 11, 2011 8:28 PM
          • 2. Re: ASM RPM
            Bank-762
            Hello,
            To remove package in redhat 4.5 i can use rpm -e oracleasm-support????is this right way to delete package which i already installed on vm machine

            Thanks,
            Merri
            • 3. Re: ASM RPM
              Levi Pereira
              Hi,
              user8308403 wrote:
              Hello,
              To remove package in redhat 4.5 i can use rpm -e oracleasm-support????is this right way to delete package which i already installed on vm machine
              ### find package installed 
              
               rpm -qa |grep oracleasm
              
              ### Remove package
              
              rpm -e <package_name>
              Regards,
              Levi Pereira
              • 4. Re: ASM RPM
                Bank-762
                Thanks alot levi for brief description i installed rpm but after installation when i configure it giving me error,kindly advise

                # ls -ltr
                total 332
                -rw-r--r-- 1 root root 73338 Mar 26 22:07 install.log.syslog
                -rw-r--r-- 1 root root 60034 Mar 26 22:07 install.log
                -rw-r--r-- 1 root root 1029 Mar 26 22:07 anaconda-ks.cfg
                -rwxrw-rw- 1 root root 22662 Apr 12 19:26 oracleasm-support-2.0.3-1.i386.rpm
                -rwxrw-rw- 1 root root 13638 Apr 12 19:28 oracleasmlib-2.0.2-1.i386.rpm
                -rwxrw-rw- 1 root root 127517 Apr 12 21:30 oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm
                drwxr-xr-x 2 root root 4096 Apr 12 21:31 Desktop
                #
                #
                # rpm -ivh oracleasm*
                Preparing... ########################################### [100%]
                1:oracleasm-support ########################################### [ 33%]
                2:oracleasm-2.6.9-55.EL ########################################### [ 67%]
                3:oracleasmlib ########################################### [100%]
                #
                # /etc/init.d/oracleasm configure
                Configuring the Oracle ASM library driver.

                This will configure the on-boot properties of the Oracle ASM library
                driver. The following questions will determine whether the driver is
                loaded on boot and what permissions it will have. The current values
                will be shown in brackets ('[]'). Hitting <ENTER> without typing an
                answer will keep that current value. Ctrl-C will abort.

                Default user to own the driver interface []: oracle
                Default group to own the driver interface []: dba
                Start Oracle ASM library driver on boot (y/n) [n]: y
                Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
                Writing Oracle ASM library driver configuration: [  OK  ]
                Creating /dev/oracleasm mount point: [  OK  ]
                Loading module "oracleasm": Unable to load module "oracleasm"
                [FAILED]
                # /etc/init.d/oracleasm configure
                Configuring the Oracle ASM library driver.

                This will configure the on-boot properties of the Oracle ASM library
                driver. The following questions will determine whether the driver is
                loaded on boot and what permissions it will have. The current values
                will be shown in brackets ('[]'). Hitting <ENTER> without typing an
                answer will keep that current value. Ctrl-C will abort.

                Default user to own the driver interface [oracle]:
                Default group to own the driver interface [dba]:
                Start Oracle ASM library driver on boot (y/n) [y]: n
                Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
                Writing Oracle ASM library driver configuration: [  OK  ]
                #
                # /etc/init.d/oracleasm configure
                Configuring the Oracle ASM library driver.

                This will configure the on-boot properties of the Oracle ASM library
                driver. The following questions will determine whether the driver is
                loaded on boot and what permissions it will have. The current values
                will be shown in brackets ('[]'). Hitting <ENTER> without typing an
                answer will keep that current value. Ctrl-C will abort.

                Default user to own the driver interface [oracle]:
                Default group to own the driver interface [dba]:
                Start Oracle ASM library driver on boot (y/n) [n]: y
                Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
                Writing Oracle ASM library driver configuration: [  OK  ]
                Loading module "oracleasm": Unable to load module "oracleasm"
                [FAILED]
                uname -rm = 2.6.9-55.ELsmp i686

                Thanks,
                Merri
                • 5. Re: ASM RPM
                  Levi Pereira
                  Hi,
                  Loading module "oracleasm": Unable to load module "oracleasm"
                  [FAILED]
                  uname -rm = 2.6.9-55.ELsmp i686
                  Check if SELinux is disable or in permissive mode.

                  If SELinux is enable(enforcing) you must disable SELinux or put it in permissive mode.

                  Use this tool
                  # system-config-securitylevel

                  or manually:

                  1) Go to modify /etc/selinux/config in redhat. It looks like this:

                  # SELINUX= can take one of these three values:
                  # enforcing – SELinux security policy is enforced.
                  # permissive – SELinux prints warnings instead of enforcing.
                  # disabled – SELinux is fully disabled.
                  SELINUX=enforcing —> change it to SELINUX=disabled
                  2) Reboot server to take it effect

                  Regards,
                  Levi Pereira
                  • 6. Re: ASM RPM
                    Bank-762
                    Thanks alot levi for prompt reply,will you please give some useful link to download asm guide and good articles,kindly share your experience i am new in asm technology

                    Tell me one more thing i install oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm but i had to install this oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm this rpm i found in rhel-4 becauze i am working on 2.6.9-55.ELsmp i686 kernel which use ELsmp
                    am i right?

                    Thanks & Regards,
                    Merri

                    Edited by: user8308403 on Apr 12, 2011 12:24 PM
                    • 7. Re: ASM RPM
                      Levi Pereira
                      Hi,
                      user8308403 wrote:
                      Thanks alot levi for prompt reply,will you please give some useful link to download asm guide and good articles,kindly share your experience i am new in asm technology
                      You can use this notes on MOS:
                      *FAQ ASMLIB CONFIGURE,VERIFY, TROUBLESHOOT [ID 359266.1]*

                      *Tips On Installing and Using ASMLib on Linux [ID 394953.1]*

                      Or OTN:
                      http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

                      >
                      Tell me one more thing i install oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm but i had to install this oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm this rpm i found in rhel-4 becauze i am working on 2.6.9-55.ELsmp i686 kernel which use ELsmp
                      am i right?
                      The package oracleasm must be installed according version and type of Kernel.

                      You can install all packages (kernel types) from an Kernel Version (i.e 2.6.9-55.*).


                      e.g

                      Kernel : 2.6.9-55 ( EL)
                      You must install and use oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm

                      Kernel : 2.6.9-55 ( ELsmp)
                      You must install and use oracleasm-2.6.9-55.ELsmp-2.0.3-1.i686.rpm

                      You can have both packages installed, but each package will use only your kernel current.


                      See this example in my envorimment.
                      $ rpm -qa |grep oracleasm-2.6
                      oracleasm-2.6.18-194.el5debug-2.0.5-1.el5
                      oracleasm-2.6.18-194.el5xen-2.0.5-1.el5
                      oracleasm-2.6.18-194.el5-2.0.5-1.el5
                      oracleasm-2.6.18-194.el5PAE-2.0.5-1.el5
                      
                      ### I have installed 4 package to 4 different types of kernel.
                      
                      ## My current kernel is :
                      
                      uname -r
                      2.6.18-194.el5
                      
                      So the package configured and in use : oracleasm-2.6.18-194.el5-2.0.5-1.el5
                      Regards,
                      Levi Pereira
                      • 8. Re: ASM RPM
                        Bank-762
                        Hello,
                        i have installed linux redhat 4.5/4.7 and i manually set the partition in the starting of Linux installation for e.g
                        / 30gb
                        /boot 4gb
                        /tmp 4gb
                        /oracle 15gb

                        when i installation required rpm oracleasmlib,oracleasm-support and kernel.asm convert above partition to it's own partition....is this right?

                        Thanks,
                        Merri
                        • 9. Re: ASM RPM
                          Levi Pereira
                          Hi Merri,
                          when i installation required rpm oracleasmlib,oracleasm-support and kernel.asm convert above partition to it's own partition....is this right?
                          No, its complete wrong.

                          You need the concept of ASM.

                          I recommend you: Introduction to Automatic Storage Management (ASM)
                          http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmcon.htm

                          Here an good article about how configure ASMLib and ASM
                          ASM using ASMLib and Raw Devices
                          http://www.oracle-base.com/articles/10g/ASMUsingASMLibAndRawDevices.php

                          i have installed linux redhat 4.5/4.7 and i manually set the partition in the starting of Linux installation for e.g
                          / 30gb
                          /boot 4gb
                          /tmp 4gb
                          /oracle 15gb
                          You don't need format device (partition) just create a partition with fdisk like /dev/sdb1 and mark this partition as ASMDISK

                          e.g
                          /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
                          After that you install Oracle Software and Configure ASM.

                          Regards,
                          Levi Pereira
                          • 10. Re: ASM RPM
                            Bank-762
                            Thank alot levi for brief description,All asm package configure with help of you.

                            will you please guide me how to create partition through fdisk i want to create 4 partition/disk.please explain in brief i want to learn but unable to create fdisk partition i tried it but it corrupt my vm machine partition and machine got hang.

                            # df -ah
                            Filesystem Size Used Avail Use% Mounted on
                            /dev/sda3 12G 6.8G 4.6G 60% /
                            none 0 0 0 - /proc
                            none 0 0 0 - /sys
                            none 0 0 0 - /dev/pts
                            usbfs 0 0 0 - /proc/bus/usb
                            /dev/sda1 3.0G 43M 2.8G 2% /boot
                            none 246M 0 246M 0% /dev/shm
                            /dev/sda2 15G 2.4G 12G 18% /oracle
                            /dev/sda6 3.9G 585M 3.2G 16% /tmp
                            none 0 0 0 - /proc/sys/fs/binfmt_misc
                            none 0.0K 0.0K 0.0K - /proc/fs/vmblock/mountPoint
                            sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs



                            # fdisk -l

                            Disk /dev/sda: 48.3 GB, 48318382080 bytes
                            255 heads, 63 sectors/track, 5874 cylinders
                            Units = cylinders of 16065 * 512 = 8225280 bytes

                            Device Boot Start End Blocks Id System
                            /dev/sda1 * 1 387 3108546 83 Linux
                            /dev/sda2 388 2299 15358140 83 Linux
                            /dev/sda3 2300 3866 12586927+ 83 Linux
                            /dev/sda4 3867 5874 16129260 5 Extended
                            /dev/sda5 3867 4886 8193118+ 82 Linux swap
                            /dev/sda6 4887 5402 4144738+ 83 Linux


                            Thanks
                            Warm Regards,
                            Merri

                            Edited by: user8308403 on Apr 13, 2011 8:59 AM
                            • 11. Re: ASM RPM
                              Levi Pereira
                              Hi,

                              Please follow this guide STEP-BY-STEP.

                              http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVMwareServer2.php

                              Regards,
                              Levi Pereira
                              • 12. Re: ASM RPM
                                Bank-762
                                You don't need format device (partition) just create a partition with fdisk like /dev/sdb1 and mark this partition as ASMDISK

                                e.g
                                /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
                                After that you install Oracle Software and Configure ASM.

                                How can i create i tried but failed.firstly i have to create primary then select second /dev/sdb2 then create primary then /dev/sdb3,so what is role of extended partition and logical shud i create extended and logical also?

                                Thanks,
                                Merri
                                • 13. Re: ASM RPM
                                  Levi Pereira
                                  Hi,

                                  Let's use the disk sdb but without using extended partition.
                                  I suppose wich the disk sdb is only for tests and is avaliable only to Oracle ASM.
                                  cd /dev
                                  # ls sd*
                                  sda  sda1  sda2  sdb  
                                  So, lets create primary partition on disk sdb
                                  fdisk /dev/sdb
                                  Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
                                  Building a new DOS disklabel. Changes will remain in memory only,
                                  until you decide to write them. After that, of course, the previous
                                  content won't be recoverable.
                                  
                                  
                                  The number of cylinders for this disk is set to 1305.
                                  There is nothing wrong with that, but this is larger than 1024,
                                  and could in certain setups cause problems with:
                                  1) software that runs at boot time (e.g., old versions of LILO)
                                  2) booting and partitioning software from other OSs
                                     (e.g., DOS FDISK, OS/2 FDISK)
                                  Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
                                  
                                  Command (m for help): n
                                  Command action
                                     e   extended
                                     p   primary partition (1-4)
                                  p
                                  Partition number (1-4): 1
                                  First cylinder (1-1305, default 1):
                                  Using default value 1
                                  Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305):
                                  Using default value 1305
                                  
                                  Command (m for help): p
                                  
                                  Disk /dev/sdb: 10.7 GB, 10737418240 bytes
                                  255 heads, 63 sectors/track, 1305 cylinders
                                  Units = cylinders of 16065 * 512 = 8225280 bytes
                                  
                                     Device Boot      Start         End      Blocks   Id  System
                                  /dev/sdb1               1        1305    10482381   83  Linux
                                  
                                  Command (m for help): w
                                  The partition table has been altered!
                                  
                                  Calling ioctl() to re-read partition table.
                                  Syncing disks.
                                  Then just mark the Partition sdb1 as ASMDISK.
                                  /usr/sbin/oracleasm createdisk VOL1 /dev/sdb1
                                  Just it.


                                  Regards,
                                  Levi Pereira