DROPPING A DISKGROUP  FROM +ASM  IN ORACLE 11g RAC.
I have two node RAC cluster  
Node01 and Node02. Here  I am
going to drop TEST diskgroup from both node.
1. Check
the  available diskgroup.
SQL> select
dg.name dg_name, dg.state dg_state, dg.type, d.disk_number dsk_no,
DG_NAME         DG_STATE   TYPE      
DSK_NO PATH            MOUNT_S
FAILGROUP  STATE
 SET LINESIZE 
145
 break on report on disk_group_name skip 1
 SELECT
Disk
Group            Sector   Block  
Allocation
2. Loging with
Node01 and try to run TEST diskgroup . You will get the following error.
SQL> drop
diskgroup test;
Resolve:-
3. To resolve this . Login to Node02 first and
dismount the diskgroup there.
break on
report on disk_group_name skip 1
 SELECT
Disk
Group            Sector   Block  
Allocation
SQL> !hostname
node02.example.com
SQL> alter
diskgroup test dismount;
Diskgroup
altered.
SQL>
4. Login to
node01 and Now you can drop the TEST from node01 and here your TEST diskgroup
should be in mount mode.
SQL>
!hostname
SQL> drop
diskgroup test;
Diskgroup
dropped.
SQL> 
SQL> !hostname
node02.example.com
 
No comments:
Post a Comment