This article describe how we can drop and recreate ASM diskgroup when its not possible to perform this through SQL command.
When a member disk in external redundancy diskgroup is no longer present (or destroyed beyond repair) and you want to drop the diskgroup completely and recreate it or add the disks of the diskgroup to other diskgroups. The diskgroup can not be mounted, because one of the disks is missing, hence the "drop diskgroup" command will not work.
In 10g you can use a workaround by erasing the header of the disk using the dd command.
In 11g, the diskgroup can be dropped when its dismounted with FORCE option:
Oracle� Database Storage Administrator's Guide - 11g Release 1 (11.1)
Administering ASM Disk Groups
Dropping Disk Groups
http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmdiskgrps.htm#i1020539
Erasing the header using "dd" command is very dangerous operation and need to be done under support supervision and when it confirmed by support that fixing the header is impossible.
In all cases and before the erasing operation you should gather the following information:
1. alert.log file from all ASM instances going back to last successful mount for diskgroup.
2. OS logs.
3. Backup disk header for all member disks in diskgroup:
ddif=/dev/raw/raw13of=/tmp/raw13.txt bs=1048576 count=100
1. Erase ASM metadata information for disk using OS command:
!!! YOU HAVE TO BE CAREFUL WHEN TYPING DISK NAME !!!
For Unix platforms using 'dd' Unix command.
==================================
Example:
ddif=/dev/zeroof=/dev/raw/raw13bs=1048576 count=50
Theddutilitycopiesthespecifiedinputfiletothespecifiedoutput.
Description for used options:
'if=file'
Readfromfile/device.
'of=file'
Writetofile/device.
'bs=bytes'
Setbothinputandoutputblocksizestobytes.
'count=blocks'
Copyblocks'ibs'-byteblocksfromtheinputfile
This puts zeroes to the first 50 MB of disk /dev/raw/raw13, erasing all information.
For MS Windows platforms using 'asmtool' (command line) or 'asmtoolg' (GUI)
============================================================
Example:
C:\>asmtool-delete\\.\ORCLDISKASM7
2. Connect to ASM instance to check the current disk status:
SQL>selectheader_status,pathfromv$asm_disk;
You should see the header_status for the cleared disks as " CANDIDATE " which means that disk's metadata erased and it can be used again.
selectGROUP_NUMBER,NAME,HEADER_STATUS,TOTAL_MB,FREE_MBfromV$ASM_DISK;
GROUP_NUMBERNAMEHEADER_STATUTOTAL_MBFREE_MB
--------------------------------------------------------------------------
0CANDIDATE 100000
1DATA_0000MEMBER 10000 9933
1DATA_0003MEMBER 10000 9933
If you dropped all diskgroup member disks, you should not see the diskgroup any more because all its member disks were cleared.
SQL>selectname,STATEfromv$asm_diskgroup;
3. Now, you can use the erased disk(s) to create a new disk group or add the disk to existing diskgroup.
From Oracle
-------------------------------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
Email: dvd.dba@gmail.com
DBA1 群:62697716(满); DBA2 群:62697977(满) DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群: 83829929 DBA5群: 142216823
聊天 群:40132017 聊天2群:69087192
--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请
分享到:
相关推荐
How To Drop, Create And Recreate DB Control In A 10g Database [ID 278100.1] Metalink上下载
look forward to the next day when I could recreate the world.” 41 pau l a sch er “ I wanted to make wonderful things, things that other people liked, things that were important and mattered.”...
Oracle提供了多种方法来帮助我们重构索引,包括`DROP AND RECREATE`、`REBUILD`以及`REBUILD ONLINE`等方式。本文将详细介绍这些不同的索引重构方法,并通过实例展示它们的特点和适用场景。 #### 二、索引重构的...
Advanced This example shows how to create a proxy server to redirect the calls to another server without having to recreate the RODL file, thus allowing the use of the same types of the original ...
This book teaches you how to hook up your Raspberry Pi computer, install different games from a variety of genres, and set up emulators so you can play hundreds of classic arcade and console games....
-- Drop and recreate SQLTEMP for taking a snapshot of the SQLAREA drop table sqltemp; create table sqltemp (...); set echo on -- Create procedure to populate the plan_table by executing -- explain ...
Kusto摄取示例 概括 此存储库包含一个Azure Kusto数据摄取示例,该... // Drop the RV table - use in case you need to drop and recreate .drop table Simple // Create a 'Simple' table .create table Simple (pip
然而,在使用Fragment时,有时会出现一个问题:当Activity由于配置更改(如屏幕旋转)等原因需要重建(recreate)时,内嵌的Fragment可能会被不正确地添加多次,导致界面重叠。这个问题通常与如何管理和恢复Fragment...
This book teaches you how to hook up your Raspberry Pi computer, install different games from a variety of genres, and set up emulators so you can play hundreds of classic arcade and console games....
IMPORTANT : Version 0.6.x users and 0.7.0 users, please upgrade to 0.7.4 and RECREATE the database. News/Updates NEW version 0.7.5 available (28 May 2011) Fixes critical bugs about wrong line count,...
With this book, you get a step-by-step walkthrough of the best techniques and tools to come out of the OpenKinect project, the largest and most active Kinect hacking community. this book will give ...
资源分类:Python库 所属语言:Python 资源全名:docker-recreate-1.4.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
运动数据源 有助于创建和填充运动流的小型项目。 运行测试 mvn clean test 建造 mvn clean package ...-create drop and recreate stream -f,--sample-file <file> sample file to generate records (requir
# chmod +x pull_and_recreate_stacks.sh 配置它 使用堆栈文件夹所在的路径编辑“ stack_path”变量。 例子: stack=/srv/my_containers 在文件夹my_containers中,您有子文件夹: stack1 / docker-compose.yml ...
Thanks to the unique tagging system, the asset can understand what type of components you are using in the layout and recreate them in your project scene. The asset includes a detailed guide to the ...
This feature allows developers to optimize memory access patterns and improve performance by controlling how data is cached. 3. **Asynchronous Copy Data from Global to Shared Memory** - Developers ...
Additionally, do not attempt to recreate the logo or apply effects like drop shadows, outlines, or filters. The logo should retain its original typography, colors, and proportions. Incorrect usage ...
Today's filmmakers often want to recreate the idiosyncrasies of older recording methods, or are looking for something completely new, to differentiate the look of a given project. Furthermore, end-to...
B238688 - Ribbon - TdxRibbonGalleryItem and TdxRibbonDropDownGallery - Drop-down gallery enables design-time customization with drag and drop for its gallery control Q519999 - Ribbon - ...
Ken Merriam, a visitor who grew up on a farm in Honduras, brings his children to Butler's Orchard to recreate the nostalgic feelings of his childhood and expose them to the rural life they might ...