记录一次数据库drop磁盘组,drop磁盘组中盘的操作。

古之立大事者,不惟有超世之才,亦必有坚忍不拔之志。这篇文章主要讲述记录一次数据库drop磁盘组,drop磁盘组中盘的操作。相关的知识,希望能为你提供帮助。
【记录一次数据库drop磁盘组,drop磁盘组中盘的操作。】 

用户执行数据库


1. 检查确认要删除的磁盘组是否再用
select * from dba_data_files;
select * from dba_temp_files;
select * from v$logfile;

2. 先在各节点上dismount磁盘组
alter diskgroup ADGDATA dismount;
alter diskgroup ADGSYS dismount;
alter diskgroup DATA02 dismount;
注意该ARCH、DATA、ACFS、DATABAK、ZZJDATA不能够进行dismount


3.ASM中删除磁盘组


drop diskgroup ADGDATA force including contents;
drop diskgroup ADGSYS force including contents;
drop diskgroup DATA02 force including contents;

4.crs删除磁盘组

crsctl stat res -t---查看磁盘组
srvctl remove diskgroup -g ADGDATA -f
srvctl remove diskgroup -g ADGSYS -f
srvctl remove diskgroup -g DATA02 -f




5.更新crs信息
查看crs依赖的磁盘组:

crsctl status res


6. 对DATA盘 、ARCH盘进行踢出
踢除25个
alter diskgroup DATA drop disk data_0000 rebalance power 10;
alter diskgroup DATA drop disk data_0001 rebalance power 10;
alter diskgroup DATA drop disk data_0002 rebalance power 10;
alter diskgroup DATA drop disk data_0003 rebalance power 10;
alter diskgroup DATA drop disk data_0004 rebalance power 10;
alter diskgroup DATA drop disk data_0005 rebalance power 10;
alter diskgroup DATA drop disk data_0014 rebalance power 10;


7.创建一个DGARCH
create diskgroup DGARCH external redundancy disk /dev/mapper/xxxx




    推荐阅读