安装11gr2遭遇bug

这两天一直在linux as5.3 64位上折腾oracle11g r2,搞了两天,终于搞完。花了大量时间建立asm磁盘。记录下碰到的问题:

1、安装grid到最后,运行root.sh出错,检查日志,发现是selinux的问题。把selinux禁用!

2、asm磁盘创建后,机器重启,死活会丢。开始以为是asmlib包有问题,重装3次,涛声依旧;后来又怀疑是lv的问题,google近两天无果!在长老的帮助下,确认是oracle的bug,把dm-rules文件内容注释掉,最终解决。

3、提醒:oracle不推荐使用lvm。但我自己是没办法了,硬盘只有一个vg,没剩余空间了。

On EL/RH 5 ORACLEASM LISTDISKS not Showing Devices After Reboot or Restart [ID 558596.1]   

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

  修改时间 07-JUL-2009     类型 PROBLEM     状态 PUBLISHED   

In this Document
  Symptoms
  Cause
  Solution
  References



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



Applies to:
Linux Kernel - Version: 2.0.3.1
Linux Kernel - Version: 2.6.18 to 2.6.18
Linux x86-64

Symptoms
/etc/init.d/oracleasm listdisks worked on dm-*/lvm device, until a reboot/restart. Below is the sequence of actions to reproduce:

1. Environment

#uname -a
Linux host 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64  GNU/Linux
#rpm -qa |grep oracleasm
oracleasm-support-2.0.4-1.el5
oracleasm-2.6.18-53.el5-2.0.4-1.el5
oracleasmlib-2.0.3-1.el5


2. Create disk


[root@oel5a ~]#/etc/init.d/oracleasm createdisk DATA2 /dev/oraasm/oraasm-2
Marking disk "/dev/oraasm/oraasm-2" as an ASM disk: 'DATA2
[root@oel5a ~]#

[root@oel5a ~]# /etc/init.d/oracleasm listdisks
DATA2
VOL1
[root@oel5a ~]#

3.Restart oracleasm service and the volume DATA2 was gone


[root@oel5a ~]# /etc/init.d/oracleasm restart
Unmounting ASMlib driver filesystem: [ OK ]
Unloading module "oracleasm": [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
[root@oel5a ~]# /etc/init.d/oracleasm listdisks
VOL1
[root@oel5a ~]#

[root@oel5a ~]# /sbin/blkid | grep oracleasm
/dev/mapper/oraasm-oraasm-2: LABEL="DATA2" TYPE="oracleasm"
/dev/sdd1: LABEL="VOL1" TYPE="oracleasm"
[root@oel5a ~]#


[root@oel5a ~]# /etc/init.d/oracleasm querydisk /dev/oraasm/oraasm-2
Disk "/dev/oraasm/oraasm-2" is marked an ASM disk with the label "DATA2"
[root@oel5a ~]#


[root@oel5a ~]# more /proc/partitions
major minor #blocks name
.
253 0 6246400 dm-0
253 1 5644288 dm-1

[root@oel5a ~]# lvdisplay /dev/oraasm/oraasm-2
--- Logical volume ---
LV Name /dev/oraasm/oraasm-2
VG Name oraasm
LV UUID QzwLLd-DSc3-42aA-b3rb-d9T3-ImmH-P9z51D
LV Write Access read/write
LV Status available
# open 0
LV Size 5.38 GB
Current LE 1378
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

[root@oel5a ~]# ls -l /dev/dm*
ls: /dev/dm*: No such file or directory
[root@oel5a ~]#





Cause
The oracleasm scans /proc/partitions and expects devices to be available in /dev. If the device doesn't exist in /dev it will fail to open the device. RHEL/OEL5 does not create dm-xx devices in /dev by default.
Solution
Please comment out the following line in file /etc/udev/rules.d/50-udev.rules

#KERNEL=="dm-[0-9]*", ACTION=="add", OPTIONS+="ignore_device"

reboot and the problem should be gone.



Note: Newer versions of EL/RH 5 the udev rule has been moved to "/etc/udev/rules.d/90-dm.rules".

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20542911/viewspace-626763/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20542911/viewspace-626763/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值