ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 安装11gr2遭遇bug

安装11gr2遭遇bug

原创 Linux操作系统 作者:syzxlyx_cu 时间:2010-02-03 18:05:48 0 删除 编辑

这两天一直在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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-09-28

  • 博文量
    125
  • 访问量
    124457