如何在 Oracle 12c RAC 数据库中重命名 ASM 磁盘组

Summary: 我们的目标是提供各种解决方案,通过提供数据库解决方案、自定义开发、动态数据中心、灵活计算,从而简化IT

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

适用于:

操作系统:RHEL/OEL 5.x 和 RHEL/OEL 6.x

Oracle 版本:11.2.0.1 及更高版本

作者:

Mahesh Anand Reddy M

问题:
如何在 Oracle 12c RAC 数据库中重命名 ASM 磁盘组?

解决 方案:

您可以通过两种方式之一重命名磁盘组。使用 renamedg 工具更改磁盘组名称。

先决条件:
1.1 必须在群集中的所有节点上卸载磁盘组。
您可以通过以下方式

重命名磁盘组:选项 1)

此方式使用磁盘字符串将 +DATA 重命名为 +DBDATA,以找到启用的磁盘和详细选项。

登录网格用户

语法:

$renamedg dgname=current dg name newdgname=newdg asm_diskstring=disk 的位置 verbose=true

示例:我想使用重命名的实用程序将我的磁盘组名称从 DATA 更改为 DBDATA。

$renamedg dgname=DATA newdgname=DBDATA asm_diskstring='/dev/mapper/datap1' verbose=true

选项 2)

以下命令将生成配置文件。

$renamedg phase=one dgname=DATA newdgname=DBDATA asm_diskstring='/dev/mapper/datap1' config=/tmp/disk.conf verbose=true
配置文件包含以下信息

:/dev/mapper/DATAp1 DATA DBDATA

使用配置文件重命名磁盘组。


$renamedg phase=two dgname=DATA newdgname=DBDATA config=/tmp/disk.conf verbose=true

重命名磁盘组后,您可以使用 重命名磁盘组中的磁盘,以匹配磁盘组名称。

在重命名磁盘组中的磁盘之前,您需要在受限模式下装载磁盘组。

SQL> alter diskgroup DBADATA rename disks all;
SLN310925_en_US__1icon :重命名磁盘组后,不会自动删除原始磁盘组资源。您可以在 crsctl stat res –t 中看到旧磁盘资源。您可以使用 srvctl remove diskgroup命令手动删除

 

Article Properties
Article Number: 000146507
Article Type: Solution
Last Modified: 21 Feb 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.