ASM 模組安裝與作業系統核心版本問題

xchui702發表於2011-08-05

配置ASM 出錯:
[root@standby tmp]# /etc/init.d/oracleasm config
Usage: /etc/init.d/oracleasm {start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}
[root@standby tmp]# /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 [oinstall]:
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration:           [  OK  ]
Loading module "oracleasm": Unable to load module "oracleasm"
                                                           [FAILED]


因為 核心版本是2.6.9-42.0.0.0.1.ELsmp, 而當前的ASM 版本是oracleasm-2.6.9-42.0.0.0.1.EL,不匹配。        
[root@standby 2.6.9-42.0.0.0.1.EL]# rpm -qa | grep -i asm
ibmasm-3.0-7
oracleasm-2.6.9-42.0.0.0.1.EL-2.0.3-2
oracleasmlib-2.0.2-1
oracleasm-support-2.0.3-2

[root@standby 2.6.9-42.0.0.0.1.EL]# uname -a
Linux standby 2.6.9-42.0.0.0.1.ELsmp #1 SMP Sun Oct 15 14:02:40 PDT 2006 i686 i686 i386 GNU/Linux

然後安裝oracleasm-2.6.9-42.0.2.ELsmp-2.0.3-1.i686.rpm 也不成功,因為核心版本是2.6.9-42.0.0.0.1.ELsmp 而非oracleasm-2.6.9-42.0.2.ELsmp 所以也安裝不上。
[root@standby 2.6.9-42.0.0.0.1.EL]# rpm -ivh /tmp/oracleasm-2.6.9-42.0.2.ELsmp-2.0.3-1.i686.rpm
error: Failed dependencies:
        kernel-smp = 2.6.9-42.0.2.EL is needed by oracleasm-2.6.9-42.0.2.ELsmp-2.0.3-1.i6  

--既然oracle linux, 會提供ASM的支援,那麼一定會有對應該作業系統的ASM 模組。在安裝光碟第三章盤上找到對應核心版本的ASM模組:
[root@standby RPMS]# rpm -ivh oracleasm-2.6.9-42.0.0.0.1.ELsmp-2.0.3-2.i686.rpm
warning: oracleasm-2.6.9-42.0.0.0.1.ELsmp-2.0.3-2.i686.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing...                ########################################### [100%]
   1:oracleasm-2.6.9-42.0.0.########################################### [100%]

重新配置ASM 模組: 就能配置成功了。
[root@standby RPMS]# rpm -ivh oracleasm-2.6.9-42.0.0.0.1.ELsmp-2.0.3-2.i686.rpm
warning: oracleasm-2.6.9-42.0.0.0.1.ELsmp-2.0.3-2.i686.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing...                ########################################### [100%]
   1:oracleasm-2.6.9-42.0.0.########################################### [100%]
[root@standby RPMS]# /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 [oinstall]:
Start Oracle ASM library driver on boot (y/n) [y]:
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration:           [  OK  ]
Loading module "oracleasm":                                [  OK  ]
Mounting ASMlib driver filesystem:                         [  OK  ]
Scanning system for ASM disks:
                                                           [  OK  ]

可以檢視模組:
[root@standby RPMS]# lsmod | grep -i asm
oracleasm              48020  1

或者:
[root@standby oracleasm]# pwd
/lib/modules/2.6.9-42.0.0.0.1.ELsmp/kernel/drivers/addon/oracleasm
[root@standby oracleasm]# ls -l
total 352
-rw-r--r--  1 root root 349666 Oct 25  2006 oracleasm.ko

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/674865/viewspace-704301/,如需轉載,請註明出處,否則將追究法律責任。

相關文章