更換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.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28572479/viewspace-2664723/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 遷移OCR和VotingDisk並刪除原ASM磁碟組ASM
- ASM磁碟組更換磁碟的操作方法ASM
- ASM重新命名包含OCR/vote file的磁碟組ASM
- 替換OCR和表決磁碟後,重啟叢集,資料庫資源的叢集狀態為OFFLINE資料庫
- 【RAC】RAC更換心跳地址和RAC更換儲存主要步驟
- ASM磁碟組限制ASM
- Ubuntu apt-get和pip源更換Ubuntuapt-get
- Oracle RAC 遷移替換 OCR 盤Oracle
- ABBYY FineReader PDF 15 for Mac 全新安裝下載,PDF轉換和OCRMac
- ubuntu更換安裝源和pip映象源Ubuntu
- 遷移ASM磁碟組ASM
- Debian更換源
- Ubuntu apt-get和pip國內源更換Ubuntuapt-get
- Tesseract-OCR如何得到更準確的中文識別
- 淺析 vSAN 磁碟組架構和快取盤的“消亡”架構快取
- 帝國cms更換域名後圖片地址更換的方法
- pip更換映象源
- vue更換圖示Vue
- 如何更換python版本Python
- Mac 更換 PHP 版本MacPHP
- 更換骨幹網
- 組磁碟陣列的主要作用陣列
- 帝國cms網站更換域名後圖片地址更換的方法網站
- windows10如何更換硬碟_win10更換硬碟操作方法Windows硬碟Win10
- Linux設定口令複雜度和口令定期更換策略Linux複雜度
- IDEA更換背景圖片Idea
- 如何更換動態IP?
- Linux centor 更換 PHP 版本LinuxPHP
- Jetson Nano 更換映象源NaN
- laravel-admin 更換底部Laravel
- 問題:未清空磁碟被新增到磁碟組觸發壞塊
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- 如何更換win10系統_更換win10系統的方法Win10
- ASM磁碟組擴容操作文件ASM
- ASM 磁碟組的建立及擴容ASM
- ORACLE ASM磁碟組空間溢位OracleASM
- 使用udev擴充套件ASM磁碟組dev套件ASM
- Oracle 21C OCR和OLR管理Oracle