Tuesday, March 20, 2012

How to Install ASMLIB and Configure

First find out Kernal version
> uname -r

2.6.18-164.11.1.el5> cat /proc/version
Linux version
2.6.18-164.11.1.el5(brewbuilder@ls20-bc2-13.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:16:15 EDT 2008

> rpm -q kernel
kernel-2.6.18-164.11.1.el5
 
Then you need download RPM packpage from oracle Website
http://www.oracle.com/technetwork/topics/linux/index-101839.html 
 

# rpm -Uvh oracleasm-support-2.1.7-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-2.6.18-164.11.1.el5.x86_64.rpm
warning: oracleasm-support-2.1.7-1.el5.x86_64.rpm:

Header V3 DSA signature: NOKEY, key ID 4a7y5433
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.18-164.11.1.el5########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
[root@]# /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
oracle Default group to own the driver interface []: dba or oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for 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@etc/init.d]# ./oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]


How to findout ASMLIB available or not

[root@etc/init.d]# rpm -qa | grep oracleasm
oracleasm-support-2.1.7-1.el5
oracleasmlib-2.0.4-1.el5
oracleasm-2.6.18-164.11.1.el5
 
 
 
 
Make sure that Oracleasm configure command ran properly
 
Log on root
 
Execute the lsmod command (as root) to show the loaded oracleasm module.
The oracleasm module should be listed with a ‘Used by’ column setting of 1
[root@etc/init.d]# lsmod
Module Size Used by

oracleasm 84136 1
ipv6 420481 332
xfrm_nalgo 43845 1 ipv6
crypto_api 42177 1 xfrm_nalgo
autofs4 57289 0
hidp 83521 2
l2cap 89281 5 hidp

Execute the command cat /proc/filesystems and make sure that an entry named oracleasmfs exists in this filesystem listing
 
[root@etc/init.d]# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cpuset
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev usbfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev inotifyfs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
iso9660
nodev mqueue
ext3
nodev rpc_pipefs
nodev nfs
nodev nfs4
nodev autofs
nodev asmdisk
nodev oracleasmfs

Execute the command df –ha. This should show you a that oracleasmfs is mounted on /dev/oracleasm
 
 
[root@etc/init.d]# df -ha
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 5.9G 607M 5.0G 11% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda8 88G 18G 65G 22% /home
/dev/sda5 9.7G 217M 9.0G 3% /var
/dev/sda3 9.7G 152M 9.1G 2% /opt
/dev/sda2 9.7G 1.6G 7.7G 17% /usr
/dev/sda1 99M 12M 83M 12% /boot
tmpfs 16G 5.6G 11G 36% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
oracleasmfs 0 0 0 - /dev/oracleasm

No comments:

Post a Comment