大网数据广告活动
Hyper-V与虚拟化

Configure multiple CSV for VM replication in Windows Server

· 52CE 我爱测

Configure multiple CSV for VM replication using Hyper-V Replica to increase scalability and fault tolerance in Windows Server.

When setting up Virtual Machine (VM) replication, you might encounter a limitation where only a single path for Cluster Shared Volumes (CSV) can be specified. This guide outlines how to overcome this limitation to configure multiple CSV for VM replication. This approach provides greater control over your VM by improving flexibility and storage efficiency of your resources.

Prerequisites

The following are required on your device before proceeding:

Note: During the replication process, the hardware and network you use affects the services that rely on them. Depending on the amount of data replicated between the source and target systems, this process consumes a large amount of system resources. Your device performance is impacted until this process completes.

Configure multiple CSV locations

When copying VMs through a replication process, it's possible to use multiple storage volumes to store the replicated data. There are two methods to configure new replication locations, through the Hyper-V Manager UI or via PowerShell.

Hyper-V

  1. Open the Hyper-V Manager, under Actions, select Hyper-V Settings.
  2. Under Authorization and storage, select either Allow replication from any authenticated server or Allow replication from the specified servers, then select Browse.
  3. In the Select Folder window, choose a new default location, then select Select Folder.

When changes are made to the "default location" where replication is enabled for a VM, the new target volume is used for any new subsequent replication enablement. However, VMs that were already being replicated continues to use the original target volume that was set up when replication was first enabled.

PowerShell

Open an elevated PowerShell window and run the following command:

$VM = "MyVM"
$Destination = "E:\MyVM_NewPath"
Move-VMStorage $VM -DestinationStoragePath $Destination

This command moves the VM storage to the specified destination path, allowing for configuration of multiple CSV for VM replication.

This approach is effective in different situations, including prereplication, post-replication, and during delta transfers of a replicated VM. During a VM storage move operation, delta replication is temporarily paused and automatically resumes once the move is complete. However, in some situations, such as when there's low disk space or storage movement latency, it might be necessary to manually resume the replication process.


Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 01/15/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。