<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/1633.htm</link>
<title><![CDATA[[WS2012] 差异磁盘在无需共享存储的实时迁移中的临时解决方案]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Virtualization]]></category>
<pubDate>Fri, 09 Nov 2012 06:18:28 +0000</pubDate> 
<guid>https://maytide.net/read.php/1633.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/-Windows-Server-2012_A734/logo_winserver2012.png"><img title="logo_winserver2012" border="0" alt="logo_winserver2012" src="http://goxia.maytide.net/ftpupfiles/-Windows-Server-2012_A734/logo_winserver2012_thumb.png" width="220" height="44"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在前一篇日志《详解 <a href="http://www.microsoft.com/zh-cn/server-cloud/ws2012/default.aspx" target="_blank">Windows Server 2012</a> 无需共享存储的实时迁移》结尾中 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 提到差异磁盘在实施迁移中的问题，而本篇将简要与大家分享一下该问题的情况以及临时的解决方案。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果在实时迁移场景中，要迁移的虚机磁盘使用了差异磁盘类型，那么在迁移过程中便会出现问题，具体的错误提示如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012_C333/15.png"><img title="15" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="15" src="http://goxia.maytide.net/ftpupfiles/WS2012_C333/15_thumb.png" width="401" height="309"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;“迁移目标上的虚拟机迁移操作失败。无法访问磁盘。”下面来看看这台虚机的磁盘配置情况，名为 XP 虚机的磁盘使用差异磁盘基于一个操作系统模板而创建，其父级磁盘存储位置位于其他分区目录，如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012_C333/image.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/WS2012_C333/image_thumb.png" width="534" height="392"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当我们执行无需共享存储的实时迁移时，向导实际上只会迁移虚机“实体”文件，即：快照、分页、配置文件以及 VHD，而使用差异磁盘类型 VHD 的父级 VHD 不会被迁移，这可能是一个 Bug，之所以说是 Bug是因为在选择要移动的项目窗体中，迁移向导并未识别当前虚机的 VHD 是一个差异磁盘，所以也就无法检测到所涉及到的父级 VHD，但是实际上我们又可以通过提前手工复制父级 VHD 的手段来解决一些问题，使之能够完成正常的迁移。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012_C333/image_3.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/WS2012_C333/image_thumb_3.png" width="722" height="544"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;不管结论如何，如果当前的实践环境使用了差异磁盘，那么请按照 gOxiA&nbsp;&nbsp;提供的方案来解决！首先确认源主机上要迁移虚机的父级磁盘文件（VHD）存储路径，之后再目标主机同盘符下创建这个存储路径，并将父级磁盘文件（VHD）手工拷贝到目标主机对应位置，之后再去执行迁移即可顺利完成任务。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;就是这么简单！反过来想想，其实在生产环境下，通常我们不会使用差异磁盘来部署虚机。但是大部分网友在进行实践时通常都会使用差异磁盘来减少对物理磁盘的占用，实践起来也确实方便。所以在目前未经微软方面证实并给出解决方案前，暂时可以使用 gOxiA 提供的方法来解决。</p><br/>Tags - <a href="https://maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="https://maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="https://maytide.net/go.php/tags/server/" rel="tag">server</a> , <a href="https://maytide.net/go.php/tags/2012/" rel="tag">2012</a> , <a href="https://maytide.net/go.php/tags/hyper-v/" rel="tag">hyper-v</a> , <a href="https://maytide.net/go.php/tags/3.0/" rel="tag">3.0</a> , <a href="https://maytide.net/go.php/tags/shared/" rel="tag">shared</a> , <a href="https://maytide.net/go.php/tags/nothing/" rel="tag">nothing</a> , <a href="https://maytide.net/go.php/tags/live/" rel="tag">live</a> , <a href="https://maytide.net/go.php/tags/migration/" rel="tag">migration</a> , <a href="https://maytide.net/go.php/tags/smb/" rel="tag">smb</a> , <a href="https://maytide.net/go.php/tags/vhd/" rel="tag">vhd</a> , <a href="https://maytide.net/go.php/tags/0x80070003/" rel="tag">0x80070003</a>
]]>
</description>
</item>
</channel>
</rss>