您的位置:首页 > 其它

Windows Server 2012 Hyper-V复制功能

2014-05-21 16:23 316 查看
Windows Server 2012 Hyper-V复制功能
笔者:李晓辉
虚拟架构的容灾和备份需要大规模的投入,而 Windows Server 2012 内置的 Hyper-V 复制特性,可帮助企业在简化的结构之上以最低的成本、最精简的管理开销,轻松实现虚拟架构的容灾。
总体来说,windows server 2012中hyper-v算个很大的亮点,版本也升到了3.0,具备了更多的新功能和特性比如:Hyper-V 3.0主机支持160个逻辑处理器、2TB的内存,而Hyper-V R2只支持64个逻辑处理器、1TB的内存、可进行远程虚拟机复制等。今天我们讨论的就是关于Hyper-v复制功能,但是注意,这个功能仅在windows server 2012的hyper-v 3.0中可用。
环境:两台windows server 2012
目的:实现两台windows server 2012中的虚拟机实现网络远程复制,当站点一出现故障时,站点二马上接管业务,实现容灾
好的,了解完后,我们在管理器中操作窗格中选“hyper-v设置”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121150dnvs.jpg" height="400" ?542? />
好的,在复制配置这个页面,我们勾选启用、使用kerberos认证和端口,并选好我们的虚拟机存储位置,设置好之后,我们点确定
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121151DTEm.jpg" height="400" ?426? />
好的,注意两台机器的防火墙设置,不然你会成功不了,当然了,如果你一直有关闭防火墙的习惯,那又另当别论了,没有安全可言,在windows server 2012中,防火墙做的还不错,建议大家使用
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image006" border="0" alt="clip_image006" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121151y4Bf.jpg" height="400" ?533? />
好的,我们在操作窗格中选“启用复制”,然后我们在“副本服务器”的输入我们的第二台hyper-v主机,确认后我们点“下一步”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image008" border="0" alt="clip_image008" src="http://img1.51cto.com/attachment/201209/20/4042188_13481211524hsP.jpg" height="393" ?555? />
好的,现在我们开始指定连接参数,确认我们的副本服务器,端口、身份认证类型,以及是否启用压缩这样的参数,确认之后我们点“下一步”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image010" border="0" alt="clip_image010" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121153d16T.jpg" height="400" ?531? />
然后选择我们要复制的vhd(虚拟机硬盘),如果有多块,这里会出现多个,你可以选择的,选好之后我们“下一步”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image012" border="0" alt="clip_image012" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121154FlfY.jpg" height="400" ?533? />
好的,现在我们可以指定这个恢复点,默认是只恢复到我们最新的状态点,我们为了保险,可以指定多个还原点,看下图,也有相关的说明
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image014" border="0" alt="clip_image014" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121155zmMD.jpg" height="400" ?533? />
OK,现在选我们的初始怎么复制,我就用网络复制了,在生产系统中我们也是网络的,下面我们就用默认的立即启动复制了,你也可以做计划时间,让它半夜的时候复制,也行
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image016" border="0" alt="clip_image016" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121155rmdy.jpg" height="400" ?532? />
下图就是我们的所有参数了,确认后我们“完成”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image018" border="0" alt="clip_image018" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121157lqIP.jpg" height="400" ?528? />
好的,我们看到提示,已成功启用复制了,然后我们看提示,说我们成功创建并指定了复制服务器hv2,我们可以手动指定这个网络,那我们就点设置“settings”去设置一下用对方哪个网卡
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image020" border="0" alt="clip_image020" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121157f7dY.jpg" height="400" ?523? />
好的,默认是未连接,我们选一个网卡上去,完成后我们点“确定”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image022" border="0" alt="clip_image022" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121158M8SJ.jpg" height="400" ?420? />
看,现在的状态是发送初始的复制设置了,在这之前也帮我们做了个快照,最下面也有复制状态,正在进行初始复制
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image024" border="0" alt="clip_image024" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121159yTUm.jpg" height="386" ?556? />
完成后我们再来看复制状态,就变成了“已启用复制”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image026" border="0" alt="clip_image026" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121160E7P9.gif" height="389" ?551? />
好的,现在我们打开hv2这个hyper-v主机,就能看到这个虚拟机已经过来了,看最下面的复制类型:副本
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image028" border="0" alt="clip_image028" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121161HNQk.jpg" height="397" ?558? />
现在我们来试试故障转移,嘿嘿,所以我们选“测试故障转移”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image030" border="0" alt="clip_image030" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121161d7AP.jpg" height="391" ?552? />
好的,我们选一个还原点,然后点“测试故障转移”
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image032" border="0" alt="clip_image032" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121162G6Au.jpg" height="203" ?465? />
好了,看那个复制类型:测试副本,也帮我们创建了一个叫server1-test的测试虚拟机,我们来启动看看
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image034" border="0" alt="clip_image034" src="http://img1.51cto.com/attachment/201209/20/4042188_1348121166Muer.jpg" height="390" ?556? />
看到这里你是不是有个疑问,它启动了那我正在跑的业务怎么办,我来说一下,系统在帮我们创建虚拟机的时候,会把网络给你断开,如下图,所以啊,你放心吧,它你的源主机上的hyper-v由于故障挂掉的时候,就会触发故障转移,你的hv2上的主机就会启动接管你的业务,这功能是不是很兴奋!!
650) this.width=650;" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="clip_image036" border="0" alt="clip_image036" src="http://img1.51cto.com/attachment/201209/20/4042188_13481211670YyN.jpg" height="400" ?425? />
好的,到此完美成功,不成功的留言本文出自 “阳光☆奋进” 博客,请务必保留此出处http://ucweb.blog.51cto.com/4042188/999511
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: