Advertisement
ExaGridDba

lvremove will not remove a disk from a mounted ASM diskgroup

Oct 9th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. BY: Brian Fitzgerald
  2.  
  3. asm:
  4.  
  5. CREATE diskgroup
  6. crashdummy
  7. normal redundancy
  8. disk
  9. 'ORCL:ASMDISK0044',
  10. 'ORCL:ASMDISK0045'
  11. ;
  12.  
  13. Diskgroup created.
  14.  
  15.  
  16. rdbms:
  17. SQL> startup force nomount
  18. ORACLE instance started.
  19.  
  20. Total SYSTEM Global Area 1577058304 bytes
  21. Fixed SIZE          2924832 bytes
  22. Variable SIZE         503320288 bytes
  23. DATABASE Buffers     1056964608 bytes
  24. Redo Buffers           13848576 bytes
  25.  
  26. 7> restore CONTROLFILE TO '+CRASHDUMMY' FROM '+FRARDBMS10/GP12102/CONTROLFILE/current.272.860076555';
  27.  
  28. grid:
  29. [grid@stormking asm]$ asmcmd ls crashdummy/GP12102/CONTROLFILE/CURRENT.256.860537509
  30. CURRENT.256.860537509
  31.  
  32. oracle:
  33. initgp12102.ora:
  34. *.control_files='+DATARDBMS10/GP12102/CONTROLFILE/current.300.860076553','+FRARDBMS10/GP12102/CONTROLFILE/current.272.860076555', '+crashdummy/GP12102/CONTROLFILE/current.256.860537509'
  35.  
  36. SQL> startup force
  37. ORACLE instance started.
  38.  
  39. Total SYSTEM Global Area 1577058304 bytes
  40. Fixed SIZE          2924832 bytes
  41. Variable SIZE         503320288 bytes
  42. DATABASE Buffers     1056964608 bytes
  43. Redo Buffers           13848576 bytes
  44. DATABASE mounted.
  45. DATABASE opened.
  46. SQL> show parameter control_files
  47.  
  48. NAME                     TYPE    VALUE
  49. ------------------------------------ ----------- ------------------------------
  50. control_files                string  +DATARDBMS10/GP12102/CONTROLFI
  51.                          LE/CURRENT.300.860076553, +FRA
  52.                          RDBMS10/GP12102/CONTROLFILE/cu
  53.                          rrent.272.860076555, +CRASHDUM
  54.                          MY/GP12102/CONTROLFILE/CURRENT
  55.                          .256.860537509
  56.  
  57. [root@stormking lvm]# lvremove -f -v vg_asm/lvasm0045
  58.     USING logical volume(s) ON command line
  59.     Archiving volume GROUP "vg_asm" metadata (seqno 122).
  60.     Found volume GROUP "vg_asm"
  61.     Removing vg_asm-lvasm0045 (252:46)
  62.   device-mapper: remove ioctl ON  failed: Device OR RESOURCE busy
  63.   device-mapper: remove ioctl ON  failed: Device OR RESOURCE busy
  64.  
  65. no asm errors
  66. no rdbms errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement