Sunday, October 4, 2020

How to change DISKGROUP name RAC

 [grid@rac1pub108 ~]$ cd /u01

[grid@rac1pub108 u01]$ . grid.env

[grid@rac1pub108 u01]$ asmcmd umount DATA

[grid@rac1pub108 u01]$ asmcmd lsdg

State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name

MOUNTED  NORMAL  N         512   4096  1048576      3069     2143             1023             560              0             Y  CRS/

MOUNTED  NORMAL  N         512   4096  1048576    159990   151538                0           75769              0             N  FRA/

[grid@rac1pub108 u01]$ renamedg phase=both dgname=DATA newdgname=DATADG verbose=true


Parsing parameters..


Parameters in effect:


         Old DG name       : DATA

         New DG name          : DATADG

         Phases               :

                 Phase 1

                 Phase 2

         Discovery str        : (null)

         Clean              : TRUE

         Raw only           : TRUE

renamedg operation: phase=both dgname=DATA newdgname=DATADG verbose=true

Executing phase 1

Discovering the group

Performing discovery with string:

Identified disk ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:ORCL:DATA1 with disk number:0 and timestamp (33058144 -463167488)

Identified disk ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:ORCL:DATA2 with disk number:1 and timestamp (33058144 -463167488)

Identified disk ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:ORCL:DATA3 with disk number:2 and timestamp (33058144 -463167488)

Checking for hearbeat...

Re-discovering the group

Performing discovery with string:

Identified disk ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:ORCL:DATA1 with disk number:0 and timestamp (33058144 -463167488)

Identified disk ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:ORCL:DATA2 with disk number:1 and timestamp (33058144 -463167488)

Identified disk ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so:ORCL:DATA3 with disk number:2 and timestamp (33058144 -463167488)

Checking if the diskgroup is mounted or used by CSS

Checking disk number:0

Checking disk number:1

Checking disk number:2

Generating configuration file..

Completed phase 1

Executing phase 2

Looking for ORCL:DATA1

Modifying the header

Looking for ORCL:DATA2

Modifying the header

Looking for ORCL:DATA3

Modifying the header

Completed phase 2

Terminating kgfd context 0x7f82a23370a0

[grid@rac1pub108 u01]$  asmcmd mount DATADG

[grid@rac1pub108 u01]$ asmcmd lsdg

State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name

MOUNTED  NORMAL  N         512   4096  1048576      3069     2143             1023             560              0             Y  CRS/

MOUNTED  NORMAL  N         512   4096  1048576    239985   215617            79995           67811              0             N  DATADG/

MOUNTED  NORMAL  N         512   4096  1048576    159990   151538                0           75769              0             N  FRA/

[grid@rac1pub108 u01]$asmcmd mount DATADG


No comments:

Post a Comment

Featured post

Migrate OCR & vote from external to normal or High redundancy in ASM

How to Move OCR & Vote from external to Normal or high. 1)  Create New diskgroup(CRS) with suitable redundancy for OCR and Voting files....

Popular Posts