<?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/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Replica &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/replica/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Fri, 27 Jan 2023 23:57:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>Replica &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hyper-V Replica trong Windows Server 2012 R2 (Full)</title>
		<link>https://en.anonyviet.com/hyper-v-replica-trong-windows-server-2012-r2-full/</link>
					<comments>https://en.anonyviet.com/hyper-v-replica-trong-windows-server-2012-r2-full/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 27 Jan 2023 23:57:48 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Full]]></category>
		<category><![CDATA[HyperV]]></category>
		<category><![CDATA[Replica]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[trong]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=5243</guid>

					<description><![CDATA[A)  Giới thiệu Tham gia kênh Telegram của AnonyViet  👉 Link 👈 Hyper-V Replica là một tính năng hoàn toàn mới trên Windows Server 2012. Nó là giải pháp “Disaster Recovery”. Gíup nhanh chóng khắc phục và phục hồi khi xảy ra sự cố với các Virtual Machine trong Hyper-V. Một số IT Pro thường [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div>
<p><strong><span style="color: #ff0000;">A)  Giới thiệu</span></strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Tham gia kênh <span style="color: #0000ff;">Telegram</span> của <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span> 👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Hyper-V Replica là một tính năng hoàn toàn mới trên Windows Server 2012. Nó là giải pháp “Disaster Recovery”. Gíup nhanh chóng khắc phục và phục hồi khi xảy ra sự cố với các Virtual Machine trong Hyper-V.</p>
<p>Một số IT Pro thường nhầm lẫn giữa Hyper-V Replica và Hyper-V Live Migration. Hyper-V Replica cho phép tạo một bản sao các máy ảo từ bên Primary Site sang bên Replica Site, có thể phục hồi trong trường hợp khẩn cấp (Disaster). Còn Hyper-V Live Migration chỉ đơn giản là move (di chuyển) máy ảo từ Hyper-V server này sang Hyper-V server khác.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F1111.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-319" src="https://huypd.files.wordpress.com/2013/09/1111.png?w=640" alt="1111" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 42"/></a></p>
<p>Máy ảo sẽ chạy ở Primary Site và Replica Site là nơi chứa bản sao dự phòng của máy ảo bên Primary Site. Việc replicate các máy ảo có thể là đường LAN/WAN. Hyper-V Replica tương thích hoàn toàn với bất kỳ Server, network hoặc storage của các hãng khác nhau.</p>
<p><strong><span style="color: #ff0000;">B)  Lợi ích của Hyper-V Replica</span></strong></p>
<ul>
<li>Cho phép start máy ảo (manually) bên Replica Site ngay lập tức để phục vụ, nếu bên primary site có sự cố (mất điện, cháy, server chết đột ngột), giúp failover (dự phòng).</li>
<li>Hỗ trợ môi trường Cluter hoặc Non-Cluster.</li>
<li>Minimal downtime : thời gian downtime rất thấp khi bạn chạy máy ảo.</li>
<li>No Active Directory Domain Membership : không cần phải là thành viên Domain mới dùng được tính năng này, Workgroup cũng hỗ trợ.</li>
<li>Recovery Options : cho phép cấu hình và restore lại từng thời điểm, nhờ vào Additional Recovery Points.</li>
<li>Hyper-V Replica and Cloud : hỗ trợ replicate lên hạ tầng IaaS (Infrastructure as a Service) trên cloud để dự phòng.</li>
<li>Data Compression : nén dữ liệu trước replicate.</li>
</ul>
<p><strong><span style="color: #ff0000;">C)  Yêu cầu triển khai</span></strong></p>
<ul>
<li>Các máy Hyper-V phải là Windows Server 2012.</li>
<li>Hardware phải hỗ trợ Hyper-V.</li>
<li>Primary và Replica phải liên lạc được với nhau.</li>
<li>Cấu hình firewall cho phép replicate giữa Primary và Replica.</li>
</ul>
<p><strong><span style="color: #ff0000;">D) Kiến trúc Hyper-V Replica</span></strong></p>
<p>Trong Windows Server 2012, nhân Hypervisor (<span class="skimlinks-unlinked">VMMS.exe</span>) được tích hợp thêm thành phần Replica (Components). Và gọi là module “Replica Engine”, trong module này có rất nhiều thành phần, nhưng có 4 thành phần chính giúp hình thành nên Hyper-V Replica. Bao gồm : <b>Replication Manager, Replication Tracker, Network Module, Change Tracking”.</b></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F136.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-679" src="https://huypd.files.wordpress.com/2013/09/136.png?w=640" alt="1" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 43"/></a></p>
<p><b>1.  </b><b>Replication Manger (RM)</b></p>
<p>Là thành phần quan trọng nhất, chịu trách nhiệm quản lý và thực thi quá trình replication giữa Hyper-V Primary Server và Hyper-V Replica Server. Thực hiện các chức năng cần thiết để đảm bảo việc replicate một cách hiệu quả. Gồm 4 hành động chính :</p>
<ul>
<li><b>Initial Replication Handler</b>: giúp kích hoạt quá trình replication và sau khi thiết lập sẽ quản lý việc gửi dữ liệu replicate của máy ảo đến Hyper-V Replica Server.</li>
<li><b>Delta Replication Handler:</b> Sau khi tiến trình initial replication được thực hiện. Tiếp theo, Delta Replication sẽ kiểm tra các gói dữ liệu replicate và chắc chắn chúng được đẩy đủ và không thiếu gói dữ liệu nào trước khi gửi đi.</li>
<li><b>Failover Handler:</b> cho phép nhận các gói dữ liệu replicate từ Hyper-V Primary Server hoặc từ Hyper-V Replica Server.</li>
<li><b>Failback Handler</b></li>
<li><b>Test Failover Handler</b></li>
</ul>
<p>Ngoài ra còn có các hành động khác như : giám sát trạng thái của các máy ảo, thực hiện nén, mã hóa và đảm nhận các chức năng Standard-Replica, Application-Consistent Replica. Giữ cho việc replicate được thực hiện đầy đủ đúng theo lịch trình, báo cáo về thông tin của lần replicate cuối cùng.</p>
<p><b>2.  C</b><b>hange Tracking</b></p>
<p>Sau khi các máy ảo bên Primary Server được kích hoạt tính năng Replication. Lúc này Change Tracking sẽ chịu trách nhiệm track (theo dõi sát) các thay đổi của file VHD của từng máy ảo. Khi phát hiện có thay đổi nào, Change Tracking lập tức forward thông tin đến báo cho Replication Manager biết. Replication Manager sẽ đẩy xuống hành động Delta Replication Handler để thực thi chức năng Standard-Replica hoặc Application-Consistent Replica. Những thông tin tracking này được Replication manager lưu trong cùng thư mục chứa máy ảo và dưới dạng là .HRL. Khi quá trình replication xảy ra, hệ thống sẽ gửi đi các file .HRL này.</p>
<p><b>3.  </b><b>Replication Tracker</b></p>
<p>Sau khi các file .HRL đã được Replication Manager tạo ra đầy đủ và sẵn sàng để gửi đi. Lúc này RM sẽ thông báo cho Replication Tracker (RT), để RT thực hiện nhiệm vụ gửi các file này đến Replica Server. Mặc định là 5 phút và không thể thay đổi thời gian này. RT chỉ chịu trách nhiệm gửi các file .HRL.</p>
<p><b>4.  </b><b>Network Module</b></p>
<p>Là module được đề cập sau cùng, là kết nối mạng giữa Primary Site và Replica Site, bao gồm các service :</p>
<ul>
<li>Data Compression</li>
<li>Data Encryption</li>
<li>Giao thức giao tiếp: HTTP, HTTPS</li>
<li>Các thành phần hỗ trợ Hyper-V Replica Broker.</li>
</ul>
<p>2 bên Site sẽ có 2 thành phần: HTTP Client và HTTP Listener. Cả 2 thành phần này hoạt động trên giao thức HTTP hoặc HTTPS. HTTP Client dùng để gửi các gói HRL file và HTTP Listener sẽ lắng nghe hành động Initial Replication và Delta Replication.</p>
<p>Trước khi các file HRL được Primary Site gửi đi đến Replica Site, Replica Site phải được chứng thực thành công với Primary Site (việc chứng thực được thực hiện dựa trên giao thức HTTP hoặc HTTPS). Việc chứng thực được thực hiện trong lúc bạn cấu hình replication, và các chu kỳ replicate tiếp theo sẽ không cần chứng thực lại.</p>
<p>Sau khi chứng thực thành công, lúc này Replica Site mới thiết lập kết nối và nhận các file .HRL mà Primary Site gửi đến. Sau khi nhận các file .HRL, Replica Site sẽ gửi ACK lại để xác nhận cho Primary Site biết nó đã nhận được và bắt đầu đưa vào xử lý.</p>
<p><strong><span style="color: #ff0000;">E) Quá trình hoạt động của Hyper-V Replica</span></strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F222223.jpg" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-316" src="https://huypd.files.wordpress.com/2013/09/222223.jpg?w=640&amp;h=400" alt="22222" width="640" height="400" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 44"/></a></p>
<p><strong>1) Enable Replication:</strong> Trước khi thực hiện việc Replicate máy ảo giữa 2 Site (Primary và Replica) thì phải enable tính năng Replication trong Hyper-V Server bên Replica Site. Lúc này cho phép bạn chọn cơ chế truyền data như dùng Kerberos (HTTP) hoặc Certificate-based authentication (HTTPS), đồng thời bạn phải enable port Hyper-V Replica trong Firewall</p>
<p><strong>2) Initial Replication Mode</strong>: Sau khi enable thì hệ thống sẽ bắt đầu thiết lập bước đầu tiên là sẽ copy toàn bộ storage của máy ảo (Current Configuration, Snapshots, VHD, Smart Paging) sang bên Hyper-V Server của Replica Site. Có 3 loại :</p>
<ul>
<li>Use network replication: transfer storage máy ảo qua đường Network (LAN/WAN)</li>
<li>Use a backup copy on the Replica Server:  nếu bạn có dùng tool backup các máy ảo thường xuyên, thì bạn chỉ cần lấy bản backup của máy ảo đem qua cho Replica Server</li>
<li>Use External media: xuất ra external devices (USB, SAN, Storage), sau đó copy từ External devices vào Replica Server</li>
</ul>
<p><strong>3) After Initial Replicate:</strong> sau khi đã hoàn thành bước 2, tại thời điểm này bạn đã có một bản sao (copy) 1:1 giữa máy ảo Primary Site và máy ảo Replica Site. Điều tiếp theo Hyper-V Replica sẽ làm là duy trì việc cập nhật những thay đổi mà user đang sử dụng tính từ thời điểm này trở đi, chúng được gọi là log file. Bằng cách lập lịch Replicate (Schedule), bạn có thể cho phép (5 phút, 15 phút hoặc 30s) replicate một lần. Dữ liệu log file này được compression (nén) trước khi truyền đi và có đuôi là .hrl</p>
<p><strong>Hyper-V Replica trong Windows Server 2012</strong> <strong>R2</strong> khác với Windows Server 2012 là hỗ trợ thêm option Replicate với thời gian 30s và 15 phút, ngoài ra còn có tính năng Replicate Chain, có thể hiểu HOST A (Primary Site) replicate máy ảo sang HOST B (Replica Site), HOST B tiếp tục replicate sang máy ảo HOST C (IaaS, Replica Site 2) mà tôi hay gọi là Replicate mắt xích.</p>
<p> </p>
<p><strong><span style="color: #ff0000;">Lab Hyper-V Replica Non-Cluster with Domain Membership</span></strong></p>
<p><strong>1) Mô hình bao gồm :</strong></p>
<ul>
<li><strong>Máy Hyper-V Primary Site</strong>: có sẵn máy ảo VM1 và Storage của máy ảo này nằm ở File-Server 172.1.1.1/24.</li>
<li><strong>Máy Hyper-V Replica Site</strong>: sẽ dùng để chứa máy ảo VM1 copy được Hyper-V Primary replicate sang và Storage của nó nằm trong máy Hyper-V Replica Site này luôn.</li>
<li><strong>Máy AD chính là File-Server.</strong></li>
<li>Môi trường ở đây sử dụng Kerberos để replicate dữ liệu và nằm trong Domain.</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F113.jpg" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-325" src="https://huypd.files.wordpress.com/2013/09/113.jpg?w=640&amp;h=358" alt="11" width="640" height="358" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 45"/></a></p>
<p><strong>2) Tiến hành:</strong></p>
<ul>
<li>Cấu hình Hyper-V2 (Replica Site) <strong>enable</strong> tính năng <strong>Replication</strong></li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F129.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-326" src="https://huypd.files.wordpress.com/2013/09/129.png?w=640&amp;h=485" alt="1" width="640" height="485" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 46"/></a></strong></p>
<ul>
<li>Chọn <strong>Kerberos</strong> và chọn đường dẫn lưu Storage máy ảo trong Hyper-V2 server ở phần<strong>“Allow Replication From Any Authenticated Server”</strong></li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F217.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-327" src="https://huypd.files.wordpress.com/2013/09/217.png?w=640&amp;h=603" alt="2" width="640" height="603" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 47"/></a></strong></p>
<ul>
<li>Nhấn OK, và lúc này hệ thống sẽ thông báo cho bạn nên enable rule 2 port<strong> Hyper-V Replica HTTP và Hyper-V Replica HTTPS trong Firewall Inbound</strong> của Hyper-V2.</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F39.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-328" src="https://huypd.files.wordpress.com/2013/09/39.png?w=640" alt="3" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 48"/></a></strong></p>
<ul>
<li>Vào<strong> Windows Firewall Advanced Security</strong> và enable 2 port này lên</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F49.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-329" src="https://huypd.files.wordpress.com/2013/09/49.png?w=640&amp;h=477" alt="4" width="640" height="477" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 49"/></a></strong></p>
<ul>
<li>Lúc này bạn tiến hành cấu hình Replication : từ máy Hyper-V1 Primary Site, chuột phải máy ảo và chọn <strong>Enable Replication…</strong>.</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F59.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-330" src="https://huypd.files.wordpress.com/2013/09/59.png?w=640&amp;h=485" alt="5" width="640" height="485" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 50"/></a></strong></p>
<ul>
<li>Chọn server phía <strong>Replica Site</strong>, là Hyper-V2</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F69.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-331" src="https://huypd.files.wordpress.com/2013/09/69.png?w=640&amp;h=481" alt="6" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 51"/></a></strong></p>
<ul>
<li>Chọn giao thức truyền đồng thời stick vào ô nén data bên dưới.</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F79.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-332" src="https://huypd.files.wordpress.com/2013/09/79.png?w=640&amp;h=481" alt="7" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 52"/></a></strong></p>
<ul>
<li>Chọn VHD, có thể máy ảo có nhiều VHD, bạn nên chọn VHD chứa ổ đĩa hệ thống.</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F89.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-333" src="https://huypd.files.wordpress.com/2013/09/89.png?w=640&amp;h=481" alt="8" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 53"/></a></strong></p>
<ul>
<li>Chọn chu kỳ thời gian Hyper-V1 Primary site replicate sang cho Hyper-V2 Replica Site.</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F96.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-334" src="https://huypd.files.wordpress.com/2013/09/96.png?w=640&amp;h=481" alt="9" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 54"/></a></strong></p>
<p>Mặc định Hyper-V Replica cho phép tối đa 15 bản recovery point (snapshot), có 2 cơ chế tạo một Recovery point :</p>
<ul>
<li><strong>Maintain only the latest recovery point</strong> : chỉ tạo duy nhất một recovery point tính từ thời điểm này.</li>
<li><strong>Create additional hourly recovery points :</strong></li>
</ul>
<p>+ Coverage provided by additional recovery points (in hours) : là cơ chế backup dạng “Standard Replica”. Thực hiện Full backup theo chu kỳ.</p>
<p>+ VSS (Volume Shadow Copies) : là cơ chế backup bổ sung, dạng “Application-Consistent”, dùng application VSS để sao lưu tùy theo thời gian ta thiết lập.</p>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F106.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-335" src="https://huypd.files.wordpress.com/2013/09/106.png?w=640&amp;h=481" alt="10" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 55"/></a></strong></p>
<ul>
<li>Chọn cơ chế của bước<strong> “Initial Replication Method”</strong>, ở đây tôi cho replicate bằng đường Network (LAN/WAN) và replicate ngay lập tức</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F1110.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-336" src="https://huypd.files.wordpress.com/2013/09/1110.png?w=640&amp;h=481" alt="11" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 56"/></a></strong></p>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F1210.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-337" src="https://huypd.files.wordpress.com/2013/09/1210.png?w=640&amp;h=481" alt="12" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 57"/></a></strong></p>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F134.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-338" src="https://huypd.files.wordpress.com/2013/09/134.png?w=640&amp;h=481" alt="13" width="640" height="481" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 58"/></a></strong></p>
<ul>
<li><strong>Cấu hình network cho máy ảo copy bên Replica Site</strong>, chọn Settings và chọn card mạng tương ứng bên Replica Site</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F143.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-339" src="https://huypd.files.wordpress.com/2013/09/143.png?w=640" alt="14" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 59"/></a> </strong></p>
<p><strong> <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F153.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-341" src="https://huypd.files.wordpress.com/2013/09/153.png?w=640&amp;h=603" alt="15" width="640" height="603" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 60"/></a></strong></p>
<ul>
<li>Sau khi đã hoàn thành cấu hình, lúc này Hyper-V1 Primary sẽ tiến hành thiết lập Initial Replication (chép tất cả Storage qua bên Hyper-V2 Replica)</li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F16-1.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-342" src="https://huypd.files.wordpress.com/2013/09/16-1.png?w=640&amp;h=390" alt="16 1" width="640" height="390" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 61"/></a></strong></p>
<ul>
<li>Sau khi đã hoàn thành, bạn có thể xem kết quả của việc Replicate bằng<strong> “View Replicate Health”</strong></li>
</ul>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F162.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-343" src="https://huypd.files.wordpress.com/2013/09/162.png?w=640&amp;h=488" alt="16" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 62"/></a></strong></p>
<p><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F172.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-345" src="https://huypd.files.wordpress.com/2013/09/172.png?w=640&amp;h=603" alt="17" width="640" height="603" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 63"/></a></strong></p>
<ul>
<li>Tiếp theo là bước <strong>“After Initial Replication”</strong> : bước này cứ theo chu kỳ bao nhiêu phút là replicate một lần (tùy theo cấu hình 30s, 5 phút, 15 phút)</li>
<li><strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F17-1.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" src="https://huypd.files.wordpress.com/2013/09/17-1.png?w=640&amp;h=391" alt="17 1" width="640" height="391" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 64"/></a></strong></li>
</ul>
<p> </p>
<p>Thứ nhất, Bạn không nên nhầm lẫn giữa triển khai Failover Cluster và Hyper-V Replica. Failover Cluster giúp cho hệ thống luôn ở trong trạng thái sẵn sàng (High Availability) bất cứ lúc nào, còn Hyper-V Replica chỉ là một cơ chế khắc phục sự cố khi xảy ra (Disaster Recovery) và chỉ là tạm thời. Người quản trị cứ nhầm lẫn là Hyper-V Replica cũng giống Failover Clustering, thế nên họ ưu tiên triển khai Hyper-V Replica hơn. Trong thực tế, chúng ta nên triển khai Failover Clustering.</p>
<p>Như tôi đề cập ở trên, Hyper-V Replica thiết kế ra chỉ  giải quyết vấn đề “Disaster Recovery” (khắc phục sự cố, thảm họa), cho phép phục hồi máy ảo một cách nhanh chóng. Nếu các máy ảo Primary Site bị chết, thì các máy ảo copy bên Replica Site sẽ enable lên và chạy (việc này bạn phải thực hiện bằng tay), giúp phục hồi hệ thống nhanh nhất để không làm gián đoạn . Giả sử trong trường hợp Replica Site cũng chết, thì coi như không thể phục hồi và doanh nghiệp sẽ bị downtime liên tục. Kết luận, Hyper-V Replica chỉ phục hồi tạm thời và về lâu dài thì triển khai giải pháp Failover Cluster vẫn hay hơn.</p>
<p>Thứ hai, rất nhiều người quản trị nghĩ rằng Hyper-V Replica thực chất là một phương pháp backup (do nó ánh xạ 1:1) và bỏ quên các giải pháp backup máy ảo theo kiểu truyền thống trong Hyper-V. Đó thực sự là sai lầm.</p>
<p>Sau đây là bảng so sánh giữa Failover Cluster, Hyper-V Replica, và phương pháp Backup.</p>
<div align="center">
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="245"/>
<td valign="top" width="113">
<p align="center">Cluster</p>
</td>
<td valign="top" width="142">
<p align="center">Hyper-V Replica</p>
</td>
<td valign="top" width="123">
<p align="center">Backup</p>
</td>
</tr>
<tr>
<td valign="top" width="245">Thay thế cho Cluster</td>
<td valign="top" width="113">
<p align="center">N/A</p>
</td>
<td valign="top" width="142">
<p align="center">No</p>
</td>
<td valign="top" width="123">
<p align="center">No</p>
</td>
</tr>
<tr>
<td valign="top" width="245">Thay thế cho Hyper-V Replica</td>
<td valign="top" width="113">
<p align="center">No</p>
</td>
<td valign="top" width="142">
<p align="center">N/A</p>
</td>
<td valign="top" width="123">
<p align="center"><b>Yes</b></p>
</td>
</tr>
<tr>
<td valign="top" width="245">Thay thế cho phương pháp backup</td>
<td valign="top" width="113">
<p align="center">No</p>
</td>
<td valign="top" width="142">
<p align="center">No</p>
</td>
<td valign="top" width="123">
<p align="center">N/A</p>
</td>
</tr>
</tbody>
</table>
</div>
<p>Như bạn thấy, phương pháp backup có thể thay thế cho Hyper-V replica, nhưng nếu xét ngược lại thì hoàn toàn không thể. Hyper-V Replica chỉ cho phép tối đa 15 bản snapshot cho cả 2 cơ chế “Standard Replica” hoặc “Application-Consistent”. Nếu sếp bạn yêu cầu phải giữ các bản sao trong vòng một tháng, điều đó thực sự khó khăn. Còn nữa, Hyper-V Replica không có đầy đủ các thuộc tính sao lưu ở dạng nâng cao hơn là các phương pháp backup.</p>
<p>Do đó cần phải có một phương pháp backup truyền thống. Ví dụ như sản phẩm <strong>Altaro Hyper-V Backup</strong>, cho phép bạn backup và tạo ra vô số bản snapshot cho từng thời điểm. Còn đối với Và an toàn hơn hết trong trường hợp cả 2 Hyper-V Primary Site và Hyper-V Replica đều chết. Thì backup bằng truyền thống (off-site) sẽ còn lưu giữ lại các máy ảo, và việc bạn cần làm là chỉ cần tạo ra một Hyper-V server mới sau đó import các máy ảo này vào.</p>
<p><strong>Hyper-V Replica cho phép bạn giả lập môi trường và test thử khả năng chịu lỗi trước khi có sự cố xảy ra. Giúp bạn an tâm hơn sau khi cấu hình.</strong></p>
<p>Tiếp theo, sau khi đã cấu hình và replicate qua Replica site. Nếu xảy ra sự cố bên Primary site, làm thế nào chúng ta enable các máy ảo bên Replicate Site (thuật ngữ enable máy ảo bên Replicate Site gọi là “Failover”) . Có 3 loại như sau :</p>
<ul>
<li><strong>Test Failover</strong></li>
<li><strong>Planned Failover</strong></li>
<li><strong>Unplanned Failover</strong></li>
</ul>
<p><strong>1) Test Failover :</strong></p>
<p>Cho phép bạn test thử máy ảo bên Replica Site (còn máy ảo đang chạy thực sự là bên Primary Site) xem có bị lỗi hay trục trặc gì không. Khi chọn vào Test Failover như hình dưới, lúc này hệ thống sẽ yêu cầu bạn chọn thời điểm snapshot bạn muốn, sau đó nó sẽ sinh ra một máy ảo có tên “Name – Test Failover”. Và bạn có thể Start lên chạy thử.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F251.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-349" src="https://huypd.files.wordpress.com/2013/09/251.png?w=640&amp;h=488" alt="25" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 65"/></a></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F261.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-350" src="https://huypd.files.wordpress.com/2013/09/261.png?w=640" alt="26" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 66"/></a></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F271.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-351" src="https://huypd.files.wordpress.com/2013/09/271.png?w=640&amp;h=488" alt="27" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 67"/></a></p>
<ul>
<li>Dừng việc test Failover</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F281.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-352" src="https://huypd.files.wordpress.com/2013/09/281.png?w=640&amp;h=488" alt="28" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 68"/></a></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F30.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-353" src="https://huypd.files.wordpress.com/2013/09/30.png?w=640&amp;h=488" alt="30" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 69"/></a></p>
<p><strong>2) Planned Failover</strong></p>
<p>Planned Failover phải cấu hình bằng tay, thực hiện trên Primary Site chỉ khi người quản trị muốn bảo trì (maintance) trên Primary Site và bắt buộc phải cho các máy ảo bên Replica Site phục vụ người dùng. Sau khi bảo trì xong thì enable lại Primary Site phục vụ người dùng.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F181.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-355" src="https://huypd.files.wordpress.com/2013/09/181.png?w=640&amp;h=488" alt="18" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 70"/></a></p>
<ul>
<li>Nếu bạn check vào ô “Reverse the replication direction after failover” có nghĩa là nếu bảo trì xong Primary Site và lúc này cho máy ảo bên Primary Site trở về hoạt động. Thì cần replicate ngược lại những dữ liệu trong quá trình sử dụng các máy ảo bên Replica Site. (Lưu ý : Bạn phải enable tính năng replication bên máy Hyper-V Primary Site trước khi thực hiện điều này)</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F192.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-366" src="https://huypd.files.wordpress.com/2013/09/192.png?w=640" alt="19" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 71"/></a></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F202.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-367" src="https://huypd.files.wordpress.com/2013/09/202.png?w=640" alt="20" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 72"/></a></p>
<ul>
<li>Lúc này, người dùng tạm thời sử dụng máy ảo bên Replica Site</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F219.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-368" src="https://huypd.files.wordpress.com/2013/09/219.png?w=640&amp;h=488" alt="21" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 73"/></a></p>
<ul>
<li>Đương nhiên, bạn không được phép start máy ảo bên Hyper-V Primary Site</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F224.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-369" src="https://huypd.files.wordpress.com/2013/09/224.png?w=640" alt="22" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 74"/></a></p>
<ul>
<li>Hủy bỏ cơ chế planned failover sau khi bảo trì Primary Site.<a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F233.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-370" src="https://huypd.files.wordpress.com/2013/09/233.png?w=640&amp;h=488" alt="23" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 75"/></a></li>
</ul>
<p><strong>3) Unplanned Failover</strong></p>
<p>Unplanned Failover chỉ thực hiện khi Primary Site chết đột ngột, lúc này bạn phải qua Hyper-V Server bên Replica Site để thực hiện Unplanned Failover, phục vụ cho người dùng.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F292.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-371" src="https://huypd.files.wordpress.com/2013/09/292.png?w=640&amp;h=488" alt="29" width="640" height="488" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 76"/></a></p>
<ul>
<li>Chọn thời điểm phục hồi</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F302.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" class="alignnone size-full wp-image-372" src="https://huypd.files.wordpress.com/2013/09/302.png?w=640" alt="30" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 77"/></a></p>
<ul>
<li>Sau khi phục hồi Primary Site thì lúc này có thể chọn Reverse Replication để replicate dữ liệu mới nhất qua cho Primary Site, và cancel việc unplanned failover</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.files.wordpress.com%2F2013%2F09%2F311.png" rel="noopener external nofollow" class="ext-image" onclick="this.target='_blank';"><img decoding="async" loading="lazy" class="alignnone size-full wp-image-377" src="https://huypd.files.wordpress.com/2013/09/311.png?w=640&amp;h=485" alt="31" width="640" height="485" title="Hyper-V Replica trong Windows Server 2012 R2 (Full) 78"/></a></p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;91&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>
            Bài viết đạt: 5/5 &#8211; (100 bình chọn)    </p>
</p></div>
<p><!-- AI CONTENT END 2 --></p></div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/hyper-v-replica-trong-windows-server-2012-r2-full/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2015/04/6.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>Hyper-V Replica – Optimize Replication Process &#8211; Windows Server 2012 R2</title>
		<link>https://en.anonyviet.com/hyper-v-replica-optimize-replication-process-windows-server-2012-r2/</link>
					<comments>https://en.anonyviet.com/hyper-v-replica-optimize-replication-process-windows-server-2012-r2/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 27 Jan 2023 23:37:14 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[HyperV]]></category>
		<category><![CDATA[Optimize]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[Replica]]></category>
		<category><![CDATA[Replication]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=5231</guid>

					<description><![CDATA[A) Introduce Join the channel Telegram of the AnonyViet 👉 Link 👈 First, you need to learn what Paging File is and they are explained in detail in this article: Link In Hyper-V, virtual machines (Virtual Machines) with Windows operating system will also create these Page Files. They often have a 1:1 ratio to RAM, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div>
<p><b>A) </b><b>Introduce</b></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>First, you need to learn what Paging File is and they are explained in detail in this article: <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F%3Fp%3D94" rel="noopener" class="local-link">Link</a></p>
<p>In Hyper-V, virtual machines (Virtual Machines) with Windows operating system will also create these Page Files.  They often have a 1:1 ratio to RAM, which is unnecessary and wastes the VHD space of the virtual machine.  Because the virtual machines have been provided by Hyper-V with a sufficient amount of RAM to serve, depending on the needs that the administrator configures.</p>
<p>As I explained about Hyper-V Replica in the previous post, I mentioned Replication Tracker (RT).  RT is responsible for tracking changes to the VHD of the virtual machine, so that they know and perform the replication through the Replica Site.  However, there are a few files you won&#8217;t want to replicate to, commonly seen here is the Paging File (C:<span class="skimlinks-unlinked">pagefile.sys</span>).  They are not needed for replication and are often very large files, removing them from the replication process will reduce VHD capacity and reduce WAN/LAN bandwidth for replication.</p>
<p>Here I will guide you to configure and setup Page File to be stored in another VHD, and perform Replication to Replica Site only the required VHD drives (System, Database).</p>
<p><b>B) </b><b>Lab “Optimize Hyper-V Replica with excluding paging file”</b></p>
<p><strong>You should preview the labs on “</strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.wordpress.com%2F2013%2F09%2F25%2Fhyper-v-replica-trong-windows-server-20122012-r2-part-1%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';"><strong>Hyper-V Replica in Windows Server 2012/2012 R2</strong></a><strong>&#8220;</strong></p>
<p>Model :</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4157" src="https://anonyviet.com/wp-content/uploads/2017/01/112_thumb-1.jpg" width="771" height="430" alt="112" title="112" srcset="https://anonyviet.com/wp-content/uploads/2017/01/112_thumb-1.jpg 771w, https://anonyviet.com/wp-content/uploads/2017/01/112_thumb-1-300x167.jpg 300w, https://anonyviet.com/wp-content/uploads/2017/01/112_thumb-1-768x428.jpg 768w, https://anonyviet.com/wp-content/uploads/2017/01/112_thumb-1-750x418.jpg 750w" sizes="(max-width: 771px) 100vw, 771px"/></p>
<ul>
<li>Hyper-V1 machine (172.1.1.2/24) : Primary Site</li>
<li>Hyper-V2 machine (172.1.1.3/24) : is Replica Site</li>
<li>Domain Controller (File Server): contains virtual machine VM1 (VHD Virtual Machine) and creates a VHD containing Paging File.</li>
</ul>
<ol>
<li><strong>Create a virtual machine on Hyper-V1, but the virtual machine&#8217;s Storage will be stored in File Server</strong></li>
</ol>
<ul>
<li>On File-Server, create a folder “Windows 8.1” and Properties -> Share full permissions for 2 physical machines “Hyper-V1 – Hyper-V2”</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4158" src="https://anonyviet.com/wp-content/uploads/2017/01/0_thumb-1.png" width="636" height="444" alt="Hyper-V Replica – Optimize Replication Process - Windows Server 2012 R2 5" title="Hyper-V Replica – Optimize Replication Process - Windows Server 2012 R2 6" srcset="https://anonyviet.com/wp-content/uploads/2017/01/0_thumb-1.png 636w, https://anonyviet.com/wp-content/uploads/2017/01/0_thumb-1-300x209.png 300w" sizes="auto, (max-width: 636px) 100vw, 636px"/></p>
<ul>
<li>Next go to Hyper-V1, proceed to create a new virtual machine</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4159" src="https://anonyviet.com/wp-content/uploads/2017/01/01_thumb.png" width="639" height="456" alt="0 1" title="0 1" srcset="https://anonyviet.com/wp-content/uploads/2017/01/01_thumb.png 639w, https://anonyviet.com/wp-content/uploads/2017/01/01_thumb-300x214.png 300w, https://anonyviet.com/wp-content/uploads/2017/01/01_thumb-120x86.png 120w, https://anonyviet.com/wp-content/uploads/2017/01/01_thumb-350x250.png 350w" sizes="auto, (max-width: 639px) 100vw, 639px"/></p>
<ul>
<li>Save the virtual machine configuration file in the folder just created on File-Server</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4160" src="https://anonyviet.com/wp-content/uploads/2017/01/02_thumb-1.png" width="644" height="487" alt="0 2" title="0 2" srcset="https://anonyviet.com/wp-content/uploads/2017/01/02_thumb-1.png 644w, https://anonyviet.com/wp-content/uploads/2017/01/02_thumb-1-300x227.png 300w" sizes="auto, (max-width: 644px) 100vw, 644px"/></p>
<ul>
<li>Set RAM for virtual machine</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4161" src="https://anonyviet.com/wp-content/uploads/2017/01/03_thumb-1.png" width="649" height="490" alt="0 3" title="0 3" srcset="https://anonyviet.com/wp-content/uploads/2017/01/03_thumb-1.png 649w, https://anonyviet.com/wp-content/uploads/2017/01/03_thumb-1-300x227.png 300w" sizes="auto, (max-width: 649px) 100vw, 649px"/></p>
<ul>
<li>Set up the network for the virtual machine</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4162" src="https://anonyviet.com/wp-content/uploads/2017/01/04_thumb-1.png" width="656" height="496" alt="0 4" title="0 4" srcset="https://anonyviet.com/wp-content/uploads/2017/01/04_thumb-1.png 656w, https://anonyviet.com/wp-content/uploads/2017/01/04_thumb-1-300x227.png 300w" sizes="auto, (max-width: 656px) 100vw, 656px"/></p>
<ul>
<li>Save the VHD (Storage) file of the virtual machine to the folder you just created</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4163" src="https://anonyviet.com/wp-content/uploads/2017/01/05_thumb.png" width="667" height="504" alt="0 5" title="0 5" srcset="https://anonyviet.com/wp-content/uploads/2017/01/05_thumb.png 667w, https://anonyviet.com/wp-content/uploads/2017/01/05_thumb-300x227.png 300w" sizes="auto, (max-width: 667px) 100vw, 667px"/></p>
<ul>
<li>Specify the Windows installation .ISO file</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4164" src="https://anonyviet.com/wp-content/uploads/2017/01/06_thumb.png" width="670" height="506" alt="0 6" title="0 6" srcset="https://anonyviet.com/wp-content/uploads/2017/01/06_thumb.png 670w, https://anonyviet.com/wp-content/uploads/2017/01/06_thumb-300x227.png 300w" sizes="auto, (max-width: 670px) 100vw, 670px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4165" src="https://anonyviet.com/wp-content/uploads/2017/01/07_thumb.png" width="667" height="567" alt="0 7" title="0 7" srcset="https://anonyviet.com/wp-content/uploads/2017/01/07_thumb.png 667w, https://anonyviet.com/wp-content/uploads/2017/01/07_thumb-300x255.png 300w" sizes="auto, (max-width: 667px) 100vw, 667px"/></p>
<p><strong>2. Proceed to create VHD Paging File on File-Server and attach them to the virtual machine</strong></p>
<ul>
<li>Go to the virtual machine –> “Windows + I” to open the Charm bar –> “PC Info” –> Select “Advanced System Settings -> Advanced -> Settings in Performance” -> Select “Advanced -> Change” we will see Paging The file is located on drive C.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4166" src="https://anonyviet.com/wp-content/uploads/2017/01/1_thumb2-1.png" width="667" height="568" alt="first" title="first" srcset="https://anonyviet.com/wp-content/uploads/2017/01/1_thumb2-1.png 667w, https://anonyviet.com/wp-content/uploads/2017/01/1_thumb2-1-300x255.png 300w" sizes="auto, (max-width: 667px) 100vw, 667px"/></p>
<ul>
<li>Go to File-Server -> Go to Run -> <span class="skimlinks-unlinked">Diskmgmt.msc</span></li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4167" src="https://anonyviet.com/wp-content/uploads/2017/01/2_thumb2-1.png" width="429" height="240" alt="2" title="2" srcset="https://anonyviet.com/wp-content/uploads/2017/01/2_thumb2-1.png 429w, https://anonyviet.com/wp-content/uploads/2017/01/2_thumb2-1-300x168.png 300w" sizes="auto, (max-width: 429px) 100vw, 429px"/></p>
<ul>
<li>Select Action -> Create VHD</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4168" src="https://anonyviet.com/wp-content/uploads/2017/01/3_thumb1-1.png" width="655" height="430" alt="3" title="3" srcset="https://anonyviet.com/wp-content/uploads/2017/01/3_thumb1-1.png 655w, https://anonyviet.com/wp-content/uploads/2017/01/3_thumb1-1-300x197.png 300w" sizes="auto, (max-width: 655px) 100vw, 655px"/></p>
<ul>
<li>Click Browse and select the folder path just created in step 1 -> Name it VHDX as Paging File</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4169" src="https://anonyviet.com/wp-content/uploads/2017/01/4_thumb-1.png" width="656" height="431" alt="4" title="4" srcset="https://anonyviet.com/wp-content/uploads/2017/01/4_thumb-1.png 656w, https://anonyviet.com/wp-content/uploads/2017/01/4_thumb-1-300x197.png 300w" sizes="auto, (max-width: 656px) 100vw, 656px"/></p>
<ul>
<li>After creating it -> Right-click on the newly created VHD Disk, select &#8220;Initialize Disk&#8221; to activate using Disk</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4170" src="https://anonyviet.com/wp-content/uploads/2017/01/7_thumb1-1.png" width="661" height="434" alt="7" title="7" srcset="https://anonyviet.com/wp-content/uploads/2017/01/7_thumb1-1.png 661w, https://anonyviet.com/wp-content/uploads/2017/01/7_thumb1-1-300x197.png 300w" sizes="auto, (max-width: 661px) 100vw, 661px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4171" src="https://anonyviet.com/wp-content/uploads/2017/01/8_thumb1-1.png" width="412" height="313" alt="8" title="8" srcset="https://anonyviet.com/wp-content/uploads/2017/01/8_thumb1-1.png 412w, https://anonyviet.com/wp-content/uploads/2017/01/8_thumb1-1-300x228.png 300w" sizes="auto, (max-width: 412px) 100vw, 412px"/></p>
<ul>
<li>Proceed to create a Volume for this Disk</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4172" src="https://anonyviet.com/wp-content/uploads/2017/01/9_thumb1-1.png" width="665" height="437" alt="9" title="9" srcset="https://anonyviet.com/wp-content/uploads/2017/01/9_thumb1-1.png 665w, https://anonyviet.com/wp-content/uploads/2017/01/9_thumb1-1-300x197.png 300w" sizes="auto, (max-width: 665px) 100vw, 665px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4173" src="https://anonyviet.com/wp-content/uploads/2017/01/10_thumb1-1.png" width="437" height="341" alt="ten" title="ten" srcset="https://anonyviet.com/wp-content/uploads/2017/01/10_thumb1-1.png 437w, https://anonyviet.com/wp-content/uploads/2017/01/10_thumb1-1-300x234.png 300w" sizes="auto, (max-width: 437px) 100vw, 437px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4174" src="https://anonyviet.com/wp-content/uploads/2017/01/11_thumb1-1.png" width="442" height="345" alt="11" title="11" srcset="https://anonyviet.com/wp-content/uploads/2017/01/11_thumb1-1.png 442w, https://anonyviet.com/wp-content/uploads/2017/01/11_thumb1-1-300x234.png 300w" sizes="auto, (max-width: 442px) 100vw, 442px"/></p>
<ul>
<li>Name the Volume and proceed to Format</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4175" src="https://anonyviet.com/wp-content/uploads/2017/01/12_thumb1-1.png" width="446" height="348" alt="twelfth" title="twelfth" srcset="https://anonyviet.com/wp-content/uploads/2017/01/12_thumb1-1.png 446w, https://anonyviet.com/wp-content/uploads/2017/01/12_thumb1-1-300x234.png 300w" sizes="auto, (max-width: 446px) 100vw, 446px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4176" src="https://anonyviet.com/wp-content/uploads/2017/01/13_thumb1-1.png" width="664" height="436" alt="13" title="13" srcset="https://anonyviet.com/wp-content/uploads/2017/01/13_thumb1-1.png 664w, https://anonyviet.com/wp-content/uploads/2017/01/13_thumb1-1-300x197.png 300w" sizes="auto, (max-width: 664px) 100vw, 664px"/></p>
<ul>
<li>After the format is complete -> Proceed to Detach VHD, because VHD is being used in File-Server, we need Detach to serve the virtual machine</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4177" src="https://anonyviet.com/wp-content/uploads/2017/01/16_thumb1-1.png" width="671" height="507" alt="16" title="16" srcset="https://anonyviet.com/wp-content/uploads/2017/01/16_thumb1-1.png 671w, https://anonyviet.com/wp-content/uploads/2017/01/16_thumb1-1-300x227.png 300w" sizes="auto, (max-width: 671px) 100vw, 671px"/></p>
<ul>
<li>Turn off the virtual machine, right-click Settings</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4178" src="https://anonyviet.com/wp-content/uploads/2017/01/5_thumb1-1.png" width="674" height="501" alt="5" title="5" srcset="https://anonyviet.com/wp-content/uploads/2017/01/5_thumb1-1.png 674w, https://anonyviet.com/wp-content/uploads/2017/01/5_thumb1-1-300x223.png 300w" sizes="auto, (max-width: 674px) 100vw, 674px"/></p>
<ul>
<li>Select Hard Drive –> click Add to create a new SCSI Controller Hard Drive</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4179" src="https://anonyviet.com/wp-content/uploads/2017/01/6_thumb1-1.png" width="498" height="469" alt="6" title="6" srcset="https://anonyviet.com/wp-content/uploads/2017/01/6_thumb1-1.png 498w, https://anonyviet.com/wp-content/uploads/2017/01/6_thumb1-1-300x283.png 300w" sizes="auto, (max-width: 498px) 100vw, 498px"/></p>
<ul>
<li>Select to the newly created VHD Paging File in the folder</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4180" src="https://anonyviet.com/wp-content/uploads/2017/01/14_thumb1-1.png" width="492" height="464" alt="14" title="14" srcset="https://anonyviet.com/wp-content/uploads/2017/01/14_thumb1-1.png 492w, https://anonyviet.com/wp-content/uploads/2017/01/14_thumb1-1-300x283.png 300w" sizes="auto, (max-width: 492px) 100vw, 492px"/></p>
<ul>
<li>Click OK, then Start the virtual machine and go inside to check if the VHD Paging File is displayed</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4181" src="https://anonyviet.com/wp-content/uploads/2017/01/18_thumb1.png" width="675" height="575" alt="18" title="18" srcset="https://anonyviet.com/wp-content/uploads/2017/01/18_thumb1.png 675w, https://anonyviet.com/wp-content/uploads/2017/01/18_thumb1-300x256.png 300w" sizes="auto, (max-width: 675px) 100vw, 675px"/></p>
<ul>
<li>Proceed to configure Paging File: Go to the virtual machine –> “Windows + I” to open the Charm bar –> “PC Info” –> Select “Advanced System Settings -> Advanced -> Settings in Performance” -> Next select “Advanced – > Change&#8221;, uncheck &#8220;Automatically manage paging file&#8221; and then select drive D to store Paging file -> Stick select System Managed Size.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4182" src="https://anonyviet.com/wp-content/uploads/2017/01/20_thumb1.png" width="689" height="586" alt="20" title="20" srcset="https://anonyviet.com/wp-content/uploads/2017/01/20_thumb1.png 689w, https://anonyviet.com/wp-content/uploads/2017/01/20_thumb1-300x255.png 300w" sizes="auto, (max-width: 689px) 100vw, 689px"/></p>
<ul>
<li>The system will ask to reboot to complete the configuration process, message OK and reboot.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4183" src="https://anonyviet.com/wp-content/uploads/2017/01/21_thumb1.png" width="690" height="587" alt="21" title="21" srcset="https://anonyviet.com/wp-content/uploads/2017/01/21_thumb1.png 690w, https://anonyviet.com/wp-content/uploads/2017/01/21_thumb1-300x255.png 300w" sizes="auto, (max-width: 690px) 100vw, 690px"/></p>
<p><strong>3. Proceed to configure Replication and check the Replication process</strong></p>
<ul>
<li>Right-click on the virtual machine -> Select “Enable Replication…”</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4184" src="https://anonyviet.com/wp-content/uploads/2017/01/23_thumb.png" width="685" height="509" alt="23" title="23" srcset="https://anonyviet.com/wp-content/uploads/2017/01/23_thumb.png 685w, https://anonyviet.com/wp-content/uploads/2017/01/23_thumb-300x223.png 300w" sizes="auto, (max-width: 685px) 100vw, 685px"/></p>
<ul>
<li>Select Replica Server (Hyper-V2)</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4185" src="https://anonyviet.com/wp-content/uploads/2017/01/24_thumb.png" width="691" height="522" alt="24" title="24" srcset="https://anonyviet.com/wp-content/uploads/2017/01/24_thumb.png 691w, https://anonyviet.com/wp-content/uploads/2017/01/24_thumb-300x227.png 300w" sizes="auto, (max-width: 691px) 100vw, 691px"/></p>
<ul>
<li>Use HTTP to communicate + compress data before transmission</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4186" src="https://anonyviet.com/wp-content/uploads/2017/01/25_thumb1.png" width="696" height="526" alt="25" title="25" srcset="https://anonyviet.com/wp-content/uploads/2017/01/25_thumb1.png 696w, https://anonyviet.com/wp-content/uploads/2017/01/25_thumb1-300x227.png 300w" sizes="auto, (max-width: 696px) 100vw, 696px"/></p>
<ul>
<li>This step is important, we select the VHD Virtual Machine file, do not select Paging File (they will not replicate the VHD Paging File)</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4187" src="https://anonyviet.com/wp-content/uploads/2017/01/26_thumb.png" width="700" height="529" alt="26" title="26" srcset="https://anonyviet.com/wp-content/uploads/2017/01/26_thumb.png 700w, https://anonyviet.com/wp-content/uploads/2017/01/26_thumb-300x227.png 300w" sizes="auto, (max-width: 700px) 100vw, 700px"/></p>
<ul>
<li>Configure default replication time (5 minutes)</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4188" src="https://anonyviet.com/wp-content/uploads/2017/01/27_thumb1.png" width="696" height="526" alt="27" title="27" srcset="https://anonyviet.com/wp-content/uploads/2017/01/27_thumb1.png 696w, https://anonyviet.com/wp-content/uploads/2017/01/27_thumb1-300x227.png 300w" sizes="auto, (max-width: 696px) 100vw, 696px"/></p>
<ul>
<li>Configuring Recovery Points</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4189" src="https://anonyviet.com/wp-content/uploads/2017/01/28_thumb1.png" width="697" height="526" alt="28" title="28" srcset="https://anonyviet.com/wp-content/uploads/2017/01/28_thumb1.png 697w, https://anonyviet.com/wp-content/uploads/2017/01/28_thumb1-300x226.png 300w" sizes="auto, (max-width: 697px) 100vw, 697px"/></p>
<ul>
<li>Configuration allows instant replication</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4190" src="https://anonyviet.com/wp-content/uploads/2017/01/29_thumb1.png" width="702" height="530" alt="29" title="29" srcset="https://anonyviet.com/wp-content/uploads/2017/01/29_thumb1.png 702w, https://anonyviet.com/wp-content/uploads/2017/01/29_thumb1-300x226.png 300w" sizes="auto, (max-width: 702px) 100vw, 702px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4191" src="https://anonyviet.com/wp-content/uploads/2017/01/30_thumb1.png" width="704" height="532" alt="30" title="30" srcset="https://anonyviet.com/wp-content/uploads/2017/01/30_thumb1.png 704w, https://anonyviet.com/wp-content/uploads/2017/01/30_thumb1-300x227.png 300w" sizes="auto, (max-width: 704px) 100vw, 704px"/></p>
<ul>
<li>After Replication -> Right-click the virtual machine -> Replication -> View Replication Health, to check whether the virtual machine has replicated successfully or not</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4192" src="https://anonyviet.com/wp-content/uploads/2017/01/31_thumb1.png" width="487" height="459" alt="thirty first" title="thirty first" srcset="https://anonyviet.com/wp-content/uploads/2017/01/31_thumb1.png 487w, https://anonyviet.com/wp-content/uploads/2017/01/31_thumb1-300x283.png 300w" sizes="auto, (max-width: 487px) 100vw, 487px"/></p>
<ul>
<li>Now we go to Hyper-V2 side virtual machine storage path and see that only VHD Virtual Machine is replicated (no VHD Paging File) -> Lab successful.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-4193" src="https://anonyviet.com/wp-content/uploads/2017/01/32_thumb1.png" width="642" height="501" alt="32" title="32" srcset="https://anonyviet.com/wp-content/uploads/2017/01/32_thumb1.png 642w, https://anonyviet.com/wp-content/uploads/2017/01/32_thumb1-300x234.png 300w" sizes="auto, (max-width: 642px) 100vw, 642px"/></p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;93&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
<p><!-- AI CONTENT END 2 --></p></div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/hyper-v-replica-optimize-replication-process-windows-server-2012-r2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2015/04/4.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>Hyper-V Replica Chain in Windows Server 2012 R2</title>
		<link>https://en.anonyviet.com/hyper-v-replica-chain-in-windows-server-2012-r2/</link>
					<comments>https://en.anonyviet.com/hyper-v-replica-chain-in-windows-server-2012-r2/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 27 Jan 2023 23:17:17 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Chain]]></category>
		<category><![CDATA[HyperV]]></category>
		<category><![CDATA[Replica]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=5219</guid>

					<description><![CDATA[As mentioned in previous articles, Hyper-V Replica allows a Primary Site to replicate virtual machines to the Replica Site. When something goes wrong at the Primary Site, you can quickly process and recover virtual machines thanks to the Replica Site. Assuming that the Primary Site and the Replica Site both die, how do we handle [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div>
<p>As mentioned in previous articles, Hyper-V Replica allows a Primary Site to replicate virtual machines to the Replica Site.  When something goes wrong at the Primary Site, you can quickly process and recover virtual machines thanks to the Replica Site.  Assuming that the Primary Site and the Replica Site both die, how do we handle it while the company is deploying an event or a project and needs virtual machines more than ever.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Windows Server 2012 R2 adds the Hyper-V Replica Chain feature to solve the above problem.  Now there will be more redundant Replica Sites and that depends on the needs of the business.  Working in a &#8220;chain&#8221; chain, ie Primary Site will replicate virtual machines to Replica Site 1, Replica Site 1 will continue to replicate these virtual machines to Replica Sites 2,3,4,5&#8230;.</p>
<p><span style="color: #ff0000;"><strong>Model Hyper-V Replica Chain</strong></span></p>
<p><img post-id="5219" fifu-featured="1" decoding="async" class="alignnone size-full wp-image-3981" src="https://anonyviet.com/wp-content/uploads/2017/01/112_thumb1.jpg" width="574" height="273" alt="Hyper-V Replica Chain in Windows Server 2012 R2" title="Hyper-V Replica Chain in Windows Server 2012 R2" title="112" srcset="https://anonyviet.com/wp-content/uploads/2017/01/112_thumb1.jpg 574w, https://anonyviet.com/wp-content/uploads/2017/01/112_thumb1-300x143.jpg 300w" sizes="(max-width: 574px) 100vw, 574px"/></p>
<p>· Machine Domain Controller/File-Server (172.1.1.1/24) : contains VHD of virtual machine</p>
<p>· Hyper-V1 machine (Primary Site): 172.1.1.2/24, perform Replicate virtual machine VM1 to Hyper-V2</p>
<p>· Hyper-V2 machine (Replica Site 1) : 172.1.1.3/24, will perform replicate chain with Hyper-V3</p>
<p>Hyper-V3 (Replica Site 2): 172.1..14/24</p>
<p><span style="color: #ff0000;"><strong>Steps to take</strong></span></p>
<p><strong>1. Create a virtual machine VM at Primary Site and VHD (Storage) of the virtual machine located at File Server, do it at this link</strong> : <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.wordpress.com%2F2013%2F10%2F23%2Fhyper-v-replica-toi-uu-ha-qu-trnh-replication%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Link</a></p>
<p><strong>2. Configure Hyper-V Replica feature for Primary Site and Replica Site, do at this link:</strong> <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhuypd.wordpress.com%2F2013%2F09%2F25%2Fhyper-v-replica-trong-windows-server-20122012-r2-part-2%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Link</a></p>
<p><strong>3. Configure Hyper-V Replica feature for Replica Site 2:</strong></p>
<ul>
<li>Hyper-V3 machine, right-click and select “Hyper-V Settings”</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3982" src="https://anonyviet.com/wp-content/uploads/2017/01/1_thumb4-1.png" width="580" height="441" alt="first" title="first" srcset="https://anonyviet.com/wp-content/uploads/2017/01/1_thumb4-1.png 580w, https://anonyviet.com/wp-content/uploads/2017/01/1_thumb4-1-300x228.png 300w" sizes="auto, (max-width: 580px) 100vw, 580px"/></p>
<ul>
<li>Go to the &#8220;Replication Configuration&#8221; tab -> Check the box &#8220;Enable this computer as a Replica Server&#8221; -> Select the HTTP protocol to communicate and select &#8220;Allow replication from any authenticated server&#8221;, now click Browse to point to the directory contains the virtual machine to be replicated to.</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3983" src="https://anonyviet.com/wp-content/uploads/2017/01/2_thumb4-1.png" width="577" height="544" alt="2" title="2" srcset="https://anonyviet.com/wp-content/uploads/2017/01/2_thumb4-1.png 577w, https://anonyviet.com/wp-content/uploads/2017/01/2_thumb4-1-300x283.png 300w" sizes="auto, (max-width: 577px) 100vw, 577px"/></p>
<ul>
<li>Click OK, Hyper-V will prompt you to open 2 firewall ports: “Hyper-V Replica HTTP/HTTPS Listener”</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3984" src="https://anonyviet.com/wp-content/uploads/2017/01/3_thumb3-1.png" width="321" height="197" alt="3" title="3" srcset="https://anonyviet.com/wp-content/uploads/2017/01/3_thumb3-1.png 321w, https://anonyviet.com/wp-content/uploads/2017/01/3_thumb3-1-300x184.png 300w" sizes="auto, (max-width: 321px) 100vw, 321px"/></p>
<ul>
<li>Go to Firewall -> Advanced Settings -> Inbound Rules -> Open these 2 ports</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3985" src="https://anonyviet.com/wp-content/uploads/2017/01/4_thumb2-1.png" width="561" height="420" alt="4" title="4" srcset="https://anonyviet.com/wp-content/uploads/2017/01/4_thumb2-1.png 561w, https://anonyviet.com/wp-content/uploads/2017/01/4_thumb2-1-300x225.png 300w" sizes="auto, (max-width: 561px) 100vw, 561px"/></p>
<p><strong>4. Configure Hyper-V Replication Chain for Replica Site 1 and Replica Site 2</strong></p>
<ul>
<li>On the Hyper-V2 machine, right-click the virtual machine -> Replication -> Extend Replication…</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3986" src="https://anonyviet.com/wp-content/uploads/2017/01/13_thumb2.png" width="553" height="420" alt="13" title="13" srcset="https://anonyviet.com/wp-content/uploads/2017/01/13_thumb2.png 553w, https://anonyviet.com/wp-content/uploads/2017/01/13_thumb2-300x228.png 300w" sizes="auto, (max-width: 553px) 100vw, 553px"/></p>
<ul>
<li>Select the server on the side of Replica Site 2 -> in the model is the server “Hyper-V3”</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3987" src="https://anonyviet.com/wp-content/uploads/2017/01/14_thumb2-1.png" width="561" height="424" alt="14" title="14" srcset="https://anonyviet.com/wp-content/uploads/2017/01/14_thumb2-1.png 561w, https://anonyviet.com/wp-content/uploads/2017/01/14_thumb2-1-300x227.png 300w" sizes="auto, (max-width: 561px) 100vw, 561px"/></p>
<ul>
<li>Select connection protocol -> Use Kerberos Authentication (HTTP) and compress before transmitting</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3988" src="https://anonyviet.com/wp-content/uploads/2017/01/15_thumb1-1.png" width="561" height="424" alt="15" title="15" srcset="https://anonyviet.com/wp-content/uploads/2017/01/15_thumb1-1.png 561w, https://anonyviet.com/wp-content/uploads/2017/01/15_thumb1-1-300x227.png 300w" sizes="auto, (max-width: 561px) 100vw, 561px"/></p>
<ul>
<li>Select replication time (default is 5 minutes)</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3989" src="https://anonyviet.com/wp-content/uploads/2017/01/16_thumb2.png" width="562" height="425" alt="16" title="16" srcset="https://anonyviet.com/wp-content/uploads/2017/01/16_thumb2.png 562w, https://anonyviet.com/wp-content/uploads/2017/01/16_thumb2-300x227.png 300w" sizes="auto, (max-width: 562px) 100vw, 562px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3990" src="https://anonyviet.com/wp-content/uploads/2017/01/17_thumb1.png" width="562" height="425" alt="17" title="17" srcset="https://anonyviet.com/wp-content/uploads/2017/01/17_thumb1.png 562w, https://anonyviet.com/wp-content/uploads/2017/01/17_thumb1-300x227.png 300w" sizes="auto, (max-width: 562px) 100vw, 562px"/></p>
<ul>
<li>Do Replicate on the network and do the Replicate right away</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3991" src="https://anonyviet.com/wp-content/uploads/2017/01/18_thumb2.png" width="561" height="424" alt="18" title="18" srcset="https://anonyviet.com/wp-content/uploads/2017/01/18_thumb2.png 561w, https://anonyviet.com/wp-content/uploads/2017/01/18_thumb2-300x227.png 300w" sizes="auto, (max-width: 561px) 100vw, 561px"/></p>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3992" src="https://anonyviet.com/wp-content/uploads/2017/01/19_thumb1.png" width="559" height="423" alt="19" title="19" srcset="https://anonyviet.com/wp-content/uploads/2017/01/19_thumb1.png 559w, https://anonyviet.com/wp-content/uploads/2017/01/19_thumb1-300x227.png 300w" sizes="auto, (max-width: 559px) 100vw, 559px"/></p>
<ul>
<li>At this time, the virtual machine will be replicated by Replica Site 2 to Replica Site 3</li>
</ul>
<p><img decoding="async" loading="lazy" class="alignnone size-full wp-image-3993" src="https://anonyviet.com/wp-content/uploads/2017/01/22_thumb.png" width="550" height="382" alt="22" title="22" srcset="https://anonyviet.com/wp-content/uploads/2017/01/22_thumb.png 550w, https://anonyviet.com/wp-content/uploads/2017/01/22_thumb-300x208.png 300w" sizes="auto, (max-width: 550px) 100vw, 550px"/></p>
<p>Note: Primary Site and Replica Site 2 must be Synchronize, then Replica Site 2 can continue to synchronize to Replica Site 3.</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;98&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
<p><!-- AI CONTENT END 2 --></p></div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/hyper-v-replica-chain-in-windows-server-2012-r2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2017/01/112_thumb1.jpg" medium="image"></media:content>
            	</item>
	</channel>
</rss>
