3 Replies Latest reply: Jul 4, 2013 6:43 AM by Dude! RSS

    yum update asmlib workaround

    950599

      Hello,

       

      We would like some help with our following issue.

       

      In short:

       

      while trying to install/update asmlib with oracleasm-2.6.18-348.el5-2.0.5-1.el5.rpm

      a directory-structure containing these modules  was expected:

      -/lib/modules/2.6.18-348.el5/weak-updates/usm/oracleadvm.ko

      -/lib/modules/2.6.18-348.el5/weak-updates/usm/oracleoks.ko

      -/lib/modules/2.6.18-348.el5/weak-updates/usm/oracleacfs.ko

       

      For we didn''t have these modules at install time the install failed.

      We found a way of bypassing the problem:

      We link the 3 modules from the oracle 11.2.0 install environment to the expected /lib/modules/2.6.18-348.el5/weak-updates/usm/modulename

       

      Dillema: for we are Linux-system-managers we are not know for certain whether this is the appropriate thing to do.

      Maybe someone can shed a light on this matter?

       

      In our update-script we do:

      ----------

      # Determine Oracle ACFS/ADVM/OKS kernel module location   

      oracleacfs=$(find /app -name oracleacfs.ko -type f | grep -v i6 | grep -v xen | grep -v SLES | tail -1)   

      returns:   

      echo $oracleacfs /app/grid/product/11.2.0/install/usm/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64/bin/oracleacfs.ko   

       

      oracleadvm=$(find /app -name oracleadvm.ko -type f | grep -v i6 | grep -v xen | grep -v SLES | tail -1)   

      oracleoks=$(find /app -name oracleoks.ko -type f | grep -v i6 | grep -v xen | grep -v SLES | tail -1)   

       

      #create if not present and fill the kernel-specific usm-directory:   

      # Process all installed kernels   

      for i in $(rpm -q kernel)   

      do     

      kernel_version=$(echo ${i}|cut -d '-' -f2,3,4,5)     

       

      # Check softlinks for Oracle ACFS/ADVM/OKS kernel modules     

            if [[ ! -e /lib/modules/${kernel_version}/weak-updates/usm/oracleacfs.ko &&           

            ! -e /lib/modules/${kernel_version}/weak-updates/usm/oracleadvm.ko &&           

            ! -e /lib/modules/${kernel_version}/weak-updates/usm/oracleoks.ko ]]     

      then       

           echo "Creating softlinks for Oracle ACFS/ADVM/OKS kernel modules; ${kernel_version}" | tee -a ${LOGFILE}      

             if [[ ! -e  /lib/modules/${kernel_version}/weak-updates/usm ]]       

           then         

                mkdir -p /lib/modules/${kernel_version}/weak-updates/usm       

           fi       

            ln -s $oracleacfs /lib/modules/${kernel_version}/weak-updates/usm/oracleacfs.ko       

            ln -s $oracleadvm /lib/modules/${kernel_version}/weak-updates/usm/oracleadvm.ko       

            ln -s $oracleoks  /lib/modules/${kernel_version}/weak-updates/usm/oracleoks.ko     

           else       

            if [[ -e /lib/modules/${kernel_version}/weak-updates/usm/oracleacfs.ko &&             

            -e /lib/modules/${kernel_version}/weak-updates/usm/oracleadvm.ko &&             

            -e /lib/modules/${kernel_version}/weak-updates/usm/oracleoks.ko ]]       

      then #

      ----------

      Any help is appreciated.

       

      Regards,

       

      Harry