<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>惜分飞 &#187; ORA-15032 ORA-15017 ORA-15063</title>
	<atom:link href="https://www.xifenfei.com/tag/ora-15032-ora-15017-ora-15063/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sat, 07 Nov 2026 15:45:44 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>ORA-15063: ASM discovered an insufficient number of disks for diskgroup 恢复</title>
		<link>https://www.xifenfei.com/2022/06/ora-15063-recovery.html</link>
		<comments>https://www.xifenfei.com/2022/06/ora-15063-recovery.html#comments</comments>
		<pubDate>Tue, 21 Jun 2022 14:27:55 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle ASM]]></category>
		<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[ORA-15032 ORA-15017 ORA-15063]]></category>
		<category><![CDATA[ORA-15063]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=9771</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2022/06/ora-15063-recovery.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2022/06/ora-15063-recovery.html" target="_blank">ORA-15063: ASM discovered an insufficient number of disks for diskgroup 恢复</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>客户反馈三个磁盘组无法正常mount,报错类似ORA-15032 ORA-15017 ORA-15063</p>
<pre class="brush: bash; title: ; notranslate">
SQL&gt; ALTER DISKGROUP ASM_DATA MOUNT  /* asm agent *//* {0:0:2} */ 
NOTE: cache registered group ASM_DATA number=1 incarn=0xffa85ccd
NOTE: cache began mount (first) of group ASM_DATA number=1 incarn=0xffa85ccd
ERROR: no read quorum in group: required 2, found 0 disks
NOTE: cache dismounting (clean) group 1/0xFFA85CCD (ASM_DATA) 
NOTE: messaging CKPT to quiesce pins Unix process pid: 5709, image: oracle@XFF (TNS V1-V3)
NOTE: dbwr not being msg'd to dismount
NOTE: lgwr not being msg'd to dismount
NOTE: cache dismounted group 1/0xFFA85CCD (ASM_DATA) 
NOTE: cache ending mount (fail) of group ASM_DATA number=1 incarn=0xffa85ccd
NOTE: cache deleting context for group ASM_DATA 1/0xffa85ccd
Tue Jun 21 12:24:38 2022
NOTE: No asm libraries found in the system
ASM Health Checker found 1 new failures
GMON dismounting group 1 at 16 for pid 19, osid 5709
ERROR: diskgroup ASM_DATA was not mounted
ORA-15032: not all alterations performed
ORA-15017: diskgroup &quot;ASM_DATA&quot; cannot be mounted
ORA-15063: ASM discovered an insufficient number of disks for diskgroup &quot;ASM_DATA&quot;
ERROR: ALTER DISKGROUP ASM_DATA MOUNT  /* asm agent *//* {0:0:2} */
</pre>
<p>初步判断是asm disk异常导致(比如asm disk不能被扫描到,或者丢失,或者磁盘头损坏等),分析客户的asm disk的udev文件配置</p>
<pre class="brush: bash; title: ; notranslate">
KERNEL==&quot;sdd1&quot;, NAME=&quot;asm_grid&quot;, OWNER=&quot;grid&quot;, GROUP=&quot;asmadmin&quot;, MODE=&quot;0660&quot;          
KERNEL==&quot;sde1&quot;, NAME=&quot;asm_system&quot;, OWNER=&quot;grid&quot;, GROUP=&quot;asmadmin&quot;, MODE=&quot;0660&quot;    
KERNEL==&quot;sdf1&quot;, NAME=&quot;asm_data&quot;, OWNER=&quot;grid&quot;, GROUP=&quot;asmadmin&quot;, MODE=&quot;0660&quot;     
</pre>
<p>从udev的配置中可以看出来,客户以前是对3个磁盘进行分析,然后使用udev映射别名给asm使用的.通过对其中一个磁盘进行分析<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621220634.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621220634.jpg" alt="20220621220634" width="1178" height="301" class="alignnone size-full wp-image-9772" /></a><br />
<a href="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621220728.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621220728.jpg" alt="20220621220728" width="1182" height="440" class="alignnone size-full wp-image-9773" /></a><br />
<hr />
通过上述winhex查看，可以确认该分区的磁盘头信息异常[该信息属于磁盘刚分区的时候信息,而不是asm disk的信息],和kfed看到的结果一致[磁盘头位置肯定损坏,其他位置目前未知]</p>
<pre class="brush: bash; title: ; notranslate">
H:\TEMP\dd&gt;kfed read sdf_sdf1.dd
kfbh.endian:                          0 ; 0x000: 0x00
kfbh.hard:                            0 ; 0x001: 0x00
kfbh.type:                            0 ; 0x002: KFBTYP_INVALID
kfbh.datfmt:                          0 ; 0x003: 0x00
kfbh.block.blk:                       0 ; 0x004: blk=0
kfbh.block.obj:                       0 ; 0x008: file=0
kfbh.check:                           0 ; 0x00c: 0x00000000
kfbh.fcn.base:                        0 ; 0x010: 0x00000000
kfbh.fcn.wrap:                        0 ; 0x014: 0x00000000
kfbh.spare1:                          0 ; 0x018: 0x00000000
kfbh.spare2:                          0 ; 0x01c: 0x00000000
0064D8400 00000000 00000000 00000000 00000000  [................]
        Repeat 26 times
0064D85B0 00000000 00000000 00000000 02000000  [................]
0064D85C0 FE8E0001 003FFFFF DFFC0000 0000257F  [......?......%..]
0064D85D0 00000000 00000000 00000000 00000000  [................]
        Repeat 1 times
0064D85F0 00000000 00000000 00000000 AA550000  [..............U.]
0064D8600 00000000 00000000 00000000 00000000  [................]
  Repeat 223 times
KFED-00322: Invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][0]
</pre>
<p>分析其他位置的block情况,初步看基本上ok[运气还不错]</p>
<pre class="brush: bash; title: ; notranslate">
H:\TEMP\dd&gt;kfed read sdf_sdf1.dd blkn=2|grep kfbh.type
kfbh.type:                            3 ; 0x002: KFBTYP_ALLOCTBL

H:\TEMP\dd&gt;kfed read sdf_sdf1.dd blkn=3|grep kfbh.type
kfbh.type:                            3 ; 0x002: KFBTYP_ALLOCTBL

H:\TEMP\dd&gt;kfed read sdf_sdf1.dd blkn=1 aun=2|grep kfbh.type
kfbh.type:                            3 ; 0x002: KFBTYP_ALLOCTBL
</pre>
<p>通过检索备份出来的部分磁盘文件,找出来ORCLDISK信息部分(asm disk header)<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621221843.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621221843.jpg" alt="20220621221843" width="1184" height="397" class="alignnone size-full wp-image-9774" /></a><br />
<hr />
然后利用这个部分对损坏的磁盘头进行修复,并且dd回生产环境中,并尝试mount磁盘组,数据库open成功<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621181430.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621181430.jpg" alt="20220621181430" width="1182" height="600" class="alignnone size-full wp-image-9775" /></a><br />
<a href="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621222356.jpg"><img src="https://www.xifenfei.com/wp-content/uploads/2022/06/20220621222356.jpg" alt="20220621222356" width="789" height="371" class="alignnone size-full wp-image-9776" /></a></p>
<hr />
至此这个数据库运气不错,没有过多损坏,算完美恢复,可以进行了逻辑导出和rman备份,全部正常.为了后续安全,建议对其进行迁移</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/03/asm-disk-zero-recovery.html" rel="bookmark" class="crp_title">asm disk 磁盘部分被清空恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/06/error-diskgroup-xxxx-was-not-mounted.html" rel="bookmark" class="crp_title">ERROR: diskgroup XXXX was not mounted</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/05/pvcreate-asm-disk-recovery.html" rel="bookmark" class="crp_title">pvcreate  asm disk导致asm磁盘组异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/12/ssd-trim-fdisk.html" rel="bookmark" class="crp_title">ssd trim导致fdisk格式化磁盘之后无法恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/10/asm-disk-fdisk-format-ext4-recovery.html" rel="bookmark" class="crp_title">asm disk被分区,格式化为ext4恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/06/fdisk-asm-disk-recovery.html" rel="bookmark" class="crp_title">fdisk分区导致asm disk破坏数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/%e4%bd%bf%e7%94%a8asm-disk-header-%e8%87%aa%e5%8a%a8%e5%a4%87%e4%bb%bd%e4%bf%a1%e6%81%af%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">使用asm disk header 自动备份信息恢复异常asm disk header</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/06/pvid-asm-dismount.html" rel="bookmark" class="crp_title">pvid=yes导致asm无法mount</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/oracleasm-createdisk-acfs-recovery.html" rel="bookmark" class="crp_title">oracleasm createdisk破坏的acfs文件系统恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/01/kfed-ora-15196.html" rel="bookmark" class="crp_title">kfed修复ORA-15196</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/04/phys_meta_replicated.html" rel="bookmark" class="crp_title">Physically Addressed Metadata Redundancy on  12c ASM ( PHYS_META_REPLICATED )</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/03/rm-lun-oracle-recovery.html" rel="bookmark" class="crp_title">误删除asm disk导致磁盘组无法mount数据库恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2022/06/ora-15063-recovery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
