This discussion is archived
5 Replies Latest reply: Dec 28, 2012 4:55 PM by Dude! RSS

Want to Build ASM In Linux Box Oracle 11g

940673 Newbie
Currently Being Moderated
Hi All,

I have a Linux box with the below configurations:-

Linux blrulvremoradb02 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Last time my UNIX administrator have done a partition in this box. I have 100GB lun allocated to this box which is spilitted in two mount points.

/u01 is having 30GB and /u02 is having 70GB. I want to build a ASM in this box and install Oracle 11.2.0.1 and for that I need raw disk.

Is there any useful links or can you guide me to achieve this... My UNIX admin is on leave for new year and I want to do this by my own..

Please help....

Regards,
Arijit
  • 1. Re: Want to Build ASM In Linux Box Oracle 11g
    Victor Armbrust Oracle ACE
    Currently Being Moderated
    You should use a RAW partition. You only need to create a disk partition using fdisk, and then you should "mark" that disk using ASMLIB (oracleasm).

    Sample:
    fdisk /dev/sdd
    
    Command (m for help): u
    Changing display/entry units to sectors
    Command (m for help): n
    Command action
    e extended
    p primary partition (1-4)
    p
    Partition number (1-4): 1
    First sector (61-1048575, default 61): 2048
    Last sector or +size or +sizeM or +sizeK (2048-1048575, default 1048575):
    
    Using default value 1048575
    Command (m for help): w
    The partition table has been altered!
    Calling ioctl() to re-read partition table.
    Syncing disks.
    Mark using ASM
    /usr/sbin/oracleasm createdisk ASMDATA01 /dev/sdd1
    List Disk using oracleasm
    /usr/sbin/oracleasm listdisks
    ASMDATA01
    Victor
  • 2. Re: Want to Build ASM In Linux Box Oracle 11g
    940673 Newbie
    Currently Being Moderated
    Thanks Victor Sir for your help... I had few more questions..

    1] Presently I have /u01 and /u02 mount points with me.. Should I have to unmount them first. If yes please confirm the below steps that I'll perform.

    oracle@blrulvremoradb01:PRODR [dev] > cat /etc/fstab
    /dev/rootvg/root / ext3 defaults 1 1
    /dev/rootvg/var /var ext3 defaults 1 2
    /dev/rootvg/temp /tmp ext3 defaults 1 2
    /dev/rootvg/usr /usr ext3 defaults 1 2
    /dev/rootvg/opt /opt ext3 defaults 1 2
    #/dev/rootvg/u01 /u01 ext3 defaults 1 2
    /dev/rootvg/u01 /u01 ext3 defaults 1 2
    /dev/rootvg/u02 /u02 ext3 defaults 1 2
    LABEL=/boot /boot ext3 defaults 1 2
    tmpfs /dev/shm tmpfs defaults 0 0
    devpts /dev/pts devpts gid=5,mode=620 0 0
    sysfs /sys sysfs defaults 0 0
    proc /proc proc defaults 0 0
    /dev/rootvg/swap swap swap defaults 0 0


    unmount /u01
    unmount /u02.

    After completing this can I go for the steps mentioned by you.. I need to your help for sometime until I complete the steps...

    Regards,
    Arijit
  • 3. Re: Want to Build ASM In Linux Box Oracle 11g
    940673 Newbie
    Currently Being Moderated
    I am not at familiar with the steps of partioning..Requesting you help me step by step..It would be a great help sir!!!

    Regards,
    Arijit
  • 4. Re: Want to Build ASM In Linux Box Oracle 11g
    Victor Armbrust Oracle ACE
    Currently Being Moderated
    Well.. just a second: u01 and u02 are Logical Volumes inside a Volume Group? O.o

    First step: (please post here)
    df -h
    
    fdisk -l
    The best option is to use LUNs (from your storage solution) for ASM. Why do you need ASM? Is this installation a pre-req for RAC or StandAlone GRID? What is your purpose?

    Edited by: Victor Armbrust on 28/12/2012 14:26
  • 5. Re: Want to Build ASM In Linux Box Oracle 11g
    Dude! Guru
    Currently Being Moderated
    The setup of raw devices as of Enterprise Linux 5 is depreciated. This is now accomplished by using IO_DIRECT. However, Linux oracleasm uses its own optimized I/O management for devices under oracleasm control.

    You can use the parted utility to create a partition, for instance:

    <pre>
    # parted -s /dev/sdc mklabel msdos mkpart primary 1 -- -1
    </pre>

    Beware that all previous info on that disk will be destroyed!
    My UNIX admin is on leave for new year and I want to do this by my own..
    I wonder if you actually understand the complexity of your task. There is no way you can get any useful hints based on the limited amount of information you have provided, nor will a couple of forum posts teach you what is necessary to understand. Perhaps you might want to reconsider rushing into this and causing unnecessary problems.

Legend

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