Can ASM DiskGroup Be Renamed?

This was actually a question on Oracle forum which I had replied to. Basically the Poster, wanted to know if he could rename the ASM Diskgroup name by renaming/editing ASM Disk header. He had also mentioned that he had heard about this being done by Oracle for its few customers using kfed.

Answer is NO. It is not possible to rename the diskgroup by editing the ASM disk header. kfed is known to be used for patching ASM disk headers for corruption (only oracle support can do it) and for viewing ASM header contents. Only way to change this by dropping and recreating the diskgroup.

In case you wish to create a new diskgroup with a name say +DG1 which was being used by a Diskgroup which is not mounted (Have some ASM Disk members still in ASM_DISKSTRING path), then you would face following error

    <strong>ORA-15030</strong>: diskgroup name "string" is in use by another diskgroup
    <strong>Cause:</strong> A CREATE DISKGROUP command specified a Diskgroup name that was already assigned to another diskgroup.
    <strong>Action: </strong>Select a different name for the Diskgroup.

In case you wish to create the Diskgroup with same name +DG1 you will be required to clear the ASM disk header using

dd if=/dev/zero of=/dev/raw/raw11 bs=1024 count=100

After this you can recreate the Diskgroup with same name.

One Poster suggested renaming at LUN/Storage level. I believed this to be a destructive idea which could corrupt the Diskgroup. nvengurl replied to this and informed that we read ASM disk header to mount the Diskgroup and thus changing the LUN name/id/path will not solve the issue.

Update: This article is valid for 10g and 11gR1. Since 11gR2 oracle has introduced renamedg utility which can be used to rename diskgroup. I have documented the steps here

Amit Bansal

Experienced professional with 16 years of expertise in database technologies. In-depth knowledge of designing and implementation of Disaster Recovery / HA solutions, Database Migrations , performance tuning and creating technical solutions. Skills: Oracle,MySQL, PostgreSQL, Aurora, AWS, Redshift, Hadoop (Cloudera) , Elasticsearch, Python

This Post Has 10 Comments

  1. Alejandro Vargas

    A disk Group can be renamed. I have implemented this procedure with customers that required to mount several clones of the production database on the same server.



  2. Amit


    I believe there is not a straight forward way to do it. May be you would have used kfed. In any case is the solution available to customers or is it only support can do it.

    1. Harish Joshi

      use renamedg command

      renamedg dgname=data newdgname=dg asm_diskstring=’/dev/oracleasm/disks/VOL*’ verbose=true

      1. Harish Joshi

        We have tested it on our production of size more than 20TB to clone successfully.

        If you need any help…will send you the complete detail of doing so…

  3. Amit

    I found that a solution to rename Diskgroup has been posted on the OTN Forum. You can find the thread here . Please note that I have not tested this and would not recommend it to be run on production databases.

  4. Amardeep Sidhu

    “you will be required to clear the ASM disk header using

    dd if=/dev/zero of=/dev/raw/raw11 bs=1024 count=100”

    Just used it ;). Thanks !

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.