ASM磁盘组删除磁盘

Posted elontian

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ASM磁盘组删除磁盘相关的知识,希望对你有一定的参考价值。

ASM磁盘组删除磁盘

[[email protected] ~]$ su - grid
sqlplus / as sysasm
Connected.
SQL> alter diskgroup data drop disk data_0001;
Diskgroup altered.
SQL> select disk_number, state, name, total_mb, free_mb from v$asm_disk where group_number = 4;
DISK_NUMBER STATE NAME TOTAL_MB FREE_MB
----------- -------- ------------------------------ ---------- ----------
1 DROPPING DATA_0001 1953124 1950842
0 NORMAL DATA_0000 1953124 1948124
SQL> select disk_number, state, name, total_mb, free_mb from v$asm_disk where group_number = 4;
DISK_NUMBER STATE NAME TOTAL_MB FREE_MB
----------- -------- ------------------------------ ---------- ----------
1 DROPPING DATA_0001 1953124 1951434
0 NORMAL DATA_0000 1953124 1947532
SQL> select disk_number, state, name, total_mb, free_mb from v$asm_disk where group_number = 4;
DISK_NUMBER STATE NAME TOTAL_MB FREE_MB
----------- -------- ------------------------------ ---------- ----------
1 DROPPING DATA_0001 1953124 1952556
0 NORMAL DATA_0000 1953124 1946410
SQL> select disk_number, state, name, total_mb, free_mb from v$asm_disk where group_number = 4;
DISK_NUMBER STATE NAME TOTAL_MB FREE_MB
----------- -------- ------------------------------ ---------- ----------
1 DROPPING DATA_0001 1953124 1953096
0 NORMAL DATA_0000 1953124 1945870
SQL> select disk_number, state, name, total_mb, free_mb from v$asm_disk where group_number = 4;
DISK_NUMBER STATE NAME TOTAL_MB FREE_MB
----------- -------- ------------------------------ ---------- ----------
0 NORMAL DATA_0000 1953124 1945854
SQL> select group_number, disk_number, path, name, state, total_mb, free_mb
2 from v$asm_disk
3 where path = ‘/dev/asm-disk5‘;
GROUP_NUMBER DISK_NUMBER PATH NAME STATE TOTAL_MB FREE_MB
------------ ----------- --------------- ---------- -------- ---------- ----------
0 1 /dev/asm-disk5 NORMAL 0 0
可以看到,虽然删除操作执行完成,但是磁盘并没有真正被删掉,ASM在后台尝试将磁盘上的数据挪到其他可用磁盘中,这时磁盘的状态为DROPPING。
当后台数据同步的操作完成,磁盘的组信息被清除,磁盘恢复STATE状态。这时这个磁盘就从ASM中被彻底删除。





































以上是关于ASM磁盘组删除磁盘的主要内容,如果未能解决你的问题,请参考以下文章

Oracle11g添加asm磁盘到asm磁盘组,发现添加错误如何删除新添加到磁盘?

求助,RAC环境卸载oracle软件把ASM磁盘组弄丢了

案例:Oracle非常规恢复 ASM磁盘组diskgroup被删除使用kfed进行完美恢复

为data磁盘组删除当中一个盘(asm external data盘组中有两块盘)

asm磁盘组,asm磁盘状态学习

11g 删除磁盘组步骤