暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
11gR2 RAC OCR磁盘组的换名重建恢复测试
563
9页
8次
2022-02-16
免费下载
11gR2 RAC OCR 磁盘组的换名重建恢复测试
付思明(Simon Fu|Senior Support Engineer
Oracle Global Software Support
一、背景
根据文档 1062983.1 中的步骤恢 OCR replace voting disk 到新的磁盘组后,发现新
磁盘组无法通 crsctl stat res -t 查看。由于 11gR2 不支持 srvctl add diskgroup 目录,
需要用 crsctl add res ora.OCR.dg -type ora.diskgroup.type -file ocrdg.txt 添加。
二、测试目的
删除虚拟机 RAC CRS 物理磁盘后,使 OCR 备份恢复到新的 OCR 磁盘组,看恢复后
crsctl stat res t 是否可以列出新的 OCR 磁盘组,如果没有列出,手工增加磁盘组
三、ASM 磁盘配置
[root@cluster1 ~]# fdisk -l
Disk /dev/sda: 24.6 GB, 24603262976 bytes
255 heads, 63 sectors/track, 2991 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 2991 23920785 8e Linux LVM
Disk /dev/sdb: 1153 MB, 1153433600 bytes
255 heads, 63 sectors/track, 140 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 140 1124518+ 83 Linux
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
/dev/sdc1 1 652 5237158+ 83 Linux
Disk /dev/sdd: 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
/dev/sdd1 1 652 5237158+ 83 Linux
Disk /dev/sde: 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
/dev/sde1 1 652 5237158+ 83 Linux
Disk /dev/sdf: 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
/dev/sdf1 1 652 5237158+ 83 Linux
Disk /dev/dm-0: 18.9 GB, 18991808512 bytes
255 heads, 63 sectors/track, 2308 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 5469 MB, 5469372416 bytes
255 heads, 63 sectors/track, 664 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
[root@cluster1 ~]# /etc/init.d/oracleasm listdisks
ASM1
ASM2
ASM3
ASM4
OCR
四、测试记录
--------------
1 虚拟机 os 底层加盘/dev/sdg1 ASMLIB 标记为 ASM 磁盘/dev/oracleasm/disks/OCR
2 以独占和 nocrs 模式启动 crs
[root@cluster1 ~]# /grid/bin/crsctl start crs -excl -nocrs
CRS-4123: Oracle High Availability Services has been started.
CRS-2676: Start of 'ora.asm' on 'cluster1' succeeded
3 修改 ocr.loc
ocrconfig_loc 改为+OCR
[root@cluster1 ~]# vi /etc/oracle/ocr.loc
ocrconfig_loc=+OCR
local_only=FALSE
~
of 9
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜