暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片
11204 RAC OCR 磁盘组迁移方案.pdf
797
3页
9次
2021-07-18
10墨值下载
序号 目的 主机 用户 命令行 数据结果
操作历时(分钟
查看crs状态 192.168.XX.67 root /app/11.2.0.4/grid/bin/crsctl stat res -t
192.168.XX.69 root /app/11.2.0.4/grid/bin/crsctl stat res -t
创建新的磁盘组
192.168.XX.67 grid 申请5块新盘,创建HIGH冗余磁盘组DGNEWOCR
create diskgroup ……;
192.168.XX.67 grid
备份asm参数
create pfile='/tmp/initasm.ora' from spfile;
192.168.XX.69 grid alter diskgroup DGNEWOCR mount;
查看crs状态
192.168.XX.67 root /app/11.2.0.4/grid/bin/crsctl stat res -t
192.168.XX.69 root /app/11.2.0.4/grid/bin/crsctl stat res -t
创建OCR镜像 192.168.XX.67 root /app/11.2.0.4/grid/bin/ocrconfig -add +DGNEWOCR
检查crs日志
[crsd(21758106)]CRS-2772:Server 'JiekeXu2' has been assigned to pool 'Free'.
2018-07-20 09:36:23.256:
[crsd(21758106)]CRS-1007:The OCR/OCR mirror location was replaced by
+DGNEWOCR.
10
192.168.XX.67 root /app/11.2.0.4/grid/bin/ocrcheck
[JiekeXu1:root]:/>/app/11.2.0.4/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2684
Available space (kbytes) : 259436
ID : 1327653127
Device/File Name : +OCR
Device/File integrity check succeeded
Device/File Name : +DGNEWOCR
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
192.168.XX.69 root /app/11.2.0.4/grid/bin/ocrcheck
[JiekeXu2:root]:/>/app/11.2.0.4/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2684
Available space (kbytes) : 259436
ID : 1327653127
Device/File Name : +OCR
Device/File integrity check succeeded
Device/File Name : +DGNEWOCR
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
删除老的ocr
192.168.XX.67 root
/app/11.2.0.4/grid/bin/ocrconfig -delete +OCR
/app/11.2.0.4/grid/bin/ocrcheck
2018-07-20 09:43:29.725:
[crsd(21758106)]CRS-1010:The OCR mirror location +OCR was removed.
[JiekeXu1:root]:/>/app/11.2.0.4/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2684
Available space (kbytes) : 259436
ID : 1327653127
Device/File Name : +DGNEWOCR
Device/File integrity check succeeded
5
192.168.XX.69 root /app/11.2.0.4/grid/bin/ocrcheck
[JiekeXu2:root]:/>/app/11.2.0.4/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2684
Available space (kbytes) : 259436
ID : 1327653127
Device/File Name : +DGNEWOCR
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
5
迁移vote盘 192.168.XX.67 root
/app/11.2.0.4/grid/bin/crsctl replace votedisk
+DGNEWOCR
/app/11.2.0.4/grid/bin/crsctl query css
votedisk
[JiekeXu1:root]:/>/app/11.2.0.4/grid/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 341d861390d24f2ebf5d126fb74e9cba (/dev/rhdiskpower0) [OCR]
2. ONLINE a7ed646344544fa7bf6cd4b9955ba623 (/dev/rhdiskpower1) [OCR]
3. ONLINE 547cc47abda24fb8bf259de7e1e9e1da (/dev/rhdiskpower2) [OCR]
[JiekeXu1:root]:/>/app/11.2.0.4/grid/bin/crsctl replace votedisk +DGNEWOCR
Successful addition of voting disk 52fe34767a394fc2bff7ad032c07ea16.
Successful addition of voting disk 39aebd634acc4f70bf469a4f0dbe047e.
Successful addition of voting disk 436d8c7998154fbcbf28481c36a88292.
Successful deletion of voting disk 341d861390d24f2ebf5d126fb74e9cba.
Successful deletion of voting disk a7ed646344544fa7bf6cd4b9955ba623.
Successful deletion of voting disk 547cc47abda24fb8bf259de7e1e9e1da.
Successfully replaced voting disk group with +DGNEWOCR.
CRS-4266: Voting file(s) successfully replaced
2018-07-20 09:43:29.725:
[crsd(21758106)]CRS-1010:The OCR mirror location +OCR was removed.
2018-07-20 09:47:28.444:
[cssd(18809008)]CRS-1605:CSSD voting file is online: /dev/rhdiskpower54;
details in /app/11.2.0.4/grid/log/JiekeXu1/cssd/ocssd.log.
2018-07-20 09:47:28.444:
[cssd(18809008)]CRS-1605:CSSD voting file is online: /dev/rhdiskpower55;
details in /app/11.2.0.4/grid/log/JiekeXu1/cssd/ocssd.log.
2018-07-20 09:47:28.444:
[cssd(18809008)]CRS-1605:CSSD voting file is online: /dev/rhdiskpower63;
details in /app/11.2.0.4/grid/log/JiekeXu1/cssd/ocssd.log.
2018-07-20 09:47:28.444:
[cssd(18809008)]CRS-1604:CSSD voting file is offline: /dev/rhdiskpower0;
details at (:CSSNM00069:) in /app/11.2.0.4/grid/log/JiekeXu1/cssd/ocssd.log.
2018-07-20 09:47:28.444:
192.168.XX.69
root
/app/11.2.0.4/grid/bin/crsctl query css votedisk
[JiekeXu2:root]:/>/app/11.2.0.4/grid/bin/crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 52fe34767a394fc2bff7ad032c07ea16 (/dev/rhdiskpower54) [DGNEWOCR]
2. ONLINE 39aebd634acc4f70bf469a4f0dbe047e (/dev/rhdiskpower55) [DGNEWOCR]
3. ONLINE 436d8c7998154fbcbf28481c36a88292 (/dev/rhdiskpower63) [DGNEWOCR]
Located 3 voting disk(s).
offline dg 192.168.XX.67
grid
alter diskgroup OCR dismount force;
5
192.168.XX.69 grid
alter diskgroup OCR dismount force;
drop diskgroup OCR force including contents;
srvctl remove diskgroup -g OCR;
重启一次集群,确定状态正常
of 3
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜