创建ASM磁盘时,出现
[root@hisdbserver ~]# oracleasm createdisk DATA02 /dev/mapper/mpatha
Device "/dev/mapper/mpatha" is already labeled for ASM disk ""
[root@hisdbserver ~]# oracleasm createdisk VOTEDATA01 /dev/mapper/mpathb
Device "/dev/mapper/mpathb" is already labeled for ASM disk ""
最初的解决方案是通过rename来创建DATA02以及5块投票盘,如下操作:
[root@hisdbserver etc]# oracleasm renamedisk -f /dev/mapper/mpatha DATA02
[root@hisdbserver mapper]# oracleasm renamedisk -f /dev/mapper/mpathb VOTEDATA01
[root@hisdbserver mapper]# oracleasm renamedisk -f /dev/mapper/mpathc VOTEDATA02
[root@hisdbserver mapper]# oracleasm renamedisk -f /dev/mapper/mpathd VOTEDATA03
[root@hisdbserver mapper]# oracleasm renamedisk -f /dev/mapper/mpathe VOTEDATA04
[root@hisdbserver mapper]# oracleasm renamedisk -f /dev/mapper/mpathg VOTEDATA05
[root@hisdbserver mapper]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@hisdbserver mapper]# oracleasm listdisks
DATA01
DATA02
VOTEDATA01
VOTEDATA02
VOTEDATA03
VOTEDATA04
VOTEDATA05
注意虽然此处显示创建OK,但当我们图形界面创建GI到第9步时,弹不出磁盘.
异常原因:未对磁盘进行分区.
处理方案:
a、对所有磁盘进行dd处理
dd if=/dev/zero of=/dev/mapper/mpathb bs=4096 count=256
dd if=/dev/zero of=/dev/mapper/mpathc bs=4096 count=256
dd if=/dev/zero of=/dev/mapper/mpathd bs=4096 count=256
dd if=/dev/zero of=/dev/mapper/mpathe bs=4096 count=256
dd if=/dev/zero of=/dev/mapper/mpathg bs=4096 count=256
dd if=/dev/zero of=/dev/mapper/mpatha bs=4096 count=256
dd if=/dev/zero of=/dev/mapper/mpathf1 bs=4096 count=256
b、将磁盘做分区处理,依次按以下图片中的步骤执行分区.
分完区后注意需要partprobe
c、重新创建磁盘
oracleasm createdisk DATA01 /dev/mapper/mpathf1
oracleasm createdisk DATA02 /dev/mapper/mpatha
oracleasm createdisk VOTEDATA01 /dev/mapper/mpathb
oracleasm createdisk VOTEDATA02 /dev/mapper/mpathc
oracleasm createdisk VOTEDATA03 /dev/mapper/mpathd
oracleasm createdisk VOTEDATA04 /dev/mapper/mpathe
oracleasm createdisk VOTEDATA05 /dev/mapper/mpathg
重新创建GI,此问题不再发生.