Hướng dẫn cấu hình replication hyper-v tren windows server
Trước tiên, bạn cần phải tìm hiểu Paging File là gì và chúng được giải thích chi tiết tại bài viết này :Link Trong Hyper-V, các máy ảo (Virtual Machine) cài hệ điều hành Windows cũng sẽ tạo ra các Page File này. Chúng thường có dung lượng tỷ lệ 1:1 với RAM, điều này là không cần thiết và lãng phí dung lượng VHD của máy ảo. Vì các máy ảo đã được Hyper-V cấp đủ một lượng RAM để phục vụ, tùy theo nhu cầu mà người quản trị cấu hình. Như các giải thích về hoạt động của Hyper-V Replica ở bài trước, tôi có đề cập đến Replication Tracker (RT). RT chịu trách nhiệm track lại những thay đổi của VHD máy ảo, để chúng biết được và thực hiện replica qua bên Replica Site. Tuy nhiên, có một vài file bạn sẽ không muốn replicate tới, thường thấy ở đây là Paging File (C:pagefile.sys). Chúng không cần thiết để replicate và thường dung lượng của file này rất lớn, việc loại bỏ chúng ra khỏi quá trình replicate sẽ giảm được dung lượng VHD và giảm băng thông WAN/LAN cho việc replicate. Sau đây tôi sẽ hướng dẫn bạn cấu hình và thiết lập Page File được lưu trữ ở một VHD khác, và thực hiện Replication đến Replica Site chỉ những ổ đĩa VHD cần thiết (System, Database). B) Lab “Optimize Hyper-V Replica with excluding paging ±le” Bạn nên xem trước các bài lab về“Hyper-V Replica trong Windows Server 2012/2012 R2” Xem thêm:Hướng dẫn càiđặt Windows Server 2012 R2 Mô hình : Giống Cây Nhân Sâm Hàn Quốc F1, Dễ Trồng. Thích Hợp Trồng Chậu Phong Thủy, Vườn Kinh Tế. QC hatgionghoavn.com Tìm hiểu thêm NETWORKSECURITYTHỦTHUẬTSOFTWAREMMOTIN TỨC NETWORKSECURITYTHỦTHUẬTSOFTWAREMMOTIN TỨC NetworkSecurityThủ thuậtSoftwareMMOTin tức Show 4/11/2018Hyper-V Replica – Tối ưu hóa quá trình Replication - Windows Server 2012 R2 https://anonyviet.com/hyper-v-replica-toi-uu-hoa-qua-trinh-replication/2/23Máy Hyper-V1 (172.1.1.2/24) : là Primary Site Máy Hyper-V2 (172.1.1.3/24) : là Replica Site Máy Domain Controller (File Server) : chứa máy ảo VM1 (VHD Virtual Machine) và tạo ra một VHD chứa Paging File. NAKIVO Replication & Replication cung cấp các tùy chọn tự động hóa nâng cao để sao chép. Bạn có thể tạo các chính sách nhân rộng dựa trên kích thước của máy ảo Hyper-V, tên, vị trí hoặc các tham số khác. Khi một chính sách được tạo, NAKIVO Replication & Replication sẽ quét hệ thống của bạn và tự động thêm các máy ảo phù hợp mới vào phạm vi công việc. Do đó, bạn không còn cần phải quản lý các tác vụ bảo vệ dữ liệu cốt lõi theo cách thủ công và có thể yên tâm rằng các máy ảo quan trọng của bạn luôn được bảo vệ. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Set up Hyper-V Replica
In this articleApplies to: Windows Server 2022, Windows Server 2019, Windows Server 2016; Azure Stack HCI, versions 22H2 and 21H2 Hyper-V Replica is an integral part of the Hyper-V role. It contributes to your disaster recovery strategy by replicating virtual machines from one Hyper-V host server to another to keep your workloads available. Hyper-V Replica creates a copy of a live virtual machine to a replica offline virtual machine. Note the following:
Deployment prerequisitesHere's what you should verify before you begin:
Deployment stepsStep 1: Set up the Hyper-V hostsYou'll need at least two Hyper-V hosts with one or more virtual machines on each server. Get started with Hyper-V. The host server that you'll replicate virtual machines to will need to be set up as the replica server.
Step 2: Set up the firewallTo allow replication between the primary and secondary servers, traffic must get through the Windows firewall (or any other third-party firewalls). When you installed the Hyper-V role on the servers by default exceptions for HTTP (80) and HTTPS (443) are created. If you're using these standard ports, you'll just need to enable the rules:
Enable virtual machine replicationDo the following on each virtual machine you want to replicate:
Run a failoverAfter completing these deployment steps your replicated environment is up and running. Now you can run failovers as needed. Test failover: If you want to run a test failover right-click the replica virtual machine and select Replication > Test Failover. Pick the latest or other recovery point if configured. A new test virtual machine will be created and started on the secondary site. After you've finished testing, select Stop Test Failover on the replica virtual machine to clean it up. Note that for a virtual machine you can only run one test failover at a time. For more information, see Test failover in Hyper-V Replica. Planned failover: To run a planned failover, right-click the primary virtual machine and select Replication > Planned Failover. Planned failover performs prerequisites checks to ensure zero data loss. It checks that the primary virtual machine is shut down before beginning the failover. After the virtual machine is failed over, it starts replicating the changes back to the primary site when it's available. Note that for this to work, the primary server should be configured to receive replication from the secondary server, or from the Hyper-V Replica Broker in the case of a primary cluster. Planned failover sends the last set of tracked changes. For more information, see Planned failover in Hyper-V Replica. Unplanned failover: To run an unplanned failover, right-click on the replica virtual machine and select Replication > Unplanned Failover from Hyper-V Manager or Failover Clustering Manager. You can recover from the latest recovery point or from previous recovery points if this option is enabled. After failover, check that everything is working as expected on the failed over virtual machine, then click Complete on the replica virtual machine. Read more. |