oracle 11.2.0.1 rac 修改asm磁碟組的冗餘模式(redundancy mode)為normal
oracle 11.2.0.1 rac 修改asm磁碟組的冗餘模式(redundancy mode)為normal
背景介紹:
oracle 11.2.0.1 linux rac ,
ocr和vote file存放於名為CRS的asm磁碟組中,名為CRS的asm磁碟組是external冗餘模式
現在的需求:
將ocr和vote file 存放於 normal 冗餘模式的磁碟組。
進行的步驟:
fdisk -l
可以看到新加的硬碟(新加的硬碟位於儲存上)
/dev/sddlmaa
/dev/sddlmab
/dev/sddlmad
這3塊硬碟都是10.7g
使用
fdisk /dev/sddlmaa
fdisk /dev/sddlmab
fdisk /dev/sddlmad
對磁碟進行分割槽:第一個區5G大小,剩餘空間為第二個區,分割槽後如下:
/dev/sddlmaa1 5G
/dev/sddlmaa2 5G
/dev/sddlmab1 5G
/dev/sddlmab2 5G
/dev/sddlmad1 5G
/dev/sddlmad2 5G
使用oracleasm createdisk進行asm磁碟的建立
/etc/init.d/oracleasm createdisk CRS1 /dev/sddlmaa1
/etc/init.d/oracleasm createdisk CRS2 /dev/sddlmaa2
/etc/init.d/oracleasm createdisk CRS3 /dev/sddlmab1
/etc/init.d/oracleasm createdisk CRS4 /dev/sddlmab2
/etc/init.d/oracleasm createdisk CRS5 /dev/sddlmad1
在2個節點都執行下列命令:
/etc/init.d/oracleasm scandisks
/etc/init.d/oracleasm listdisks
確保在2個節點都能發現CRS1 CRS2 CRS3 CRS4 CRS5
分別在2個節點執行asmca,在建立asm磁碟組的介面下,確保2個節點都能發現CRS1 CRS2 CRS3 CRS4 CRS5
若是有的節點不能發現新建立的asm磁碟組,請重啟此節點。
在1節點上執行asmca,外部冗餘,1個asm磁碟(CRS1), 磁碟組名稱為CRSTEMP
在1節點上執行asmca,normal冗餘,3個asm磁碟(CRS2,CRS3,CRS4), 磁碟組名稱為CRSNEW
轉移ocr檔案:
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -replace +CRS -replacement +CRSNEW
PROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location、
--注意:此PROT-28 我在metalink上沒有搜到有價值的東西。後來是在帖子
的啟發下,使用
ocrconfig -add 和 ocrconfig -replace 完成了ocr的轉移。
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -add +CRSTEMP
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2732
Available space (kbytes) : 259388
ID : 1268373340
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +CRSTEMP
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@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -replace +CRS -replacement +CRSNEW
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2732
Available space (kbytes) : 259388
ID : 1268373340
Device/File Name : +CRSNEW
Device/File integrity check succeeded
Device/File Name : +CRSTEMP
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
轉移vote file:
[grid@racdb01 ~]$ crsctl replace votedisk +CRSNEW
Successful addition of voting disk 4ffbd2a9e98a4f0ebf3e2746685e6e16.
Successful addition of voting disk 5aafbc65e1594f7fbffb8820ac838dd9.
Successful addition of voting disk 6ba82447d0de4fd8bf3773613392b997.
Successful deletion of voting disk 135147ada70e4f57bf1dd2c75824e490.
Successfully replaced voting disk group with +CRSNEW.
CRS-4266: Voting file(s) successfully replaced
[grid@racdb01 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 4ffbd2a9e98a4f0ebf3e2746685e6e16 (ORCL:CRS2) [CRSNEW]
2. ONLINE 5aafbc65e1594f7fbffb8820ac838dd9 (ORCL:CRS3) [CRSNEW]
3. ONLINE 6ba82447d0de4fd8bf3773613392b997 (ORCL:CRS4) [CRSNEW]
Located 3 voting disk(s).
[@more@]
背景介紹:
oracle 11.2.0.1 linux rac ,
ocr和vote file存放於名為CRS的asm磁碟組中,名為CRS的asm磁碟組是external冗餘模式
現在的需求:
將ocr和vote file 存放於 normal 冗餘模式的磁碟組。
進行的步驟:
fdisk -l
可以看到新加的硬碟(新加的硬碟位於儲存上)
/dev/sddlmaa
/dev/sddlmab
/dev/sddlmad
這3塊硬碟都是10.7g
使用
fdisk /dev/sddlmaa
fdisk /dev/sddlmab
fdisk /dev/sddlmad
對磁碟進行分割槽:第一個區5G大小,剩餘空間為第二個區,分割槽後如下:
/dev/sddlmaa1 5G
/dev/sddlmaa2 5G
/dev/sddlmab1 5G
/dev/sddlmab2 5G
/dev/sddlmad1 5G
/dev/sddlmad2 5G
使用oracleasm createdisk進行asm磁碟的建立
/etc/init.d/oracleasm createdisk CRS1 /dev/sddlmaa1
/etc/init.d/oracleasm createdisk CRS2 /dev/sddlmaa2
/etc/init.d/oracleasm createdisk CRS3 /dev/sddlmab1
/etc/init.d/oracleasm createdisk CRS4 /dev/sddlmab2
/etc/init.d/oracleasm createdisk CRS5 /dev/sddlmad1
在2個節點都執行下列命令:
/etc/init.d/oracleasm scandisks
/etc/init.d/oracleasm listdisks
確保在2個節點都能發現CRS1 CRS2 CRS3 CRS4 CRS5
分別在2個節點執行asmca,在建立asm磁碟組的介面下,確保2個節點都能發現CRS1 CRS2 CRS3 CRS4 CRS5
若是有的節點不能發現新建立的asm磁碟組,請重啟此節點。
在1節點上執行asmca,外部冗餘,1個asm磁碟(CRS1), 磁碟組名稱為CRSTEMP
在1節點上執行asmca,normal冗餘,3個asm磁碟(CRS2,CRS3,CRS4), 磁碟組名稱為CRSNEW
轉移ocr檔案:
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -replace +CRS -replacement +CRSNEW
PROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location、
--注意:此PROT-28 我在metalink上沒有搜到有價值的東西。後來是在帖子
的啟發下,使用
ocrconfig -add 和 ocrconfig -replace 完成了ocr的轉移。
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -add +CRSTEMP
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2732
Available space (kbytes) : 259388
ID : 1268373340
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +CRSTEMP
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@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrconfig -replace +CRS -replacement +CRSNEW
[root@racdb01 ~]# /u01/app/11.2.0/grid/bin/ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2732
Available space (kbytes) : 259388
ID : 1268373340
Device/File Name : +CRSNEW
Device/File integrity check succeeded
Device/File Name : +CRSTEMP
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
轉移vote file:
[grid@racdb01 ~]$ crsctl replace votedisk +CRSNEW
Successful addition of voting disk 4ffbd2a9e98a4f0ebf3e2746685e6e16.
Successful addition of voting disk 5aafbc65e1594f7fbffb8820ac838dd9.
Successful addition of voting disk 6ba82447d0de4fd8bf3773613392b997.
Successful deletion of voting disk 135147ada70e4f57bf1dd2c75824e490.
Successfully replaced voting disk group with +CRSNEW.
CRS-4266: Voting file(s) successfully replaced
[grid@racdb01 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 4ffbd2a9e98a4f0ebf3e2746685e6e16 (ORCL:CRS2) [CRSNEW]
2. ONLINE 5aafbc65e1594f7fbffb8820ac838dd9 (ORCL:CRS3) [CRSNEW]
3. ONLINE 6ba82447d0de4fd8bf3773613392b997 (ORCL:CRS4) [CRSNEW]
Located 3 voting disk(s).
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1053225/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- ORACLE ASM磁碟組空間溢位OracleASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- 如何檢視Oracle RAC的asm磁碟的udev對應關係OracleASMdev
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- Oracle 11.2.0.4 rac for aix acfs異常環境的克隆環境ASM磁碟組掛載緩慢OracleAIASM
- Linux下Oracle 11.2.0.1 RAC安裝筆記LinuxOracle筆記
- ASM磁碟組限制ASM
- Oracle RAC日常運維-DATA磁碟組故障Oracle運維
- oracle rac 增加磁碟Oracle
- 遷移ASM磁碟組ASM
- ASM磁碟組更換磁碟的操作方法ASM
- ASM 磁碟組的建立及擴容ASM
- ORACLE ASM的SSD磁碟空間回收分析OracleASM
- Overview of Oracle Flex ASM In Oracle 19c RAC-20220111ViewOracleFlexASM
- 【RAC】Oracle RAC如何修改心跳網路Oracle
- 一次ASM新增新的磁碟組ASM
- 一文全懂:獨立冗餘磁碟陣列(RAID)陣列AI
- 【ARCH】Oracle 判斷asm磁碟組大小,超過閾值清理指令碼OracleASM指令碼
- 【RAC】Oracle rac 如何修改公網及vipOracle
- 使用udev擴充套件ASM磁碟組dev套件ASM
- ASM磁碟組擴容操作文件ASM
- Oracle asm磁碟損壞異常恢復OracleASM
- 【BUILD_ORACLE】使用ASMLib包搭建ASM磁碟UIOracleASM
- 關於Oracle 10g ASM磁碟大小的限制Oracle 10gASM
- goldengate + asm + racGoASM
- ASM磁碟組ORA-15042 ORA-15096ASM
- ASM重新命名包含OCR/vote file的磁碟組ASM
- Oracle資料庫 ASM磁碟線上擴容Oracle資料庫ASM
- Oracle RAC修改public, VIP, SCAN IPOracle
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- 【ASK_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(一)ASMFD簡介OracleASMFilter
- [20210419]避免冗餘的輸出.txt
- 網路冗餘技術
- RAC+ASM+DATAGUARDASM