This discussion is archived
11 Replies Latest reply: Oct 24, 2012 6:40 AM by Dude! RSS

udev please help OEL 6

864988 Newbie
Currently Being Moderated
Hello,

I need help to setup udev so I can use ASM then for an 11gR2 database. This is my first time; can you please help me to setup this step by step?

I have the following config;
[root@box1 ~]# ll /dev/sd*
brw-rw----. 1 root disk 8, 0 Oct 22 11:41 /dev/sda
brw-rw----. 1 root disk 8, 1 Oct 22 11:41 /dev/sda1
brw-rw----. 1 root disk 8, 2 Oct 22 11:41 /dev/sda2
[root@box1 ~]# fdisk -l

Disk /dev/sda: 85.9 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008ef32

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9400    75496448   83  Linux
/dev/sda2            9400       10444     8388608   82  Linux swap / Solaris
[root@box1 ~]#

[root@box1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              71G   19G   50G  28% /
tmpfs                1002M  384K 1002M   1% /dev/shm
[root@box1 ~]#
  • 1. Re: udev please help OEL 6
    864988 Newbie
    Currently Being Moderated
    I wonder if those steps are correct? given sda2 is for linux swap I won't use it for ASM, I only can use sda1 device;


    1- Edit the /etc/scsi_id.config file.
    Add the following line:
    options=–whitelisted –replace-whitespace

    2- Display the UUID for sda device
    as root:
    scsi_id –whitelisted –replace-whitespace –device=/dev/sda
    14f504e46494c45525971777468462d5a3277382d42727976

    3- Create a rule to name the device. Create a file named 20-names.rules in the /etc/udev/rules.d directory. Add new rules to this file.
    All rules are added to the same file using the same format. Rules follow this format:

    KERNEL==”sd*”, SUBSYSTEM==”block”, PROGRAM=”/sbin/scsi_id –whitelisted –replace-whitespace /dev/$name”, RESULT==”14f504e46494c45525971777468462d5a3277382d42727976″, NAME=”asmdata″,OWNER=”grid”,GROUP=”dba”,MODE=”0660″

    4- test:
    udevadm test /block/sda

    5- start udev:

    start_udev

    6- Check the names, ownerships and permissions of the devices.

    ls -la /dev/asm*

    Edited by: DBA on 23-oct-2012 7:23
  • 2. Re: udev please help OEL 6
    864988 Newbie
    Currently Being Moderated
    Folliwing the steps I mentioned before, I just doscovered I don't have the file scsi_id.config :(

    [root@box1 ~]# cat /etc/scsi_id.config
    cat: /etc/scsi_id.config: No such file or directory
    [root@box1 ~]#
  • 3. Re: udev please help OEL 6
    864988 Newbie
    Currently Being Moderated
    I forget to add ; it is virtual machine running in VMWARE
  • 4. Re: udev please help OEL 6
    Dude! Guru
    Currently Being Moderated
    If you use ASMLib according to your intention of your previous post you actually do not need to configure udev.

    Regarding udev and ASM there is plenty of information on the web, for instance:

    http://www.oracle.com/technetwork/database/device-mapper-udev-crs-asm.pdf

    It's not for the current Oracle Linux version, but as far as I can tell still valid.
  • 5. Re: udev please help OEL 6
    864988 Newbie
    Currently Being Moderated
    Thank you. I will read the pdf document.
    Between, do you know where I can find those rpm;

    oracleasm-support-*.el6.x86_64.rpm
    oracleasmlib-*.el6.x86_64.rpm
    oracleasm-*.el6-*.x86_64.rpm

    I have searched on http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html but doesn't found them :(

    Cheers
  • 6. Re: udev please help OEL 6
    Avi Miller Guru
    Currently Being Moderated
    DBA wrote:
    I have searched on http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html but doesn't found them :(
    You only need oracleasmlib and it is on that page. oracleasm is built into the UEK/UEK2 kernels and oracleasm-support is available on public-yum.oracle.com or the install DVD.
  • 7. Re: udev please help OEL 6
    Veeresh.S Pro
    Currently Being Moderated
    oracleasm-*.el6-*.x86_64.rpm
    The oracleasm kernel driver is built into the Unbreakable Enterprise Kernel for Oracle Linux 6.
    oracleasm-support-*.el6.x86_64.rpm
    http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/oracleasm-support-2.1.5-1.el6.x86_64.rpm
  • 8. Re: udev please help OEL 6
    864988 Newbie
    Currently Being Moderated
    thank you. I have this setup;
    [root@box1 ~]# ll /dev/sd*
    brw-rw----. 1 root disk 8, 0 Oct 22 11:41 /dev/sda
    brw-rw----. 1 root disk 8, 1 Oct 22 11:41 /dev/sda1
    brw-rw----. 1 root disk 8, 2 Oct 22 11:41 /dev/sda2
    [root@box1 ~]# fdisk -l
    
    [root@box1 ~]# fdisk -l
     
    Disk /dev/sda: 85.9 GB, 85899345920 bytes
    255 heads, 63 sectors/track, 10443 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0008ef32
     
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        9400    75496448   83  Linux
    /dev/sda2            9400       10444     8388608   82  Linux swap / Solaris
    [root@box1 ~]#
     
    [root@box1 ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              71G   19G   50G  28% / 
    tmpfs                1002M  384K 1002M   1% /dev/shm
    [root@box1 ~]#
    If I will use asmlib I will have to use and mark /dev/sda1 for ASM disk right? or /dev/sda2? sorry for this question but I am newbie :(
  • 9. Re: udev please help OEL 6
    Veeresh.S Pro
    Currently Being Moderated
    Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        9400    75496448   83  Linux
    /dev/sda2            9400       10444     8388608   82  Linux swap / Solaris
    [root@box1 ~]#
    
    [root@box1 ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              71G   19G   50G  28% / 
    tmpfs                1002M  384K 1002M   1% /dev/shm
    [root@box1 ~]#
    If I will use asmlib I will have to use and mark /dev/sda1 for ASM disk right? or /dev/sda2? sorry for this question but I am newbie :(
    It seems /dev/sda1 is already used by the OS for root partition so u cant select /dev/sda1, probably you have to go with /dev/sda2(hoping you have not used that partition for the swap $cat /proc/swaps)

    ref : http://mlhdba.wordpress.com/2011/04/05/installing-asm-lib/
  • 10. Re: udev please help OEL 6
    864988 Newbie
    Currently Being Moderated
    cat /proc/swaps
    Filename                                Type            Size    Used    Priority
    /dev/sda2                               partition       8388604 38112   -1
    :( :(
  • 11. Re: udev please help OEL 6
    Dude! Guru
    Currently Being Moderated
    Reading your last questions I suggest you do some reading to understand the basic concepts of Oracle ASM and ASMLib. For instance, you cannot install and setup ASM without knowing what it is good for.

    If this is for evaluation purpose, note that you need to stick to Oracle Linux 5, unless you have registered and payed access to Oracle Support to download the latest version of Oracle database.

Legend

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