jony413

多媒体信息发布、排队叫号、医院分诊、电子班牌

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Red Hat Enterprise Linux Server release 5.6 (Tikanga)

 

2.6.32-100.35.1.el5uek

[root]# rpm -qa|grep asm

oracleasmlib-2.0.4-1.el5

oracleasm-support-2.1.7-1.el5

oracleasm-2.6.18-8.el5-2.0.5-1.el5

 

[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 [oinstall]: oinstall

Start Oracle ASM library driver on boot (y/n) [y]: 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 disable

Writing Oracle ASM library driver configuration: done

Dropping Oracle ASMLib disks:                              [  OK  ]

Shutting down the Oracle ASMLib driver:            [  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  ]

 

[root]# /etc/init.d/oracleasm createdisk DISK1 /dev/sdb1

Marking disk "DISK1" as an ASM disk:                       [FAILED]

 

[root]# vi /var/log/oracleasm

 

Reloading disk partitions: done

Cleaning any stale ASM disks...

Scanning system for ASM disks...

Unable to open device "/dev/sdb1": Device or resource busy

Unable to open device "/dev/sdb1": Device or resource busy

 

SOLUTION:

 

 

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK1 -s /dev/sdb1 -a force=yes

 

[root]# /etc/init.d/oracleasm scandisks

Scanning the system for Oracle ASMLib disks:               [  OK  ]      

[root]# /etc/init.d/oracleasm listdisks

DISK1

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK2 -s /dev/sdc1 -a force=yes

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK3 -s /dev/sdd1 -a force=yes

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK4 -s /dev/sde1 -a force=yes

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK4 -s /dev/sde1 -a force=yes

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK5 -s /dev/sdf1 -a force=yes

[root]# /usr/sbin/asmtool -C -l /dev/oracleasm -n DISK6 -s /dev/sdg1 -a force=yes

 

[root]# /etc/init.d/oracleasm listdisks

DISK1

DISK2

DISK3

DISK4

DISK5

DISK6

 

Fixing the Permission:

 

[root]# /etc/init.d/oracleasm scandisks

Scanning the system for Oracle ASMLib disks:               [  OK  ]

posted on 2013-02-02 18:11  jony413  阅读(895)  评论(0)    收藏  举报