`
mikixiyou
  • 浏览: 1087122 次
  • 性别: Icon_minigender_1
  • 来自: 南京
博客专栏
C3c8d188-c0ab-3396-821d-b68331e21226
Oracle管理和开发
浏览量:349645
社区版块
存档分类
最新评论

oracleasm createdisk 使用误区

阅读更多

oracleasm刚开始使用,有些地方没明白,例如如何创建磁盘。

 

我先看一下帮助

[root@db3 ~]# oracleasm createdisk -h
Usage: oracleasm-createdisk [-l <manager>] [-v] <label> <device>

 

 

根据帮助,我这样操作的

[root@db3 ~]# /etc/init.d/oracleasm createdisk /dev/sdb2 VOL2
Marking disk "/dev/sdb2" as an ASM disk: [FAILED]

 

(墙内链接: http://mikixiyou.iteye.com/blog/1522673)

创建失败,检查错误日志文件:


[root@db3 ~]# tail -f /var/log/oracleasm
Validating disk "VOL1"
Scanning system for ASM disks...
Disk "VOL1" is a valid ASM disk
oracleasm-read-label: Unable to read device "/dev/sdd": Input/output error
oracleasm-read-label: Unable to read device "/dev/sdf": Input/output error
oracleasm-read-label: Unable to read device "/dev/sdi": Input/output error
oracleasm-read-label: Unable to read device "/dev/sdi1": Input/output error
oracleasm-read-label: Unable to read device "/dev/sdk": Input/output error
oracleasm-read-label: Unable to read device "/dev/sdk1": Input/output error
Disk label "/dev/sdb2" contains an invalid character
:q!

 

日志告诉我: "/dev/sdb2" 含有无效的字符。

实在没明白。

 

怎么解决呢?

我做了一系列操作:

[root@db3 ~]# dd if=/dev/zero of=/dev/sdb2
408655+0 records in
408655+0 records out
209231360 bytes (209 MB) copied, 9.65437 seconds, 21.7 MB/s

[root@db3 ~]# oracleasm createdisk /dev/sdb2 VOL2
Disk label "/dev/sdb2" contains an invalid character

 

还是报同样的错误。

 

[root@db3 ~]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [  OK  ]
[root@db3 ~]# /etc/init.d/oracleasm createdisk /dev/sdb2 VOL2
Marking disk "/dev/sdb2" as an ASM disk: [FAILED]
[root@db3 ~]# /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]:
Default group to own the driver interface [dba]:
Start Oracle ASM library driver on boot (y/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  ]

 

还是失败。

 

到最后了,实在不行了。google了一下。

 

发现错误居然是这样:


[root@db3 ~]# /etc/init.d/oracleasm createdisk  VOL2 /dev/sdb2
Marking disk "VOL2" as an ASM disk: [  OK  ]

 

真是无语,那个帮助害死人。

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics