There are many ways to ASMLIB, it can be from get from OTN account or you can use ULN (Un breakable Linux Network).
Also it comes in the the Unbreakable Linux media, but if you are not subscribed to ULN and you are not using Unbreakable Linux then most people go to the OTN, where you have to select your Linux flavor and then navigate to the correct file according to the linux kernel and then download the 3 files one by one.
Also it comes in the the Unbreakable Linux media, but if you are not subscribed to ULN and you are not using Unbreakable Linux then most people go to the OTN, where you have to select your Linux flavor and then navigate to the correct file according to the linux kernel and then download the 3 files one by one.
ASM Library Configuration and Initialization
Download the appropriate ASMLib RPMs from OTN.
If you are using the UEK the ASMLib kernel module is present already. For RHEL
kernel we would need all three of the following:
Required Packages
(install with same order as given to save your self from
error)
- oracleasm-support-2.1.7-1.el5.x86_64.rpm
- oracleasmlib-2.0.4-1.el5. x86_64.rpm
- oracleasm-[your-kernel-version].rpm
- rpm -Uvh *
- rpm -Uvh libaio-devel-0.*
- rpm -Uvh sysstat-7.*
- rpm -Uvh nfs-utils-1.0.9-50.el5.x86_64.rpm
- rpm -Uvh libstdc++-devel-4.1.2-50.el5.x86_64.rpm
- rpm -Uvh kernel-headers-2.6.18-238.el5.x86_64.rpm
- rpm -Uvh glibc-headers-2.5-58.x86_64
- rpm -Uvh glibc-devel-2.5-58.x86_64.rpm
- rpm -Uvh gcc-4.1.2-50.el5.x86_64.rpm
- rpm -Uvh gcc-c++-4.1.2-50.el5.x86_64.rpm
- rpm -Uvh nfs-utils-1.0.9-60.el5.x86_64.rpm
Red Color Packages can be find in
the LINUX media from where the linux installed.
Install the packages using the
following command.
#rpm -Uvh
oracleasm*.rpm
Configure ASMLib using the following command.
#oracleasm configure
-i
Configuring the Oracle ASM library driver.
Load the kernel module using the following command.
# /usr/sbin/oracleasm
init
If you have any problems, run the following command to make
sure you have the correct version of the driver.
# /usr/sbin/oracleasm
update-driver
Now we are going to create disk groups with following
command
Oracleasm createdisk <ASM Disk name > <disk
path>
and then we can use oracleasm scandisks and listdisks command for more use.
No comments:
Post a Comment