文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

怎么更换ocr和votingdisk磁盘组

2024-04-02 19:55

关注

这篇文章主要讲解了“怎么更换ocr和votingdisk磁盘组”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么更换ocr和votingdisk磁盘组”吧!

#更换OCR

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2948

         Available space (kbytes) :     259172

         ID                       :  717216655

         Device/File Name         :       +OCR

                                    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

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrconfig -add +OCR02

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2964

         Available space (kbytes) :     259156

         ID                       :  717216655

         Device/File Name         :       +OCR

                                    Device/File integrity check succeeded

         Device/File Name         :     +OCR02

                                    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

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrconfig -delete +OCR

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          3

         Total space (kbytes)     :     262120

         Used space (kbytes)      :       2964

         Available space (kbytes) :     259156

         ID                       :  717216655

         Device/File Name         :     +OCR02

                                    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

#更换votingdisk

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   062be79c0d644f2ebf102c21b47b3f3b (/dev/sdb) [OCR]

Located 1 voting disk(s).

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl replace votedisk +OCR02

Successful addition of voting disk 082d31c3fd1e4f5ebf0310f8cef501d8.

Successful deletion of voting disk 062be79c0d644f2ebf102c21b47b3f3b.

Successfully replaced voting disk group with +OCR02.

CRS-4266: Voting file(s) successfully replaced

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl query css votedisk     

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   082d31c3fd1e4f5ebf0310f8cef501d8 (/dev/sde) [OCR02]

Located 1 voting disk(s).

#迁移asm实例的spfile文件

SQL> conn / as sysdba

Connected.

SQL> show parameter pfile;

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string      +OCR/raccluster/asmparameterfi

                                                 le/registry.253.1019126787

SQL> create pfile='/home/grid/initASM.ora' from spfile;

File created.

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop instance -d racdb -n ray32

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop instance -d racdb -n ray31

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop asm -o abort -f

SQL> startup pfile='/home/grid/initASM.ora';

ASM instance started

Total System Global Area 1135747072 bytes

Fixed Size                  2260728 bytes

Variable Size            1108320520 bytes

ASM Cache                  25165824 bytes

ASM diskgroups mounted

SQL> show parameter spfile

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string

SQL> create spfile='+OCR02' from pfile='/home/grid/initASM.ora';

File created.

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/srvctl stop asm -o abort -f

[grid@ray31 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.4.0 Production on Mon Nov 18 15:57:40 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

SQL> conn / as sysasm

Connected to an idle instance.

SQL> startup

ASM instance started

Total System Global Area 1135747072 bytes

Fixed Size                  2260728 bytes

Variable Size            1108320520 bytes

ASM Cache                  25165824 bytes

ASM diskgroups mounted

SQL> show parameter spfile

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

spfile                               string      +OCR02/raccluster/asmparameter

                                                 file/registry.253.1024674953

SQL>

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl stop cluster -all   

[root@ray31 ~]# /u01/app/gridhome/product/11.2.0/grid_1/bin/crsctl start cluster -all   

#删除磁盘组

#在其他节点执行

SQL> alter diskgroup ocr dismount;    

Diskgroup altered.

#其中一个节点执行删除磁盘组

SQL> drop diskgroup OCR including contents;

Diskgroup dropped. 

感谢各位的阅读,以上就是“怎么更换ocr和votingdisk磁盘组”的内容了,经过本文的学习后,相信大家对怎么更换ocr和votingdisk磁盘组这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-数据库
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯