19c RAC在线替换OCR ASM磁盘
1.目标
ASM磁盘组EAP_OCR 要替换一块磁盘
NEW: /dev/EAP_OCR_02_03
OLD: /dev/EAP_OCR_02_01 --> name: EAP_OCR_0001
使用新的磁盘/dev/EAP_OCR_02_03 替换 ASM磁盘/dev/EAP_OCR_02_01
2.实施计划
--替换磁盘
ALTER DISKGROUP EAP_OCR OFFLINE DISK EAP_OCR_0001;
ALTER DISKGROUP EAP_OCR REPLACE DISK EAP_OCR_0001 WITH '/dev/EAP_OCR_02_03' POWER 3;
--OR
alter diskgroup EAP_OCR add disk '/dev/EAP_OCR_02_03' rebalance power 3;
alter diskgroup EAP_OCR drop disk 'EAP_OCR_0001' rebalance power 3;
3.监控
select * from v$asm_operation;
4.验证
select * from v$asm_disk;
#####################################################################
具体实施步骤如下。
su - grid
$sqlplus / as sysasm
SQL> ALTER DISKGROUP EAP_OCR REPLACE DISK EAP_OCR_0001 WITH '/dev/EAP_OCR_02_03' POWER 3;
ALTER DISKGROUP EAP_OCR REPLACE DISK EAP_OCR_0001 WITH '/dev/EAP_OCR_02_03' POWER 3
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15145: ASM disk 'EAP_OCR_0001' is online and cannot be replaced.
Elapsed: 00:00:00.02
----根据MOS ID 1571975.1 , offline disk前需要保证磁盘组COMPATIBILITY,DATABASE_COMPATIBILITY 满足要求。否则会报错。
----ALTER DISKGROUP EAP_OCR OFFLINE DISK EAP_OCR_0001;
----ALTER DISKGROUP EAP_OCR REPLACE DISK EAP_OCR_0001 WITH '/dev/EAP_OCR_02_03' POWER 3;
SQL>
SQL> ALTER DISKGROUP EAP_OCR OFFLINE DISK EAP_OCR_0001;
Diskgroup altered.
Elapsed: 00:00:00.04
SQL>
SQL> ALTER DISKGROUP EAP_OCR REPLACE DISK EAP_OCR_0001 WITH '/dev/EAP_OCR_02_03' POWER 3;
Diskgroup altered.
Elapsed: 00:00:01.19
SQL>exit
标签:02,RAC,dev,EAP,OCR,ALTER,19c,0001 From: https://www.cnblogs.com/lipeng20004/p/17567720.html