重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 154|回复: 0

[安装] 安装GI弹不出磁盘问题

[复制链接]
发表于 2021-9-15 22:42:15 | 显示全部楼层 |阅读模式
创建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步时,弹不出磁盘.
49988614206143a87c.png
异常原因:未对磁盘进行分区.
处理方案:
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、将磁盘做分区处理,依次按以下图片中的步骤执行分区.
378614206321fb8c.png
分完区后注意需要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,此问题不再发生.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2021-10-24 10:18 , Processed in 0.089615 second(s), 24 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表