Saturday, 19 March 2016

RENAMEDISK & DELETEDISK through ASMLIB in 11gR2

RENAME/DELETE DISKLABEL through ASMLIB

We can rename a DISKLABEL in asm through two ways


1)      RENAMING BY PROVIDING  DISKLABLE NAME

In the below example, we are rename a disk label by providing the CURRENT DISKLABEL name to NEW DISKLABEL name

[root@ nikhil]#  /etc/init.d/oracleasm force-renamedisk TEMP5 TEMP6
Renaming disk "TEMP5" to "TEMP6":                          [  OK  ]


 [root@nikhil]# oracleasm querydisk /dev/mapper/DISK_05
Device "/dev/mapper/DISK_05" is marked an ASM disk with the label "TEMP6"


2)      RENAMING BY PROVIDING THE DISK

In the below example, we are rename a disk label by providing the disk and new name to be allocated for the disk

[root@nikhil]#  /etc/init.d/oracleasm force-renamedisk /dev/mapper/DISK_05 TEMP5
Renaming disk "/dev/mapper/DISK_05" to "TEMP5":            [  OK  ]


[root@nikhil]# oracleasm querydisk /dev/mapper/DISK_05
Device "/dev/mapper/DISK_05" is marked an ASM disk with the label "TEMP5"


We can DELETE a DISKLABEL in asm through two ways


1)      DELETE ASM DISK LABEL BY PROVIDING  DISKLABEL NAME

In below example we are check the disk to find the DISKLABEL and we are deleting a disklabel by providing the disklabel name

[root@nikhil]# oracleasm querydisk /dev/mapper/DISK_05
Device "/dev/mapper/DISK_05" is marked an ASM disk with the label "TEMP5"

 [root@nikhil]# oracleasm deletedisk TEMP5
Clearing disk header: done
Dropping disk: done


2)      DELETE ASM DISK LABEL BY PROVIDING THE DISK


In below example, we are deleting a disklabel by providing the disk and we are check the disk status after deleting the disklabel

[root@nikhil]# oracleasm deletedisk /dev/mapper/DISK_05
Clearing disk header: done
Dropping disk: done

[root@nikhil]#  oracleasm querydisk /dev/mapper/DISK_05
Device "/dev/mapper/DISK_05" is not marked as an ASM disk



See Also                                                                                                                     See Also 
Moving Control Files in ASM                                               MovingTablespace Across DiskGroup


No comments:

Post a Comment