0% found this document useful (0 votes)
68 views11 pages

ASM Library

Download as txt, pdf, or txt
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 11

[root@ngtsvr01 ~]# yum install kmod-oracleasm

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager


This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.8-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
==========================================================================
Package Arch Version
Repository Size
===================================================================================
==========================================================================
Installing:
kmod-oracleasm x86_64 2.0.8-15.el7
rhel-local.repo 35 k

Transaction Summary
===================================================================================
==========================================================================
Install 1 Package

Total download size: 35 k


Installed size: 124 k
Is this ok [y/d/N]: Y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kmod-oracleasm-2.0.8-15.el7.x86_64
1/1
Verifying : kmod-oracleasm-2.0.8-15.el7.x86_64
1/1

Installed:
kmod-oracleasm.x86_64 0:2.0.8-15.el7

Complete!

----------------------------

[root@ngtsvr01 ~]# yum install oracleasmlib


Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package oracleasmlib.x86_64 0:2.0.12-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
==========================================================================
Package Arch Version
Repository Size
===================================================================================
==========================================================================
Installing:
oracleasmlib x86_64 2.0.12-1.el7
rhel-local.repo 19 k

Transaction Summary
===================================================================================
==========================================================================
Install 1 Package

Total download size: 19 k


Installed size: 39 k
Is this ok [y/d/N]: Y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracleasmlib-2.0.12-1.el7.x86_64
1/1
Verifying : oracleasmlib-2.0.12-1.el7.x86_64
1/1

Installed:
oracleasmlib.x86_64 0:2.0.12-1.el7

Complete!

[root@ngtsvr01 ~]# yum install oracleasm-support


Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package oracleasm-support.x86_64 0:2.1.8-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
==========================================================================
Package Arch Version
Repository Size
===================================================================================
==========================================================================
Installing:
oracleasm-support x86_64 2.1.8-
3.el7 rhel-local.repo 79 k

Transaction Summary
===================================================================================
==========================================================================
Install 1 Package
Total download size: 79 k
Installed size: 242 k
Is this ok [y/d/N]: Y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracleasm-support-2.1.8-3.el7.x86_64
1/1
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/oracleasm.service
to /usr/lib/systemd/system/oracleasm.service.
Verifying : oracleasm-support-2.1.8-3.el7.x86_64
1/1

Installed:
oracleasm-support.x86_64 0:2.1.8-3.el7

Complete!

---------------------------
node 2
-------------
[root@ngtsvr02 ~]# yum install kmod-oracleasm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package kmod-oracleasm.x86_64 0:2.0.8-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
=========================
Package Arch Version
Repository Size
===================================================================================
=========================
Installing:
kmod-oracleasm x86_64 2.0.8-15.el7 rhel-
local.repo 35 k

Transaction Summary
===================================================================================
=========================
Install 1 Package

Total download size: 35 k


Installed size: 124 k
Is this ok [y/d/N]: Y
Downloading packages:
kmod-oracleasm-2.0.8-15.el7.x86_64.rpm
| 35 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kmod-oracleasm-2.0.8-15.el7.x86_64
1/1
Verifying : kmod-oracleasm-2.0.8-15.el7.x86_64
1/1

Installed:
kmod-oracleasm.x86_64 0:2.0.8-15.el7

Complete!

------------------------------

[root@ngtsvr02 ~]# yum install oracleasmlib


Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package oracleasmlib.x86_64 0:2.0.12-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
=========================
Package Arch Version Repository
Size
===================================================================================
=========================
Installing:
oracleasmlib x86_64 2.0.12-1.el7 rhel-
local.repo 19 k

Transaction Summary
===================================================================================
=========================
Install 1 Package

Total download size: 19 k


Installed size: 39 k
Is this ok [y/d/N]: Y
Downloading packages:
oracleasmlib-2.0.12-1.el7.x86_64.rpm
| 19 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracleasmlib-2.0.12-1.el7.x86_64
1/1
Verifying : oracleasmlib-2.0.12-1.el7.x86_64
1/1

Installed:
oracleasmlib.x86_64 0:2.0.12-1.el7
Complete!
-------------------------------

[root@ngtsvr02 ~]# yum install oracleasm-support


Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use
subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package oracleasm-support.x86_64 0:2.1.8-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
=========================
Package Arch Version
Repository Size
===================================================================================
=========================
Installing:
oracleasm-support x86_64 2.1.8-3.el7 rhel-
local.repo 79 k

Transaction Summary
===================================================================================
=========================
Install 1 Package

Total download size: 79 k


Installed size: 242 k
Is this ok [y/d/N]: Y
Downloading packages:
oracleasm-support-2.1.8-3.el7.x86_64.rpm
| 79 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracleasm-support-2.1.8-3.el7.x86_64
1/1
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/oracleasm.service
to /usr/lib/systemd/system/oracleasm.service.
Verifying : oracleasm-support-2.1.8-3.el7.x86_64
1/1

Installed:
oracleasm-support.x86_64 0:2.1.8-3.el7

Complete!

--------------------
7. Configure ASMLib using the following command:

/usr/sbin/oracleasm configure -i

[root@CCTSVR03 mapper]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n'


kmod-oracleasm \
> oracleasm-support \
> oracleasmlib
kmod-oracleasm-2.0.8-15.el7 (x86_64)
oracleasm-support-2.1.8-3.el7 (x86_64)
oracleasmlib-2.0.12-1.el7 (x86_64)
[root@CCTSVR03 mapper]# id
uid=0(root) gid=0(root) groups=0(root)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@CCTSVR03 mapper]# /usr/sbin/oracleasm configure -i
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 []: asmadmin
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

--------------------------
[root@CCTSVR04 software]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n'
kmod-oracleasm \
> oracleasm-support \
> oracleasmlib
kmod-oracleasm-2.0.8-15.el7 (x86_64)
oracleasm-support-2.1.8-3.el7 (x86_64)
oracleasmlib-2.0.12-1.el7 (x86_64)
[root@CCTSVR04 software]# /usr/sbin/oracleasm configure -i
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 []: asmadmin
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

[root@CCTSVR03 mapper]# ls -ltrh /etc/sysconfig/oracleasm


lrwxrwxrwx. 1 root root 24 Mar 4 09:06 /etc/sysconfig/oracleasm -> oracleasm-
_dev_oracleasm

------------------
modified ASM config
----------------------

[root@CCTSVR03 mapper]# cat /etc/sysconfig/oracleasm


#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver. It is generated
# By running /etc/init.d/oracleasm configure. Please use that method
# to modify this file
#

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.


ORACLEASM_UID=oracle

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.


ORACLEASM_GID=asmadmin

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.


ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning


ORACLEASM_SCANORDER="mpath dm"

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan


ORACLEASM_SCANEXCLUDE="sd"

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size


# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false

[root@CCTSVR04 software]# cat /etc/sysconfig/oracleasm


#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver. It is generated
# By running /etc/init.d/oracleasm configure. Please use that method
# to modify this file
#

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.


ORACLEASM_UID=oracle

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.


ORACLEASM_GID=asmadmin

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.


ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning


ORACLEASM_SCANORDER="mpath dm"

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan


ORACLEASM_SCANEXCLUDE="sd"

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size


# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false

------------------

[root@CCTSVR04 software]# /etc/init.d/oracleasm restart


Restarting oracleasm (via systemctl): [ OK ]

[root@CCTSVR03 mapper]# /etc/init.d/oracleasm restart


Restarting oracleasm (via systemctl): [ OK ]

---------------------

/etc/init.d/oracleasm enable

[root@ngtsvr01 disks]# /etc/init.d/oracleasm enable


Please run 'systemctl enable oracleasm.service' to enable oracleasm
[root@ngtsvr01 disks]# systemctl enable oracleasm.service
---------------
Creating ASM Disk

cd /dev/oracleasm/disks

[root@ngtsvr01 disks]# pwd


/dev/oracleasm/disks

/usr/sbin/oracleasm createdisk OCRVOTE1 /dev/mapper/mpathm1

/usr/sbin/oracleasm listdisks

/usr/sbin/oracleasm createdisk OCRVOTE2 /dev/mapper/mpathm2

/usr/sbin/oracleasm listdisks

/usr/sbin/oracleasm createdisk OCRVOTE3 /dev/mapper/mpathm3

[root@ngtsvr01 disks]# pwd


/dev/oracleasm/disks
[root@ngtsvr01 disks]#
[root@ngtsvr01 disks]# ls -ltrh
total 0
[root@ngtsvr01 disks]# /usr/sbin/oracleasm createdisk OCRVOTE1 /dev/mapper/mpathm1
Writing disk header: done
Instantiating disk: done
[root@ngtsvr01 disks]# ls -ltrh
total 0
brw-rw----. 1 oracle asmadmin 253, 5 Jun 20 14:27 OCRVOTE1
[root@ngtsvr01 disks]# /usr/sbin/oracleasm listdisks
OCRVOTE1
[root@ngtsvr01 disks]# /usr/sbin/oracleasm createdisk OCRVOTE2 /dev/mapper/mpathm2
Writing disk header: done
Instantiating disk: done
[root@ngtsvr01 disks]# ls -ltrh
total 0
brw-rw----. 1 oracle asmadmin 253, 5 Jun 20 14:27 OCRVOTE1
brw-rw----. 1 oracle asmadmin 253, 6 Jun 20 14:28 OCRVOTE2
[root@ngtsvr01 disks]# /usr/sbin/oracleasm listdisks
OCRVOTE1
OCRVOTE2
[root@ngtsvr01 disks]# /usr/sbin/oracleasm createdisk OCRVOTE3 /dev/mapper/mpathm3
Writing disk header: done
Instantiating disk: done
[root@ngtsvr01 disks]# ls -ltrh
total 0
brw-rw----. 1 oracle asmadmin 253, 5 Jun 20 14:27 OCRVOTE1
brw-rw----. 1 oracle asmadmin 253, 6 Jun 20 14:28 OCRVOTE2
brw-rw----. 1 oracle asmadmin 253, 7 Jun 20 14:29 OCRVOTE3
[root@ngtsvr01 disks]# /usr/sbin/oracleasm listdisks
OCRVOTE1
OCRVOTE2
OCRVOTE3
[root@ngtsvr01 disks]# pwd
/dev/oracleasm/disks

/usr/sbin/oracleasm createdisk DATADG_DISK01 /dev/mapper/mpathl1

/usr/sbin/oracleasm listdisks

/usr/sbin/oracleasm createdisk REDODG_DISK01 /dev/mapper/mpathl2

/usr/sbin/oracleasm listdisks

/usr/sbin/oracleasm createdisk FRADG_DISK01 /dev/mapper/mpathm5

/usr/sbin/oracleasm listdisks

[root@ngtsvr01 disks]# pwd


/dev/oracleasm/disks
[root@ngtsvr01 disks]# /usr/sbin/oracleasm createdisk DATADG_DISK01
/dev/mapper/mpathl1
Writing disk header: done
Instantiating disk: done
[root@ngtsvr01 disks]# /usr/sbin/oracleasm listdisks
DATADG_DISK01
OCRVOTE1
OCRVOTE2
OCRVOTE3
[root@ngtsvr01 disks]# /usr/sbin/oracleasm createdisk REDODG_DISK01
/dev/mapper/mpathl2
Writing disk header: done
Instantiating disk: done
[root@ngtsvr01 disks]# /usr/sbin/oracleasm listdisks
DATADG_DISK01
OCRVOTE1
OCRVOTE2
OCRVOTE3
REDODG_DISK01
[root@ngtsvr01 disks]# /usr/sbin/oracleasm createdisk FRADG_DISK01
/dev/mapper/mpathm5
Writing disk header: done
Instantiating disk: done
[root@ngtsvr01 disks]# /usr/sbin/oracleasm listdisks
DATADG_DISK01
FRADG_DISK01
OCRVOTE1
OCRVOTE2
OCRVOTE3
REDODG_DISK01
[root@ngtsvr01 disks]# ls -ltrh
total 0
brw-rw----. 1 oracle asmadmin 253, 5 Jun 20 14:27 OCRVOTE1
brw-rw----. 1 oracle asmadmin 253, 6 Jun 20 14:28 OCRVOTE2
brw-rw----. 1 oracle asmadmin 253, 7 Jun 20 14:29 OCRVOTE3
brw-rw----. 1 oracle asmadmin 253, 3 Jun 20 14:36 DATADG_DISK01
brw-rw----. 1 oracle asmadmin 253, 4 Jun 20 14:39 REDODG_DISK01
brw-rw----. 1 oracle asmadmin 253, 9 Jun 20 14:40 FRADG_DISK01

=================
ON Node 2 donot create Disk only scan them

[root@ngtsvr02 ~]# cd /dev/oracleasm/disks


[root@ngtsvr02 disks]# ls -ltrh
total 0
[root@ngtsvr02 disks]# pwd
/dev/oracleasm/disks

[root@ngtsvr02 disks]# id
uid=0(root) gid=0(root) groups=0(root)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@ngtsvr02 disks]# pwd
/dev/oracleasm/disks
[root@ngtsvr02 disks]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "OCRVOTE1"
Instantiating disk "OCRVOTE2"
Instantiating disk "OCRVOTE3"
Instantiating disk "FRADG_DISK01"
Instantiating disk "DATADG_DISK01"
Instantiating disk "REDODG_DISK01"
[root@ngtsvr02 disks]# ls -ltrh
total 0
brw-rw----. 1 oracle asmadmin 253, 3 Jun 20 14:45 OCRVOTE1
brw-rw----. 1 oracle asmadmin 253, 4 Jun 20 14:45 OCRVOTE2
brw-rw----. 1 oracle asmadmin 253, 5 Jun 20 14:45 OCRVOTE3
brw-rw----. 1 oracle asmadmin 253, 7 Jun 20 14:45 FRADG_DISK01
brw-rw----. 1 oracle asmadmin 253, 8 Jun 20 14:45 DATADG_DISK01
brw-rw----. 1 oracle asmadmin 253, 9 Jun 20 14:45 REDODG_DISK01

-----------------------

SSH manually to all IP�s and self (Public and Private), this is Important as it
updates the Keys:

<<< Copy and Install CVU RPMS on both nodes


========================================
[root@raclnx1 rpm]# rpm -ivh /u01/software/grid/rpm/cvuqdisk-1.0.9-1.rpm
Preparing... ################################# [100%]
Using default group oinstall to install package
Updating / installing...
1:cvuqdisk-1.0.9-1 ################################# [100%]
---------------------------------------------
------------------------------------------

Installing the cvuqdisk Package for Linux


Download and install the operating system package cvuqdisk. Without cvuqdisk,
Cluster Verification Utility is unable to discover shared disks, and you receive
the error message "Package cvuqdisk not installed" when you run Cluster
Verification Utility. Use the cvuqdisk rpm for your hardware (for example, x86_64,
or i386).

cd /u01/software/RAC11.2.0.4/grid/rpm

[root@ngtsvr01 rpm]# pwd


/u01/software/RAC11.2.0.4/grid/rpm

[root@ngtsvr01 rpm]# ls -ltrh


total 12K
-rw-r--r--. 1 oracle oinstall 8.1K Aug 26 2013 cvuqdisk-1.0.9-1.rpm
[root@ngtsvr01 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing... ################################# [100%]
Using default group oinstall to install package
Updating / installing...
1:cvuqdisk-1.0.9-1 ################################# [100%]

-----------------
ON Node 2

[root@ngtsvr02 u01]# cd /u01/software/RAC11.2.0.4/grid/rpm/


[root@ngtsvr02 rpm]# pwd
/u01/software/RAC11.2.0.4/grid/rpm
[root@ngtsvr02 rpm]# ls -l
total 12
-rw-r--r--. 1 oracle oinstall 8288 Jun 20 17:55 cvuqdisk-1.0.9-1.rpm
[root@ngtsvr02 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing... ################################# [100%
Using default group oinstall to install package
Updating / installing...
1:cvuqdisk-1.0.9-1 ################################# [100%

-----------------------------

/u01/software/RAC11.2.0.4/grid/runcluvfy.sh comp nodereach -n ngtsvr01,ngtsvr02


-verbose
/u01/software/RAC11.2.0.4/grid/runcluvfy.sh stage -post hwos -n ngtsvr01,ngtsvr02
-verbose| tee posthwos.txt
/u01/software/RAC11.2.0.4/grid/runcluvfy.sh stage -pre crsinst -n ngtsvr01,ngtsvr02
-verbose| tee precrsinst.txt

----------------------

You might also like