RAC Attack - Oracle Cluster Database at Home/Setup ASMLIB


  1. Login to collabn1 as oracle and open a teminal. Switch to the root user.
    RA-oel-console-collabn1-root.png
  2. Install ASMLib on both nodes and initialize the disks. mount command may fail (mount: /dev/cdrom-hda already mounted or /mnt/cdrom busy) if you already have cdrom mounted from previous steps.

    [root@collabn1 ~]# cd /mnt
    [root@collabn1 mnt]# mount /mnt/cdrom
    mount: block device /dev/cdrom-hda is write-protected, mounting read-only
    [root@collabn1 mnt]# mount /mnt/cdrom5
    mount: block device /dev/cdrom-hdb is write-protected, mounting read-only
    
    # OracleASM
    rpm -Uvh */*/oracleasm-support*
    rpm -Uvh */*/oracleasm*el5-2*                # (Note - that's lowercase EL5-2.)
    # Missing from the install media; copied to RAC Attack DVD.
    rpm -Uvh */oracleasmlib*
     
    [root@collabn1 mnt]# /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: done
    Initializing the Oracle ASMLib driver:                     [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
     
    
    [root@collabn1 ~]# /etc/init.d/oracleasm createdisk data /dev/sdb1
    Marking disk "data" as an ASM disk:                        [  OK  ]
    [root@collabn1 ~]# /etc/init.d/oracleasm createdisk backup /dev/sdc1
    Marking disk "backup" as an ASM disk:                      [  OK  ]
    [root@collabn1 ~]# /etc/init.d/oracleasm listdisks
    BACKUP
    DATA
    
    

    Now repeat some of the steps on the second virtual machine:

    [root@collabn1 ~]# ssh collabn2
     
    [root@collabn2 ~]# cd /mnt
     
    # OracleASM
    rpm -Uvh */*/oracleasm-support*
    rpm -Uvh */*/oracleasm*el5-2*
    # Missing from the install media; copied to RAC Attack DVD.
    rpm -Uvh */oracleasmlib*
     
    [root@collabn2 ~]# /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: done
    Initializing the Oracle ASMLib driver:                     [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
     
    [root@collabn2 ~]# /etc/init.d/oracleasm listdisks
    BACKUP
    DATA
    



Last modified on 5 April 2013, at 05:11