From part one, we are yet to access the logs (i.e. /var/log/oracleasm, $GRID_HOME/log/client/<node>/…log), but once we access the logs, we can tell the are some permission issues, lets check the status of the oracleasm….

[root@oracle-00.qa.alinafe.net client]# /usr/sbin/oracleasm init

Loading module “oracleasm”: failed

Unable to load module “oracleasm”

[root@oracle-00.qa.alinafe.net client]#/bin/rpm -q oracleasm-$(uname -r)

package oracleasm-2.6.18-409.el5 is not installed

[root@oracle-00.qa.alinafe.net client]# yum install oracleasm-2.6.18-409.el5

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

* base: mirror.cc.columbia.edu

* extras: mirror.es.its.nyu.edu

* updates: mirror.cogentco.com

Setting up Install Process

No package oracleasm-2.6.18-409.el5 available.

Nothing to do

[root@oracle-00.qa.alinafe.net client]#vi /etc/yum.repos.d/oracleasm.repo

[oracleasm]
name=Oracle ASMLib Kernel Drivers for Red Hat Enterprise Linux Server 5
baseurl=http://yum.oracle.com/repo/OracleASM/RHEL5/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[root@oracle-00.qa.alinafe.net client]# vi /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

[root@oracle-00.qa.alinafe.net client]#yum install oracleasm-`uname -r`

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

* base: mirror.cc.columbia.edu

* extras: mirror.es.its.nyu.edu

* updates: mirror.cogentco.com

oracleasm                                                                                                                                                     |  951 B     00:00     

oracleasm/primary                                                                                                                                             |  15 kB     00:00     

oracleasm                                                                                                                                                                    176/176

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package oracleasm-2.6.18-409.el5.x86_64 0:2.0.5-1.el5 set to be updated

–> Finished Dependency Resolution…..

Installing:

oracleasm-2.6.18-409.el5                               x86_64                               2.0.5-1.el5                               oracleasm                                25 k

Transaction Summary

=====================================================================================================================================================================================

Install       1 Package(s)

Upgrade       0 Package(s)

Total download size: 25 k

Is this ok [y/N]: y

Downloading Packages:

oracleasm-2.6.18-409.el5-2.0.5-1.el5.x86_64.rpm                                                                                                               |  25 kB     00:00     

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159

oracleasm/gpgkey                                                                                                                                              | 1.4 kB     00:00     

Importing GPG key 0x1E5E0159 “Oracle OSS group (Open Source Software group) <build@oss.oracle.com>” from /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

Is this ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : oracleasm-2.6.18-409.el5                                                                                                                                      1/1

Installed:

  oracleasm-2.6.18-409.el5.x86_64 0:2.0.5-1.el5                                                                                                                                      

Complete!

[root@oracle-00.qa.alinafe.net client]#

[root@oracle-00.qa.alinafe.net client]# /usr/sbin/oracleasm init

Loading module “oracleasm”: oracleasm

Mounting ASMlib driver filesystem: /dev/oracleasm

[root@oracle-00.qa.alinafe.net client]# /usr/sbin/oracleasm scandisks

Reloading disk partitions: done

Cleaning any stale ASM disks…

Scanning system for ASM disks…

Instantiating disk …….

[root@oracle-00.qa.alinafe.net client]# crsctl start res ora.crsd -init

CRS-2672: Attempting to start ‘ora.cssd’ on ‘oracle-00’

CRS-2672: Attempting to start ‘ora.diskmon’ on ‘oracle-00’

CRS-2676: Start of ‘ora.diskmon’ on ‘oracle-00’ succeeded

CRS-2676: Start of ‘ora.cssd’ on ‘oracle-00’ succeeded

CRS-2672: Attempting to start ‘ora.ctssd’ on ‘oracle-00’

CRS-2672: Attempting to start ‘ora.cluster_interconnect.haip’ on ‘oracle-00’

CRS-2676: Start of ‘ora.ctssd’ on ‘oracle-00’ succeeded

CRS-2676: Start of ‘ora.cluster_interconnect.haip’ on ‘oracle-00’ succeeded

CRS-2679: Attempting to clean ‘ora.asm’ on ‘oracle-00’

CRS-2681: Clean of ‘ora.asm’ on ‘oracle-00’ succeeded

CRS-2672: Attempting to start ‘ora.asm’ on ‘oracle-00’

CRS-2676: Start of ‘ora.asm’ on ‘oracle-00’ succeeded

CRS-2672: Attempting to start ‘ora.storage’ on ‘oracle-00’

CRS-2676: Start of ‘ora.storage’ on ‘oracle-00’ succeeded

CRS-2672: Attempting to start ‘ora.crsd’ on ‘oracle-00’

CRS-2676: Start of ‘ora.crsd’ on ‘oracle-test00’ succeeded

[root@oracle-00.qa.alinafe.net client]# ps -ef|grep pmon

oracle   27813     1  0 00:19 ?        00:00:00 asm_pmon_+ASM1

root     28159 18319  0 00:20 pts/3    00:00:00 grep pmon

[root@oracle-00.qa.alinafe.net scripts]# ./crstat.sh

HA Resource                                   Target     State             

———–                                   ——     —–             

ora.DATA.dg                                   ONLINE     ONLINE on oracle-00

ora.LISTENER.lsnr                             ONLINE     ONLINE on oracle-00

ora.LISTENER_SCAN1.lsnr                       ONLINE     ONLINE on oracle-00

ora.LISTENER_SCAN2.lsnr                       ONLINE     ONLINE on oracle-01

ora.LISTENER_SCAN3.lsnr                       ONLINE     ONLINE on oracle-01

ora.MGMTLSNR                                  ONLINE     ONLINE on oracle-01

ora.OCR_VOTING.dg                             ONLINE     ONLINE on oracle-00

ora.A_ARCHIVE.dg                             ONLINE     ONLINE on oracle-00

ora.A_PRODDATA.dg                            ONLINE     ONLINE on oracle-00

ora.A_LOG.dg                              ONLINE     ONLINE on oracle-00

ora.asm                                       ONLINE     ONLINE on oracle-00

ora.cvu                                       ONLINE     ONLINE on oracle-01

ora.mgmtdb                                    ONLINE     ONLINE on oracle-01

ora.net1.network                              ONLINE     ONLINE on oracle-00

ora.oc4j                                      ONLINE     ONLINE on oracle-01

……..

ora.ons                                       ONLINE     ONLINE on oracle-00

ora.oracle-00.ASM1.asm                    ONLINE     ONLINE on oracle-00

ora.oracle-00.LISTENER_ORACLE-00.lsnr ONLINE     ONLINE on oracle-00

ora.oracle-00.ons                         ONLINE     ONLINE on oracle-00

ora.oracle-00.vip                         ONLINE     ONLINE on oracle-00

ora.oracle-01.ASM2.asm                    ONLINE     ONLINE on oracle-01

……..

Advertisements