创建ASM磁盘时报:Marking disk "VOL2" as an ASM disk:[FAILED]
使用使用ASM管理方式创建Oracle数据库,创建ASM磁盘这一步的时候,报:Marking disk "VOL1" as an ASM disk:[FAILED],查看查看日志信息发现该设备在使用
[root@hxl oracle]#less /var/log/oracleasm
Unable to open device "/dev/sdb1": Device or resource busy;接着往回找原因,在分区的时候,发现:
[root@localhost ~]# fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
Partition 1 is already defined. Delete it before re-adding it.
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
然后接着想起来装系统的时候,将新增加的磁盘,添加到逻辑卷里面去了:
总结:
一是一定记得将除本地磁盘/dev/sda之外所有磁盘标识符前面小方框里面的勾给取消掉,二是在“Review and modify partitioning layout”前面打勾,在进行磁盘分区的时候,才能正确:
[root@localhost ~]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1305 10377990 8e Linux LVM
Disk /dev/sdb: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
[root@localhost ~]# fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-652, default 652):
Using default value 652
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Marking disk "VOL1" as an ASM disk: [ OK ]
Marking disk "VOL2" as an ASM disk: [ OK ]