oracleasm ASMLib Kernel Driver upgrade - steps by steps
Shutdown and disable CRS (RAC) or has (non-RAC)
crsctl stop crs / crsctl disable crs
crsctl stop has / crsctl disable has
Backup the oracleasm
crsctl stop crs / crsctl disable crs
crsctl stop has / crsctl disable has
Backup the oracleasm
ls -ltr /etc/sysconfig/oracleasm
lrwxrwxrwx 1 root root 24 Jun 6 2011 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm
cp oracleasm-_dev_oracleasm oracleasm-_dev_oracleasm.orig
Comment out (#) the following line in /etc/inittab to avoid respawn
#h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1
/sbin/init q
Ensure that init.ohasd is now not running
ps -ef|grep init
/etc/init.d/oracleasm stop
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
/etc/init.d/oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
:/etc/sysconfig
/etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration: done
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
Install oracleasm rpm packages
rpm -ivh oracleasm-2.6.18-274.18.1.el5-debuginfo-2.0.5-1.el5.x86_64.rpm --nodeps
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.18########################################### [100%]
rpm -ivh oracleasm-2.6.18-274.18.1.el5-2.0.5-1.el5.x86_64.rpm
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.18########################################### [100%]
rpm -ivh oracleasm-2.6.18-274.18.1.el5debug-2.0.5-1.el5.x86_64.rpm
Preparing... ########################################### [100%]
1:oracleasm-2.6.18-274.18########################################### [100%]
rpm -ivh oracleasm-2.6.18-274.18.1.el5xen-2.0.5-1.el5.x86_64.rpm
error: Failed dependencies:
kernel-xen = 2.6.18-274.18.1.el5 is needed by oracleasm-2.6.18-274.18.1.el5xen-2.0.5-1.el5.x86_64
rpm -qa | grep oracleasm
/usr/lib/oracleasm/oracleasm_debug_link 2.6.9-42.ELsmp $(uname -r)
You can remove the old package using rpm -e
ls -l /lib/modules/$(uname -r)/kernel/drivers/addon/oracleasm
total 604
-rw-r--r-- 1 root root 613516 Feb 14 23:36 oracleasm.ko
oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
/etc/init.d/oracleasm start
/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 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
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks:
[ OK ]
Oracleasm listdisks
DBATOOLS - oracle: oracleasm listdisks
DATA101_DISK1
DATA101_DISK2
DATA101_DISK3
To view alert, run tail -f /var/log/oracleasm
Startup cluster
crsctl start has or crsctl start cluster
Startup cluster
crsctl start has or crsctl start cluster
No comments:
Post a Comment