This discussion is archived
7 Replies Latest reply: Aug 22, 2013 5:37 AM by Pradeepcmst RSS

asm 、asmlib、udev

MR.L Newbie
Currently Being Moderated

Build rac 11g r2, use ASM, you must install ASMLIB do?

UDEV and ASMLIB, can be used together?

 

搭建 rac 11g r2,使用ASM,必须要安装ASMLIB吗?

UDEV与ASMLIB,可以一起使用?

  • 1. Re: asm 、asmlib、udev
    JavierFranciscoRuiz Explorer
    Currently Being Moderated

    What OS are you using.

     

    The answer is no you do not need to use asmlib you ca  just usd udev.

     

    Note that asmlib will soon not be available for any OS other then Oracle Enterprise Linux so you would need to use something udev.

  • 2. Re: asm 、asmlib、udev
    MR.L Newbie
    Currently Being Moderated

    hello JavierFranciscoRuiz

    tanks for ask answer!!

     

    os:oracle linux 6.4

     

    Can explain in detail?

  • 3. Re: asm 、asmlib、udev
    JavierFranciscoRuiz Explorer
    Currently Being Moderated

    Since you are using Oracle Linux you can use asmlib. I don't see a benefit of using asmlib and udev.

  • 4. Re: asm 、asmlib、udev
    MR.L Newbie
    Currently Being Moderated

    In a production environment, are recommended in what way?

    I saw an article oracle: http://www.oracle.com/technetwork/cn/articles/hunter-rac11gr2-iscsi-2-092412-zhs.html

    Article wrote,

    First, use udev to do binding.

    Then, use asmlib did it again binding.

    Do not understand why?

  • 5. Re: asm 、asmlib、udev
    JavierFranciscoRuiz Explorer
    Currently Being Moderated

    Check the link below you do not need to use ASM if using udev but if on Oracle Linux you can use asmlib.

     

    http://www.jobacle.nl/wp-content/uploads/2012/06/rhel_asmlib_to_udev.pdf

  • 6. Re: asm 、asmlib、udev
    botang(唐波) Explorer
    Currently Being Moderated

    you can use rawdevices to make it function well:

     

    /etc/sysconfig/rawdevices:

    /dev/raw/raw7  /dev/sda7

    /dev/raw/raw8  /dev/sda8

    /dev/raw/raw9  /dev/sda9

    /dev/raw/raw10  /dev/sda10

    /dev/raw/raw11  /dev/sda11

    /dev/raw/raw12  /dev/sda12

    /dev/raw/raw13  /dev/sda13

    /dev/raw/raw14  /dev/sda14

    /dev/raw/raw15  /dev/sda15

     

    /etc/rc.d/init.d/rawdevices:

     

     

    #!/bin/bash

    #

    # rawdevices       This shell script assignes rawdevices to block devices

    #

    # chkconfig: 345 56 44

    # description: This scripts assignes raw devices to block devices \

    #              (such as hard drive partitions). This is for the use \

    #           of applications such as Oracle. You can set up the \

    #           raw device to block device mapping by editing \

    #           the file /etc/sysconfig/rawdevices.

    #

    # config: /etc/sysconfig/rawdevices

     

    [ -f /bin/raw ] || exit 0

    [ -f /etc/sysconfig/rawdevices ] || exit 0

    # Exit if the file just has the default comments.

    LC_ALL=C /bin/egrep -q -v "^ *#" /etc/sysconfig/rawdevices 2>/dev/null || exit 0

     

    . /etc/init.d/functions

     

    function assign_raw()

    {

       LC_ALL=C egrep -v '^ *#' /etc/sysconfig/rawdevices |

       while read RAW BLOCK; do

         if [ -n "$RAW" -a -n "$BLOCK" ]; then

         rawdirname=${RAW%/*}

             if [ "$rawdirname" = "/dev" -a -d /dev/raw ]; then

               echo $"  Please correct your /etc/sysconfig/rawdevices:"

               echo $"     rawdevices are now located in the directory /dev/raw/ "

               echo $"  If the command 'raw' still refers to /dev/raw as a file."

               echo $"   you'll have to upgrade your util-linux package"

               exit 0

             fi

             if [ "$rawdirname" = "/dev/raw" -a -f /dev/raw ]; then

               echo $"  Please correct your /etc/sysconfig/rawdevices:"

               echo $"     rawdevices are now located in the directory /dev/raw/ "

               echo $"  If the command 'raw' still refers to /dev/raw as a file."

               echo $"   you'll have to upgrade your util-linux package"

               exit 0

             fi

     

           echo "           $RAW  -->   $BLOCK";

           raw $RAW $BLOCK

         fi

       done

    }

     

    # See how we were called.

    case "$1" in

      start)

            # Assign devices

            echo $"Assigning devices: "

            assign_raw

            sleep 3

            chown -R oracle:oinstall /dev/raw/

            echo $"done"

            ;;

      stop)

            # No action to be taken here

            ;;

     

      status)

            ID=`id -u`

            if [ $ID -eq 0 ]; then

              raw -qa

            else

              echo $"You need to be root to use this command ! "

            fi

            ;;

     

      restart|reload)

            $0 start

            ;;

     

      *)

            echo $"Usage: $0 {start|stop|status|restart}"

            exit 1

    esac

     

    exit 0

  • 7. Re: asm 、asmlib、udev
    Pradeepcmst Journeyer
    Currently Being Moderated

    If you are using oracle linux, you can use asmlib itself as it is recommended by oracle which helps for fast synchronisation and fast IO...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points