DBAtlas · 数据库运维图谱

从 ASM 磁盘组移除磁盘

OracleASM

命令

ALTER DISKGROUP DATA DROP DISK DATA_0005 REBALANCE POWER 4;

-- WAIT until the drop completes (the disk can be physically removed once V$ASM_OPERATION is empty):
SELECT group_number, operation, state, power,
       sofar, est_work, est_minutes
FROM   v$asm_operation;

作用

从磁盘组中移除磁盘;其 extent 会被迁移到其余磁盘(rebalance)。完成后,该磁盘的 HDR_STATUS 变为 FORMER。

适用场景

更换故障磁盘、缩减容量或迁移存储时。

注意

在 rebalance 完成之前切勿物理拔出磁盘,否则数据会丢失。确保其余磁盘有足够的可用空间。

在 DBAtlas 中打开 →

相关内容