13883183259 023-68037655 咨询热线:
当前位置: 主页 > 关于思庄 > 技术分享 >

安装GI弹不出磁盘问题

发布时间:2021-10-17
创建ASM磁盘时,出现以下异常
[root@hisdb1 ~]# oracleasm createdisk DATA02 /dev/mapper/mpatha
Device "/dev/mapper/mpatha" is already labeled for ASM disk ""
[root@hisdb1 ~]# oracleasm createdisk VOTEDATA01 /dev/mapper/mpathb
Device "/dev/mapper/mpathb" is already labeled for ASM disk ""
最初的解决方案是通过rename来创建DATA02以及5块投票盘,如下操作:
[root@hisdb1 etc]# oracleasmrenamedisk -f /dev/mapper/mpatha DATA02
[root@hisdb1 mapper]# oracleasm renamedisk -f /dev/mapper/mpathbVOTEDATA01
[root@hisdb1 mapper]# oracleasm renamedisk -f /dev/mapper/mpathcVOTEDATA02
[root@hisdb1 mapper]# oracleasm renamedisk -f /dev/mapper/mpathdVOTEDATA03
[root@hisdb1 mapper]# oracleasm renamedisk -f /dev/mapper/mpatheVOTEDATA04
[root@hisdb1 mapper]# oracleasmrenamedisk -f /dev/mapper/mpathg VOTEDATA05
[root@hisdb1 mapper]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@hisdb1 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
ddif=/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
oracleasmcreatedisk VOTEDATA05 /dev/mapper/mpathg
 

重新创建GI,此问题不再发生.
 

联系我们 香港奖现场直播结果
023-68037655
香港奖现场直播结果 版权所有© 备案号:渝ICP备12004239号-4

渝公网安备 50010702502184号

<<